Created
March 10, 2013 13:07
-
-
Save syst3mw0rm/5128502 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
import re | |
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 | |
xx = re.split(':', buff) | |
sec = re.split(' ', xx[1]) | |
sec = re.split('\n', sec[1]) | |
sec = sec[0] | |
#print sec | |
#print len(sec) | |
for x in range(0,32): | |
print sec[x*8:x*8+8] | |
s = raw_input() | |
sk.send(s) | |
print "#2" | |
buff = sk.recv(1024) | |
print buff | |
print "#3" | |
buff = sk.recv(1024) | |
print buff | |
s = raw_input() | |
sk.send(s) | |
print "#4" | |
buff = sk.recv(1024) | |
print buff | |
############# misc200_h.py ################### | |
import re | |
import socket,time,zlib,sys | |
for xx in range(0,32): | |
sk = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
sk.connect(("106.187.35.165",8080)) | |
buff = sk.recv(1024) | |
s = raw_input() | |
sk.send(s) | |
buff = sk.recv(1024) | |
buff = sk.recv(1024) | |
print buff | |
sk.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment