A collection of Python CLI tools for parsing and summarizing Nessus .nessus scan results.
Project description
Nessus Plugin Scripts:
This reposity is a collection of Python scripts designed to work with Nessus scan results. The scripts utilize the built-in xml.etree.ElementTree library to parse .nessus files and provide various functionalities such as counting findings, listing hosts/services for specific plugins, identifying services, merging Nessus files, and summarizing Scanner results.
istallation
With pip:
pip install nessus-plugin-hosts
With Git:
git clone https://github.com/DefensiveOrigins/NessusPluginHosts
cd NessusPluginHosts
Tools Included
| PyPI Command | Python Script | Description |
|---|---|---|
nessus-finding-count |
FindingCount.py |
Counts findings from a Nessus file. Supports unique or total counts. Can analyze a single file or all .nessus files within a directory. |
nessus-plugin-hosts |
NessusPluginHosts.py |
Lists hosts/services for a specific Nessus plugin. Supports multiple delimiter formats, can search a single file or many in a directory, and can export host:port lists. |
nessus-identified-services |
IdentifiedServices.py |
Lists services identified within a Nessus file (e.g., plugin 22964). |
nessus-merge |
MergeNessus.py |
Merges multiple Nessus files from a directory into a single .nessus file. Adjusts scan start/end times and allows changing the report title. |
nessus-synscan-summary |
SynScanSummary.py |
Summarizes SYN Scanner results from plugin 11219. Outputs both hosts-per-port and ports-per-host analyses, with optional CSV output. |
nessus-ldap-info |
LDAPinfo.py |
Parses LDAP-related information from plugins 20870 and 25701. Extracts LDAP services, info disclosure, domain names, and server names. |
nessus-printer-info |
PrinterInfo.py |
Extracts printer information, including vendor/model (when identifiable) and open TCP ports. |
nessus-remove-host |
RemoveHost.py |
Removes a specified host from a .nessus file. |
nessus-host-info |
HostInfo.py |
Provides detailed information about a specific host, including scan timing, alternate hostnames, FQDNs, plugins triggered, and detected services. |
🧰 Requirements
- Python 3.x
- No external dependencies (uses built-in
xml.etree.ElementTree)
📦 Usage
FindingCount.py / nessus-finding-count (Count Findings)
python NessusPluginHosts.py -f <filename.nessus> <plugin_id>
python IdentifiedServices -f <filename.nessus>
python FindingCount.py -f <filename.nessus>
python FindingCount.py -d <directory of nessus files>
python FindingCount.py -d <directory of nessus files> --csv summary.csv
python FindingCount.py -f <filename.nessus> --unique/--total/--both
NessusPluginHosts.py / nessus-plugin-hosts (List Hosts/Services per Plugin)
# Default line-delimited
python NessusPluginHosts.py -f scan.nessus 19506
# Default line-delimited, no port
python NessusPluginHosts.pyy -f scan.nessus 19506 --no-port
# Space-delimited
python NessusPluginHosts.py -f scan.nessus 19506 --space-delim
# Space-delimited, no-port -- Specfication for metasploit "rhosts"
python NessusPluginHosts.py -f scan.nessus 19506 --space-delim --no-port
# Comma-delimited
python NessusPluginHosts.py -f scan.nessus 19506 --comma-delim
# Comma-delimited, no port
python NessusPluginHosts.py -f scan.nessus 19506 --comma-delim --no-port
# List High severity (0 = Info, 1 = Low, 2 = Med, 3 = High, 4 = Critical) finding names in terminal
python NessusPluginHosts.py -f scan.nessus --list-plugins 3
# List ALL severity finding names in terminal
python NessusPluginHosts.py -f scan.nessus --list-plugins
# Export ALL findings to nessus_plugin_hosts directory, create file for each finding with an ordered host:port list
python NessusPluginHosts.py -f scan.nessus --list-plugins --export-plugin-hosts ./nessus_plugin_hosts
IdentifiedServices.py / nessus-identified-services (List Identified Services)
Looks at the Nessus plugin 22964 and outputs the services by service type.
python IdentifiedServices.py scan.nessus --no-port --comma-delim
MergeNessus.py /nessus-merge (Merge Nessus Files)
# Merges all nessus files in current folder, outputs to "Merged.Nesssus"
python3 MergeNessus.py
# Merge all nessus files in specific directory
python3 MergeNessus.py -d /path/to/nessus/files
# Merge and set custom filename
python3 MergeNessus.py -o /path/to/output/Combined_Scan.nessus
# Merge and give the merged scan a custom title:
python3 MergeNessus.py -t "Quarterly Security Scan"
# Merge from a directory, set both custom title and output file:
python3 MergeNessus.py -d /scans/q1 -o ./Merged_Q1.nessus -t "Q1 Combined Scan"
HostInfo.py (Provide Host Details)
Provides details about a host, alternate hostnames, scanning times, etc.
python3 HostInfo.py -f input.nessus -n 192.168.1.1
python3 HostInfo.py -d ./nessusDirectory/ -n 192.168.1.1
RemoveHost.py (Remove Host from Nessus File)
python3 RemoveHost.py -f input.nessus -o output.nessus -n target-hostname
SynScanSummary.py / nessus-synscan-summarySummary
Reads Nessus results from Nessus' Plugn 11219 (SYN Scanner) and creates an output summarizing the scan results.
Usage
# Show both summaries to stdout
python .\SynScanSummary.py .\scan.nessus
# Only ports per host, showing at most 15 ports per host
python .\SynScanSummary.py .\scan.nessus --analysis ports-per-host --limit 15
# Only hosts per port, for a specific port set, to stdout
python .\SynScanSummary.py .\scan.nessus --analysis hosts-per-port --include-ports 22,80,443,8000-8100
# Write CSV (and also print to stdout)
python .\SynScanSummary.py .\scan.nessus --csv .\syn_summary.csv
# Write CSVs only (no stdout), both analyses -> creates syn_summary_ports_per_host.csv and syn_summary_hosts_per_port.csv
python .\SynScanSummary.py .\scan.nessus --analysis both --csv .\syn_summary.csv --no-stdout
Example
SynScanSummary.py Merged.nessus --analysis hosts-per-port
SynScanSummary.py Merged.nessus --analysis ports-per-host
LDAPinfo.py / nessus-ldap-info (LDAP Information Gathering)
This script parses the details from plugins 20870 and 25701 and returns the information in a easy to read format. No more hunting the nessus file when you just quickly need the LDAP information.
Usage
# Parse a single Nessus file
python3 LDAPinfo.py -f scan.nessus
# Parse all Nessus files in a directory
python3 LDAPinfo.py -d /path/to/nessus/files
# Output to a specific CSV file (for paste into Excel/word)
python3 LDAPinfo.py -f scan.nessus --csv /tmp/ldap_info.csv
Example Output
# $ python3 LDAPinfo.py -d /path/to/nessus/files
[LDAP Services Identified] (plugin 20870)
------------------------------------------------------------------------
Host Port Proto Service Source
------------------------------------------------------------------------
192.168.1.10 389 tcp ldap corp_scan1.nessus
192.168.1.11 636 tcp ldaps corp_scan2.nessus
------------------------------------------------------------------------
[LDAP Information Disclosure] (plugin 25701)
--------------------------------------------------------------------------------------------------------------
Host Port Domain Server
--------------------------------------------------------------------------------------------------------------
192.168.1.10 389 domain.local DomainDC01
192.168.1.11 636 domain.local DomainDC02
--------------------------------------------------------------------------------------------------------------
[+] Wrote CSV: /current/dir/ldap_info.csv
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nessus_plugin_hosts-0.1.2.tar.gz.
File metadata
- Download URL: nessus_plugin_hosts-0.1.2.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
432501108e968eefaa867cf94cfea790aa7a8d23a2d14dd174219f6322272422
|
|
| MD5 |
2f93a75b98fb10161154aaec893fc42c
|
|
| BLAKE2b-256 |
625b165ecaabe62f0711529b76e739c1d53d0116abbcc91f4de4c433fe181859
|
File details
Details for the file nessus_plugin_hosts-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nessus_plugin_hosts-0.1.2-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b6595342fb28395e86abd33d88b9b060efd786a198d50052c8a9d23bdc134fe
|
|
| MD5 |
59d294062025dceed93b687d69c90cb4
|
|
| BLAKE2b-256 |
e5fe93f7b392652aed877c64a7cdaf6dca65f9b2967609db30c5de52d7c45873
|