Package plugins :: Package mangle :: Module sed :: Class sed
[hide private]
[frames] | no frames]

Class sed




This plugin is a "stream editor" for http requests and responses.


Author: Andres Riancho ( andres.riancho@gmail.com )

Instance Methods [hide private]
  __init__(self)
  mangleRequest(self, request)
This method mangles the request.
  mangleResponse(self, response)
This method mangles the response.
  setOptions(self, OptionList)
Sets the Options given on the OptionList to self.
  getOptionsXML(self)
This method returns a XML containing the Options that the plugin has.
  getPluginDeps(self)
  getPriority(self)
This function is called when sorting mangle plugins.
  getLongDesc(self)

Inherited from core.controllers.basePlugin.baseManglePlugin.baseManglePlugin: __eq__, __gt__, __lt__, getType, setUrlOpener

Inherited from core.controllers.basePlugin.basePlugin.basePlugin: getDesc, getName, printUniq


Method Details [hide private]

__init__(self)
(Constructor)

 
None
Overrides: core.controllers.basePlugin.baseManglePlugin.baseManglePlugin.__init__

mangleRequest(self, request)

 
This method mangles the request.
Parameters:
  • request - This is the request to mangle.
Returns:
A mangled version of the request.
Overrides: core.controllers.basePlugin.baseManglePlugin.baseManglePlugin.mangleRequest

mangleResponse(self, response)

 
This method mangles the response.
Parameters:
  • response - This is the response to mangle.
Returns:
A mangled version of the response.
Overrides: core.controllers.basePlugin.baseManglePlugin.baseManglePlugin.mangleResponse

setOptions(self, OptionList)

 

Sets the Options given on the OptionList to self. The options are the result of a user entering some data on a window that was constructed using the XML Options that was retrieved from the plugin using getOptionsXML()

This method MUST be implemented on every plugin.
Returns:
No value is returned.
Overrides: core.controllers.basePlugin.basePlugin.basePlugin.setOptions
(inherited documentation)

getOptionsXML(self)

 
This method returns a XML containing the Options that the plugin has. Using this XML the framework will build a window, a menu, or some other input method to retrieve the info from the user. The XML has to validate against the xml schema file located at : w3af/core/output.xsd
Returns:
XML String
Overrides: core.controllers.basePlugin.basePlugin.basePlugin.getOptionsXML

getPluginDeps(self)

 
Returns:
A list with the names of the plugins that should be runned before the current one.
Overrides: core.controllers.basePlugin.basePlugin.basePlugin.getPluginDeps

getPriority(self)

 
This function is called when sorting mangle plugins. Each mangle plugin should implement this.
Returns:
An integer specifying the priority. 100 is runned first, 0 last.
Overrides: core.controllers.basePlugin.baseManglePlugin.baseManglePlugin.getPriority
(inherited documentation)

getLongDesc(self)

 
Returns:
A DETAILED description of the plugin functions and features.
Overrides: core.controllers.basePlugin.basePlugin.basePlugin.getLongDesc