class documentation

class Parser(Component): (source)

Known subclasses: wpscan_out_parse.WPScanCliParser, wpscan_out_parse.WPScanJsonParser

View In Hierarchy

Common class for CLI and JSON parsers.
Method __init__ Undocumented
Method get_results Returns a dictionnary structure like
Method get_summary_line Return the summary string in one line
Method get_error Return any error or None if no errors

Inherited from Component:

Instance Variable data Initial data.
Instance Variable false_positives_strings Undocumented
Instance Variable show_all_details Undocumented
Method is_false_positive False Positive Detection
Method get_infos Return the component informations as a list of strings.
Method get_warnings Return the component warnings as a list of strings.
Method get_alerts Return the component alerts as a list of strings.
def __init__(self, data, *args, **kwargs): (source)

Undocumented

ParametersdataUndocumented (type: Dict[str, Any])
argsUndocumented (type: Any)
kwargsUndocumented (type: Any)
@abstractmethod
def get_results(self): (source)

Returns a dictionnary structure like

{
'infos':[],
'warnings':[],
'alerts':[],
'summary':{
    'table':[
        {
            'Component': None,
            'Version': None,
            'Version State': None,
            'Vulnerabilities': None,
            'Status': None
        },
        ...
    ],
    'line':'WPScan result summary: alerts={}, warnings={}, infos={}, error={}'
    },
'error':None
}
ReturnsUndocumented (type: WPScanResults)
def get_summary_line(self): (source)
Return the summary string in one line
ReturnsUndocumented (type: str)
@abstractmethod
def get_error(self): (source)
Return any error or None if no errors
ReturnsUndocumented (type: Optional[str])
API Documentation for WPScan Output Parser, generated by pydoctor 21.2.2 at 2021-04-12 15:55:36.