This is a Python script that parses a .nessus
file (XML format from Tenable Nessus) and extracts all hosts and ports where a specified plugin ID was detected.
- Python 3.x
- No external dependencies (uses built-in
xml.etree.ElementTree
)
python NessusPluginHosts.py <filename.nessus> <plugin_id>
also have option to not include port --no-port
# Default line-delimited
python nessus_plugin_hosts.py scan.nessus 19506
# Default line-delimited, no port
python nessus_plugin_hosts.py scan.nessus 19506 --no-port
# Space-delimited
python nessus_plugin_hosts.py scan.nessus 19506 --space-delim
# Comma-delimited
python nessus_plugin_hosts.py scan.nessus 19506 --comma-delim
# Comma-delimited, no port
python nessus_plugin_hosts.py scan.nessus 19506 --comma-delim --no-port
Looks at the Nessus plugin 22964 and outputs the services by service type.
python IdentifiedServices.py scan.nessus --no-port --comma-delim