Hi so I have a 32 bit little endian executable on Intel arch so I used context.binary for that and tried context.arch = vax to resolve this issue but both are not working what should I do? Code below:
from pwn import *
context.binary = binary = ELF("./vuln3-32")
rop = ROP(binary)
rop.execve('/bin/sh')
Very simple and should just call execve to open a shellcode. Any ideas? I will just try different context.archs for now.
You have to specify
context.kernel
to give pwntools more informations on your running environment : is it a 32-bit ELF executing on a 32-bit or on a 64-bit kernel ?You can see it in "pwnlib/rop/srop.py" :