This Python script parses Nessus vulnerability scan output files (.nessus) to extract TCP Scanner (Plugin ID 10335) findings. It creates formatted output files suitable for further network analysis with nmap.
- Extracts IP addresses and open ports from Nessus TCP Scanner results
- Creates a list of unique IP addresses
- Generates a comma-separated list of all discovered ports
- Automatically creates an nmap command for further service enumeration
- Supports custom output file names
Basic usage:
python nessus_parser.py scan_results.nessusWith custom output files:
python nessus_parser.py scan_results.nessus --ip-file custom_ips.txt --ports-file custom_ports.txtThe script generates three files:
- ip_addresses.txt - List of IP addresses (one per line)
- open_ports.txt - Comma-separated list of unique open ports
- nmap_command.txt - Ready-to-use nmap command incorporating the discovered hosts and ports
- Python 3.6 or higher
- No additional packages required (uses standard library only)