BurpSuite

Parser

synopsis:Specialized ptp.libptp.parser.AbstractParser classes for the tool BurpSuite.
class ptp.tools.burpsuite.parser.BurpXMLParser(pathname='./', filename='*.xml', **kwargs)[source]

BurpSuite XML specialized parser.

__tool__ = 'burpsuite'
__format__ = 'xml'
__version__ = '1\\.[0-9]+[\\.[0-9]+]?'
classmethod is_mine(pathname, filename='*.xml', light=False, first=True)[source]

Check if it can handle the report file.

Parameters:
  • pathname (str) – Path to the report directory.
  • filename (str) – Regex matching the report file.
  • light (bool) – True to only parse the ranking of the findings from the report.
  • first (bool) – Only process first file (True) or each file that matched (False).
Returns:

True if it supports the report, False otherwise.

Return type:

bool

parse_metadata()[source]

Parse the metadata of the report.

Raises:NotSupportedVersionError – if it does not support the version of this report.
Returns:The metadata of the report.
Return type:dict
parse_report()[source]

Parse the results of the report.

Returns:List of dicts where each one has a request and response.
Return type:list