Arachni¶
Parser¶
synopsis: | Specialized ptp.libptp.parser.AbstractParser classes for the tool Arachni. |
---|
-
class
ptp.tools.arachni.parser.
ArachniXMLParser
(pathname='./', filename='*.xml', **kwargs)[source]¶ Arachni XML specialized parser.
-
__tool__
= 'arachni'¶
-
__format__
= 'xml'¶
-
__version__
= '(^0\\.4\\.[0-9]+$)|(^1\\.[0-9]+(\\.[0-9]+)?$)'¶
-
_parse_report_full
(tree)[source]¶ Parse Arachni XML reports to extract additional information.
- Arachni HTTP traffic is divided into following fields:
- request
- response status code
- response headers
- response body
Returns: List of dicts where each entry is the HTTP traffic generated for the issue. Return type: list
-
classmethod
is_mine
(pathname, filename='*.xml', light=False, first=True)[source]¶ Check if it can handle the report file.
Parameters: Raises: - IOError – when the report file cannot be found.
- OSError – when the report file cannot be found.
Returns: True if it supports the report, False otherwise.
Return type:
-
-
class
ptp.tools.arachni.parser.
ArachniJSONParser
(pathname='./', filename='*', light=False, first=True)[source]¶ Arachni XML specialized parser.
-
__tool__
= 'arachni'¶
-
__format__
= 'xml'¶
-
__version__
= '(^1\\.[0-9]+(\\.[0-9]+)?$)'¶
-
_parse_report_full
(issues)[source]¶ Parse Arachni JSON reports to extract additional information.
- Arachni HTTP traffic is divided into following fields:
- request
- response status code
- response headers
- response body
Returns: List of dicts where each entry is the HTTP traffic generated for the issue. Return type: list
-
classmethod
is_mine
(pathname, filename='*.json', light=False, first=True)[source]¶ Check if it can handle the report file.
Parameters: Returns: True if it supports the report, False otherwise.
Return type:
-