Skip to content

Commit 4468d3b

Browse files
committed
fix(payloads): removing hardcoded block-api hash from reverse_tcp_dns
1 parent 4d19535 commit 4468d3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/windows/reverse_tcp_dns.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def asm_reverse_tcp_dns(opts={})
142142
else
143143
asm << %Q^
144144
failure:
145-
push 0x56A2B5F0 ; hardcoded to exitprocess for size
145+
push #{Rex::Text.block_api_hash('kernel32.dll', 'ExitProcess')}
146146
call ebp
147147
^
148148
end

0 commit comments

Comments
 (0)