https://github.com/laconicwolf/Nmap-Scan-to-CSV
Converts Nmap XML output to csv file, and other useful functions
https://github.com/laconicwolf/Nmap-Scan-to-CSV
Last synced: 4 months ago
JSON representation
Converts Nmap XML output to csv file, and other useful functions
- Host: GitHub
- URL: https://github.com/laconicwolf/Nmap-Scan-to-CSV
- Owner: laconicwolf
- Created: 2017-12-23T18:37:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T21:45:44.000Z (over 1 year ago)
- Last Synced: 2024-11-21T15:39:36.393Z (12 months ago)
- Language: Python
- Size: 26.4 KB
- Stars: 217
- Watchers: 15
- Forks: 98
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - laconicwolf/Nmap-Scan-to-CSV - Converts Nmap XML output to csv file, and other useful functions (Python)
README
# Nmap-XML-Parser
Converts Nmap XML output to csv file, and other useful functions. Ignores hosts that are down and ports that are not open.
## Usage
### Convert Nmap output to csv file
`python3 nmap_xml_parser.py -f nmap_scan.xml -csv nmap_scan.csv`
### Display scan information to the terminal
`python3 nmap_xml_parser.py -f nmap_scan.xml -p`
### Display only IP addresses
`python3 nmap_xml_parser.py -f nmap_scan.xml -ip`
### Display IP addresses/ports in URL friendly format
> Displays in format http(s)://ipaddr:port if port is a possible web port
`python3 nmap_xml_parser.py -f nmap_scan.xml -pw`
### Display least common open ports
> Displays the 10 least common open ports
`python3 nmap_xml_parser.py -f nmap_scan.xml -lc 10`
### Display most common open ports
> Displays the 10 most common open ports
`python3 nmap_xml_parser.py -f nmap_scan.xml -mc 10`
### Display only IP addresses with a specified open port
> Displays only IP addresses where port 23 is open
`python3 nmap_xml_parser.py -f nmap_scan.xml -fp 23`