Created
April 18, 2016 15:55
-
-
Save 0xPwny/5be6a4c7b69456c52eea239af6605fd1 to your computer and use it in GitHub Desktop.
PACTF2016 - Guessing GAME
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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