Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pwn import *
- host = "0.0.0.0"
- port = 1111
- bfsize = 1024
- conn = remote(host, port)
- data = conn.recvuntil("(no whitespace): ")
- print "data1", data
- conn.sendline("A"*16)
- data = conn.recv(bfsize)
- print "data2", data
- id1 = data.find("Your Cookie is: ")
- id2 = data.find("\nEnter")
- print "cookie:", data[id1+16:id2]
- # conn.interactive()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement