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

Class wordnet




This plugin uses the wordnet lexical database to find new URLs.


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

Instance Methods [hide private]
  __init__(self)
  discover(self, fuzzableRequest)
  _verify(self, mutant)
  _generateMutants(self, fuzzableRequest)
Based on the fuzzable request, i'll search the wordnet database and generated A LOT of mutants.
  _generateQs(self, fuzzableRequest)
Check the URL query string.
  _addWords(self, word)
Fills a list with all the wordnet word types of a word and returns it.
  _searchWN(self, word)
Search the wordnet for this word, based on user options.
  _popularityContest(self, results)
  _wnWordsToStr(self, wnWordList)
  _generateFname(self, fuzzableRequest)
Check the URL filenames
  _getFilename(self, url)
  _generateURLFromResult(self, analyzedVariable, resultSet, fuzzableRequest)
Based on the result, create the new URLs to test.
  getOptionsXML(self)
This method returns a XML containing the Options that the plugin has.
  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().
  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)

 
Parameters:
  • fuzzableRequest - A fuzzableRequest instance that contains (among other things) the URL to test.
Returns:
A list :
  1. New Url's found by plugin, could be empty when method ends.
Overrides: core.controllers.basePlugin.baseDiscoveryPlugin.baseDiscoveryPlugin.discover

_verify(self, mutant)

 
None

_generateMutants(self, fuzzableRequest)

 
Based on the fuzzable request, i'll search the wordnet database and generated A LOT of mutants.
Returns:
A list of mutants.

_generateQs(self, fuzzableRequest)

 
Check the URL query string.
Returns:
A list of mutants.

_addWords(self, word)

 
Fills a list with all the wordnet word types of a word and returns it.

_searchWN(self, word)

 
Search the wordnet for this word, based on user options.
Returns:
A list of related words.

_popularityContest(self, results)

 
Parameters:
  • results - The result map of the wordnet search.
Returns:
The same result map, but each item is ordered by popularity

_wnWordsToStr(self, wnWordList)

 
None

_generateFname(self, fuzzableRequest)

 
Check the URL filenames
Returns:
A list mutants.

_getFilename(self, url)

 
Returns:
The filename, without the extension

_generateURLFromResult(self, analyzedVariable, resultSet, fuzzableRequest)

 
Based on the result, create the new URLs to test.
Returns:
An URL list.

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: core.controllers.basePlugin.basePlugin.basePlugin.getOptionsXML

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:
  • OptionList - A dictionary with the options for the plugin.
Returns:
No value is returned.
Overrides: core.controllers.basePlugin.basePlugin.basePlugin.setOptions

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