Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Socks:
- def __init__(proxytype, addr, port, rdns, username, password):
- self.proxytype = proxyype
- self.addr = addr
- self.port = poort
- self.rdns = rnds
- self.username = username
- self.password = password
- def connect(ip,port):
- #Proxy neg. creates a socket called self.sock
- #self.sock can be used in the class as it is global in the class
- def send(msg):
- self.sock.send(msg)
- def recv(buf):
- self.sock.recv(buf)
Add Comment
Please, Sign In to add comment