Skip to content

Instantly share code, notes, and snippets.

@balidani
Created September 21, 2014 21:38
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 balidani/a3bff8f387f30159f0e3 to your computer and use it in GitHub Desktop.
Save balidani/a3bff8f387f30159f0e3 to your computer and use it in GitHub Desktop.
import socket
HOST = '54.85.89.65'
PORT = 8888
# Connect
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.settimeout(2)
print s.recv(1024)
s.send("\xa8")
resp = s.recv(4)
s.send("\xe0"+resp)
s.send("\xa9")
resp = s.recv(4)
s.send("\xe1"+resp)
s.send("\xaa")
resp = s.recv(4)
s.send("\xe2"+resp)
s.send("\xab")
resp = s.recv(4)
s.send("\xe3"+resp)
s.send("\xac")
resp = s.recv(4)
s.send("\xe4"+resp)
s.send("\xad")
resp = s.recv(4)
s.send("\xe5"+resp)
s.send("\xae")
resp = s.recv(4)
s.send("\xe6"+resp)
s.send("\xaf")
resp = s.recv(4)
s.send("\xe7"+resp)
s.send("\x80")
print s.recv(1024)
"""
flag{greetings_to_pure_digital}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment