Skip to content

Instantly share code, notes, and snippets.

@budanthara
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save budanthara/152e832cd958336675fc to your computer and use it in GitHub Desktop.
Save budanthara/152e832cd958336675fc to your computer and use it in GitHub Desktop.
# IDSECCONF2015 CTF - Debugme ( Reversing 100pts )
# snoww0lf - Noobs1337
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('128.199.218.190', 15178))
data = ['0x6a', '0x6f', '0x6b', '0x6f', '0x6f', '0x6f', '0x21']
send_data = ''.join(data).replace("0x", "").decode("hex")
flag = ''
while True:
try:
numbers = s.recv(8192)
print numbers
flag+=numbers
s.send(send_data)
except:
print flag
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment