Package plugins :: Package discovery :: Module spiderMan :: Class proxyHandler
[hide private]
[frames] | no frames]

Class proxyHandler




Nested Classes [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass


Instance Methods [hide private]
  __init__(self, request, client_address, server)
  _connect(self, host, port)
Connects to remote host and keeps the connection alive to transfer data.
  _read_write(self, sock, max_idling=20)
  _httpRequest(self, command, url, postData, headers)
Connects to remote host, sends data, receives response and closes connection to remote peer.
  handle_one_request(self)
Handle a single HTTP request.
  _createFuzzFromRequest(self, command, url, postData, headers)
Creates a fuzzable request based on a query sent FROM the browser.
  _sendEnd(self, version)
Sends an HTML indicating that w3af spiderMan plugin has finished its execution.
  _writeResponse(self, response, version)
Writes the response passed as param to the user:

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: address_string, date_time_string, end_headers, handle, log_date_time_string, log_error, log_message, log_request, parse_request, send_error, send_header, send_response, version_string

Inherited from SocketServer.StreamRequestHandler: finish, setup


Class Variables [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: error_message_format, monthname, protocol_version, responses, server_version, sys_version, weekdayname

Inherited from SocketServer.StreamRequestHandler: rbufsize, wbufsize


Method Details [hide private]

__init__(self, request, client_address, server)
(Constructor)

 
None
Overrides: SocketServer.BaseRequestHandler.__init__

_connect(self, host, port)

 
Connects to remote host and keeps the connection alive to transfer data.

_read_write(self, sock, max_idling=20)

 
None

_httpRequest(self, command, url, postData, headers)

 
Connects to remote host, sends data, receives response and closes connection to remote peer.

handle_one_request(self)

 
Handle a single HTTP request.
Overrides: BaseHTTPServer.BaseHTTPRequestHandler.handle_one_request

_createFuzzFromRequest(self, command, url, postData, headers)

 
Creates a fuzzable request based on a query sent FROM the browser.

_sendEnd(self, version)

 
Sends an HTML indicating that w3af spiderMan plugin has finished its execution.

_writeResponse(self, response, version)

 

Writes the response passed as param to the user:

HTTP/1.1 200 OK Date: Tue, 05 Dec 2006 20:50:11 GMT Server: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-7 mod_perl/2.0.2 Perl/v5.8.8 Content-Length: 2459 Connection: close Content-Type: text/html; charset=UTF-8

HTML-GOES-HERE