Package plugins :: Package discovery :: Module phishtank :: Class phishtank
[hide private]
[frames] | no frames]

Class phishtank




This plugin searches the phishtank.com database to determine if your server is (or was) being used in phishing scams.


Author: Andres Riancho ( andres.riancho@gmail.com ) ; special thanks to http://www.phishtank.com/ !

Instance Methods [hide private]
  __init__(self)
  discover(self, fuzzableRequest)
The url is a string containing the Url to test ( http://somehost.com/foo.php )
  _getToCheck(self, domain)
  _isInPhishtank(self, toCheckList)
Reads the phishtank db and tries to match the entries on that db with the toCheckList
  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.
  _doUpdate(self)
This method is called to update the database.
  getPluginDeps(self)
  getLongDesc(self)

Inherited from core.controllers.basePlugin.baseDiscoveryPlugin.baseDiscoveryPlugin: getType

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


Method Details [hide private]

__init__(self)
(Constructor)

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

discover(self, fuzzableRequest)

 

The url is a string containing the Url to test ( http://somehost.com/foo.php )

This method MUST be implemented on every plugin.
Returns:
A list :
  1. New Url's found by plugin, could be empty when method ends.
Overrides: core.controllers.basePlugin.baseDiscoveryPlugin.baseDiscoveryPlugin.discover
(inherited documentation)

_getToCheck(self, domain)

 
Returns:
From the domain, get a list of fqdn, rootDomain and IP address.

_isInPhishtank(self, toCheckList)

 
Reads the phishtank db and tries to match the entries on that db with the toCheckList
Returns:
A list with the sites to match against the phishtank db

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

_doUpdate(self)

 
This method is called to update the database.

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

getLongDesc(self)

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