Skip to content

Instantly share code, notes, and snippets.

@0xPwny
Created April 18, 2016 15:55
Show Gist options
  • Save 0xPwny/5be6a4c7b69456c52eea239af6605fd1 to your computer and use it in GitHub Desktop.
Save 0xPwny/5be6a4c7b69456c52eea239af6605fd1 to your computer and use it in GitHub Desktop.
PACTF2016 - Guessing GAME
#!/usr/bin/python
from pwn import *
import random
while True:
co = remote('104.236.216.251',64753)
print co.recv()
co.send('abdel\n')
print co.recv()
pp = random.randint(1,50)
print co.send(str(pp)+"\n")
dd = co.recv()
print dd
if "Wow" in dd:
print co.recv()
break
else:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment