|
__init__(self,
clientSocket,
request)
|
|
run(self)
|
|
setBindAddress(self,
bindAddy)
|
|
handle(self,
req)
This function is the main request handler function.
|
|
validate_socks4a(self,
req)
This method verifies the extension to socks4 that allows the
client to send 0.0.0.x as IP address to indicate to the server that
it should resolve the hostname sent in the ID field and then connect
to it.
|
|
handle_bind(self,
req)
This function handles a BIND request.
|
|
handle_connect(self,
req)
This function handles a CONNECT request.
|
|
answer_granted(self,
dst_ip='0.0.0.0',
dst_port=0)
This function sends a REQUEST_GRANTED answer to the client.
|
|
answer_rejected(self,
reason=REQUEST_REJECTED_FAILED,
dst_ip='0.0.0.0',
dst_port=0)
This function send a REQUEST_REJECTED answer to the client.
|
|
answer(self,
code=REQUEST_GRANTED,
ip_str='0.0.0.0',
port_int=0)
This function sends an answer to the client.
|
|
forward(self,
client_sock,
server_sock)
This function makes the forwarding of data by listening to two
sockets, and writing to one everything it reads on the other.
|
|
Inherited from threading.Thread:
__repr__,
getName,
isAlive,
isDaemon,
join,
setDaemon,
setName,
start
Inherited from threading.Thread (private):
_set_daemon
Inherited from threading._Verbose (private):
_note
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__str__
|