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

Class baseBruteforcePlugin




This plugin is a superclass for plugins that want to bruteforce any type of login.


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

Instance Methods [hide private]
  __init__(self)
  _bruteWorker(self, url, combinations)
This is the method that sends the request to the remote server.
  _bruteforce(self, url, combinations)
  _fuzzRequests(self, freq)
This method is the entry point of the plugin.
  _initBruteforcer(self, url)
  bruteforce(self, fuzzableRequest)
  end(self)
This method is called by w3afCore to let the plugin know that it wont be used anymore.
  getLongDesc(self)
  getOptionsXML(self)
This method returns a XML containing the Options that the plugin has.
  getPluginDeps(self)
  getType(self)
  setOptions(self, optionsMap)
This method sets all the options that are configured using the user interface generated by the framework using the result of getOptionsXML().

Inherited from baseAuditPlugin.baseAuditPlugin: audit

Inherited from basePlugin.basePlugin: __eq__, getDesc, getName, printUniq, setUrlOpener

Inherited from basePlugin.basePlugin (private): _sendMutant


Method Details [hide private]

__init__(self)
(Constructor)

 
None
Overrides: baseAuditPlugin.baseAuditPlugin.__init__

_bruteWorker(self, url, combinations)

 
This is the method that sends the request to the remote server.
Parameters:
  • url - A string representation of an URL
  • combinations - A list of tuples with (user,pass)

_bruteforce(self, url, combinations)

 
Parameters:
  • url - A string representation of an URL
  • combinations - A list of tuples with (user,pass)

_fuzzRequests(self, freq)

 

This method is the entry point of the plugin.

THIS METHOD MUST BE IMPLEMENTED BY EVERY BRUTEFORCE PLUGIN!
Parameters:
  • freq - A fuzzableRequest
Overrides: baseAuditPlugin.baseAuditPlugin._fuzzRequests

_initBruteforcer(self, url)

 
None

bruteforce(self, fuzzableRequest)

 
None

end(self)

 
This method is called by w3afCore to let the plugin know that it wont be used anymore. This is helpfull to do some final tests, free some structures, etc.
Overrides: baseAuditPlugin.baseAuditPlugin.end
(inherited documentation)

getLongDesc(self)

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

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/ui/userInterface.dtd
Returns:
XML with the plugin options.
Overrides: basePlugin.basePlugin.getOptionsXML

getPluginDeps(self)

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

getType(self)

 
None
Overrides: baseAuditPlugin.baseAuditPlugin.getType

setOptions(self, optionsMap)

 
This method sets all the options that are configured using the user interface generated by the framework using the result of getOptionsXML().
Parameters:
  • optionsMap - A dictionary with the options for the plugin.
Returns:
No value is returned.
Overrides: basePlugin.basePlugin.setOptions