Package plugins :: Package grep :: Module lang :: Class lang
[hide private]
[frames] | no frames]

Class lang




This plugin reads N pages and determines the language they are written in.


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

Instance Methods [hide private]
  __init__(self)
  _testResponse(self, request, response)
Get the page indicated by the fuzzableRequest and determine the language using the preposition list.
  getOptionsXML(self)
This method returns a XML containing the Options that the plugin has.
  end(self)
This method is called when the plugin wont be used anymore.
  setOptions(self, OptionList)
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.baseGrepPlugin.baseGrepPlugin: getType, setUrlOpener, testResponse

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


Method Details [hide private]

__init__(self)
(Constructor)

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

_testResponse(self, request, response)

 
Get the page indicated by the fuzzableRequest and determine the language using the preposition list.
Parameters:
  • fuzzableRequest - A fuzzableRequest instance that contains (among other things) the URL to test.
Returns:
If something is found it must be reported to the Output Manager and the KB.
Overrides: core.controllers.basePlugin.baseGrepPlugin.baseGrepPlugin._testResponse

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

end(self)

 
This method is called when the plugin wont be used anymore.
Overrides: core.controllers.basePlugin.baseGrepPlugin.baseGrepPlugin.end
(inherited documentation)

setOptions(self, OptionList)

 
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