Guest User

Untitled

a guest
May 17th, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. class Socks:
  2.     def __init__(proxytype, addr, port, rdns, username, password):
  3.         self.proxytype = proxyype
  4.     self.addr = addr
  5.     self.port = poort
  6.     self.rdns = rnds
  7.     self.username = username
  8.     self.password = password
  9.  
  10.     def connect(ip,port):
  11.         #Proxy neg. creates a socket called self.sock
  12.         #self.sock can be used in the class as it is global in the class
  13.  
  14.     def send(msg):
  15.         self.sock.send(msg)
  16.  
  17.     def recv(buf):
  18.         self.sock.recv(buf)
Add Comment
Please, Sign In to add comment