class documentation

class WPScanCliParser(Parser): (source)

View In Hierarchy

Main interface to parse WPScan CLI output.

  • wpscan_output: WPScan output as string.
  • false_positives_strings: List of false positive strings.
Method __init__ Undocumented
Method get_infos Return all the parsed infos
Method get_warnings Return all the parsed warnings
Method get_alerts Return all the parsed alerts
Method parse_cli Parse the ( messages, warnings, alerts ) from WPScan CLI output string. Return results as tuple( messages, warnings, alerts ).
Method get_error Return any error or None if no errors
Method get_results Returns a dictionnary structure like
Instance Variable _infos Undocumented
Instance Variable _warnings Undocumented
Instance Variable _alerts Undocumented
Method _parse_cli_toogle Undocumented
Method _ignore_false_positives Process false positives

Inherited from Parser:

Method get_summary_line Return the summary string in one line

Inherited from Component (via Parser):

Instance Variable data Initial data.
Instance Variable false_positives_strings Undocumented
Instance Variable show_all_details Undocumented
Method is_false_positive False Positive Detection
def __init__(self, wpscan_output, false_positives_strings=None): (source)

Undocumented

Parameterswpscan_outputUndocumented (type: str)
false_positives_stringsUndocumented (type: Optional[Sequence[str]])
_infos = (source)

Undocumented

_warnings = (source)

Undocumented

_alerts = (source)

Undocumented

def get_infos(self): (source)
Return all the parsed infos
ReturnsUndocumented (type: Sequence[str])
def get_warnings(self): (source)
Return all the parsed warnings
ReturnsUndocumented (type: Sequence[str])
def get_alerts(self): (source)
Return all the parsed alerts
ReturnsUndocumented (type: Sequence[str])
def _parse_cli_toogle(self, line, warning_on, alert_on): (source)

Undocumented

ParameterslineUndocumented (type: str)
warning_onUndocumented (type: bool)
alert_onUndocumented (type: bool)
ReturnsUndocumented (type: Tuple[bool, bool])
def _ignore_false_positives(self, infos, warnings, alerts): (source)
Process false positives
ParametersinfosUndocumented (type: List[str])
warningsUndocumented (type: List[str])
alertsUndocumented (type: List[str])
ReturnsUndocumented (type: Tuple[List[str], List[str], List[str]])
def parse_cli(self, wpscan_output): (source)
Parse the ( messages, warnings, alerts ) from WPScan CLI output string. Return results as tuple( messages, warnings, alerts ).
Parameterswpscan_outputUndocumented (type: str)
ReturnsUndocumented (type: Tuple[List[str], List[str], List[str]])
def get_error(self): (source)
Return any error or None if no errors
ReturnsUndocumented (type: Optional[str])
def get_results(self): (source)

Returns a dictionnary structure like

{
'infos':[],
'warnings':[],
'alerts':[],
'summary':{
    'table':None,
    'line':'WPScan result summary: alerts={}, warnings={}, infos={}, error={}'
    },
'error':None
}
ReturnsUndocumented (type: WPScanResults)
API Documentation for WPScan Output Parser, generated by pydoctor 21.2.2 at 2021-04-12 15:55:36.