Skip to content

Instantly share code, notes, and snippets.

@syst3mw0rm
Last active December 14, 2015 18:19
Show Gist options
  • Select an option

  • Save syst3mw0rm/5128305 to your computer and use it in GitHub Desktop.

Select an option

Save syst3mw0rm/5128305 to your computer and use it in GitHub Desktop.
import socket,time,zlib,sys
from struct import pack
sk = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sk.connect(("106.187.35.165",8080))
buff = sk.recv(1024)
print 'Received', repr(buff)
buff = sk.recv(1024)
print "#1"
print buff
s = raw_input()
sk.send(s)
print "#2"
buff = sk.recv(1024)
print buff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment