Package core :: Package controllers :: Package daemons :: Module localproxy :: Class w3afLocalProxyHandler
[hide private]

Class w3afLocalProxyHandler




The handler that traps requests and adds them to the queue.

Nested Classes [hide private]

Inherited from BaseHTTPServer.BaseHTTPRequestHandler: MessageClass

Instance Methods [hide private]
 
doAll(self)
This method handles EVERY request that were send by the browser.
 
_do_trap(self, fuzzReq)
 
_fixContentLength(self, head, postdata)
The user may have changed the postdata of the request, and not the content-length header; so we are going to fix that problem.
 
_sendFuzzableRequest(self, fuzzReq)
Sends a fuzzable request to the remote web server.
 
_shouldBeTrapped(self, fuzzReq)
Determine, based on the user configured parameters:
 
_createFuzzableRequest(self)
Based on the attributes, return a fuzzable request object.

Inherited from proxy.w3afProxyHandler: do_CONNECT, handle_one_request, log_message

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

Inherited from SocketServer.StreamRequestHandler: finish, setup

Inherited from SocketServer.BaseRequestHandler: __init__

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]

doAll(self)

 
This method handles EVERY request that were send by the browser.
Overrides: proxy.w3afProxyHandler.doAll

_shouldBeTrapped(self, fuzzReq)

 
Determine, based on the user configured parameters:
  • self._whatToTrap
  • self._trap
  • self._ignoreImages
If the request needs to be trapped or not.
Parameters:
  • fuzzReq - The request to analyze.

_createFuzzableRequest(self)

 

Based on the attributes, return a fuzzable request object.

Important variables used here:
  • self.headers : Stores the headers for the request
  • self.rfile : A file like object that stores the postdata
  • self.path : Stores the URL that was requested by the browser