Package core :: Package controllers :: Module outputManager :: Class outputManager
[hide private]

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)
 
logEnabledPlugins(self, enabledPluginsDict, pluginOptionsDict)
This method logs to the output plugins the enabled plugins and their configuration.
 
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, severity='Medium')
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.
 
echo(self, onOff)
This method is used to enable/disable the output.
 
setOutputPlugins(self, outputPlugins)
Returns: No value is returned.
 
getOutputPlugins(self)
 
setPluginOptions(self, pluginName, PluginsOptions)
Returns: No value is returned.
 
getMessageCache(self)
Used for the webUI.
Method Details [hide private]

_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.

logEnabledPlugins(self, enabledPluginsDict, pluginOptionsDict)

 
This method logs to the output plugins the enabled plugins and their configuration.
Parameters:
  • enabledPluginsDict - As defined in the w3afCore, # A dict with plugin types as keys and a list of plugin names as values self._strPlugins = {'audit':[],'grep':[],'bruteforce':[],'discovery':[], 'evasion':[], 'mangle':[], 'output':[]}
  • pluginOptionsDict - As defined in the w3afCore, self._pluginsOptions = {'audit':{},'grep':{},'bruteforce':{},'discovery':{}, 'evasion':{}, 'mangle':{}, 'output':{}, 'attack':{}}

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, severity='Medium')

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

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.