Create a gist now

Instantly share code, notes, and snippets.

@balidani /saturn.py Secret
Created Sep 21, 2014

What would you like to do?
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