Package core :: Package controllers :: Module outputManager :: Class outputManager
[hide private]
[frames] | no frames]

Class outputManager



This class manages output. It has a list of output plugins and sends the events to every plugin on that list.


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

Instance Methods [hide private]
  __init__(self)
  _addOutputPlugin(self, OutputPluginName)
Takes a string with the OutputPluginName, creates the object and adds it to the OutputPluginName
  endOutputPlugins(self)
  debug(self, message, newLine=True)
Sends a debug message to every output plugin on the list.
  information(self, message, newLine=True)
Sends a informational message to every output plugin on the list.
  error(self, message, newLine=True)
Sends an error message to every output plugin on the list.
  logHttp(self, request, response)
Sends the request/response object pair to every output plugin on the list.
  vulnerability(self, message, newLine=True)
Sends a vulnerability message to every output plugin on the list.
  console(self, message, newLine=True)
This method is used by the w3af console to print messages to the outside.
  setOutputPlugins(self, OutputPlugins)
  setPluginOptions(self, pluginName, PluginsOptions)
  getMessageCache(self)
Used for the webUI.

Method Details [hide private]

__init__(self)
(Constructor)

 
None

_addOutputPlugin(self, OutputPluginName)

 
Takes a string with the OutputPluginName, creates the object and adds it to the OutputPluginName
Parameters:
  • OutputPluginName - The name of the plugin to add to the list.
Returns:
No value is returned.

endOutputPlugins(self)

 
None

debug(self, message, newLine=True)

 
Sends a debug message to every output plugin on the list.
Parameters:
  • message - Message that is sent.

information(self, message, newLine=True)

 
Sends a informational message to every output plugin on the list.
Parameters:
  • message - Message that is sent.

error(self, message, newLine=True)

 
Sends an error message to every output plugin on the list.
Parameters:
  • message - Message that is sent.

logHttp(self, request, response)

 
Sends the request/response object pair to every output plugin on the list.
Parameters:
  • request - A fuzzable request object
  • response - A httpResponse object

vulnerability(self, message, newLine=True)

 
Sends a vulnerability message to every output plugin on the list.
Parameters:
  • message - Message that is sent.

console(self, message, newLine=True)

 
This method is used by the w3af console to print messages to the outside.

setOutputPlugins(self, OutputPlugins)

 
Parameters:
  • OutputPlugins - A list with the names of Output Plugins that will be used.
Returns:
No value is returned.

setPluginOptions(self, pluginName, PluginsOptions)

 
Parameters:
  • PluginsOptions - A tuple with a string and a dictionary with the options for a plugin. For example: { console:'verbosity':7 }
Returns:
No value is returned.

getMessageCache(self)

 
Used for the webUI.
Returns:
returns a list containing messages in plugins caches, only if defined.