Package core :: Package controllers :: Package w3afAgent :: Package client :: Module w3afAgentClient
[hide private]
[frames] | no frames]

Module w3afAgentClient



Classes [hide private]
  FileError
  SocksError
  Connection_Closed
  Bind_TimeOut_Expired
  Request_Error
  Client_Connection_Closed
  Remote_Connection_Closed
  Remote_Connection_Failed
  Remote_Connection_Failed_Invalid_Host
  Request_Failed
  Request_Failed_No_Identd
  Request_Failed_Ident_failed
  Request_Refused
  Request_Bad_Version
  Request_Unknown_Command
  Request_Unauthorized_Client
  Request_Invalid_Port
  Request_Invalid_Format
  logger
  w3afAgentClient
Threading SOCKS4 proxy class.
  connectionManager
This is a service that creates some connections to the remote w3afAgentServer and waits for SOCKS requests to arrive on those connections.
  SocksHandler
This request handler class handles Socks 4 requests.

Functions [hide private]
  is_routable(address)
  is_port(port)
  now()
  string2port(port_str)
This function converts between a packed (16 bits) port number to an integer.
  port2string(port)
This function converts a port number (16 bits integer) into a packed string (2 chars).

Variables [hide private]
  SOCKS_VERSION = 4
  COMMAND_CONNECT = 1
  COMMAND_BIND = 2
  COMMANDS = [1, 2]
  REQUEST_GRANTED = 90
  REQUEST_REJECTED_FAILED = 91
  REQUEST_REJECTED_NO_IDENTD = 92
  REQUEST_REJECTED_IDENT_FAILED = 93
  ERR_CONNECTION_RESET_BY_PEER = 10054
  ERR_CONNECTION_REFUSED = 10061
  log = None
  addr = sys.argv [1]
  port = int(sys.argv [2])
  w3 = w3afAgentClient(w3afAgentServer_address= addr, w3afA...

Function Details [hide private]

is_routable(address)

 
None

is_port(port)

 
None

now()

 
None

string2port(port_str)

 
This function converts between a packed (16 bits) port number to an integer.

port2string(port)

 
This function converts a port number (16 bits integer) into a packed string (2 chars).

Variables Details [hide private]

SOCKS_VERSION

None
Value:
4                                                                     
      

COMMAND_CONNECT

None
Value:
1                                                                     
      

COMMAND_BIND

None
Value:
2                                                                     
      

COMMANDS

None
Value:
[1, 2]                                                                 
      

REQUEST_GRANTED

None
Value:
90                                                                    
      

REQUEST_REJECTED_FAILED

None
Value:
91                                                                    
      

REQUEST_REJECTED_NO_IDENTD

None
Value:
92                                                                    
      

REQUEST_REJECTED_IDENT_FAILED

None
Value:
93                                                                    
      

ERR_CONNECTION_RESET_BY_PEER

None
Value:
10054                                                                 
      

ERR_CONNECTION_REFUSED

None
Value:
10061                                                                 
      

log

None
Value:
None                                                                  
      

addr

None
Value:
sys.argv [1]                                                           
      

port

None
Value:
int(sys.argv [2])                                                      
      

w3

None
Value:
w3afAgentClient(w3afAgentServer_address= addr, w3afAgentServer_port= p
ort)