Nmap¶
Warning
The development of the Nmap ranking system has been postponed to after the GSoC. For now, the classes below only parse the XML reports generated by Nmap but do not rank the discoveries.
Parser¶
synopsis: | Specialized ptp.libptp.parser.AbstractParser classes for the tool Nmap. |
---|
-
class
ptp.tools.nmap.parser.
NmapXMLParser
(pathname='./', filename='*.xml', **kwargs)[source]¶ -
__tool__
= 'nmap'¶
-
__format__
= 'xml'¶
-
__version__
= '6\\.46'¶
-
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:
-