The Nmap CVE Report is a Python-based tool that utilizes Nmap to scan a target IP or domain for known vulnerabilities. It extracts CVE details and attempts to retrieve relevant information from PentesterLab. Results are saved in a structured JSON format, and any available CVE-related pages are downloaded for further analysis.
- Automated Nmap vulnerability scanning
- Parses CVE vulnerabilities from scan results
- Downloads related PentesterLab pages if available
- Organized output per target
- Supports Windows & Linux
- Colorized console output for better readability
- Option to disable sudo usage with
--nosudo
flag
Ensure you have the following installed on your system:
- Python 3.x
- Nmap
- Required Python libraries:
pip install requests colorama
sudo apt update && sudo apt install nmap -y
sudo pacman -S nmap
brew install nmap
- Download Nmap from Nmap Official Site
- Install it and ensure
nmap.exe
is added to your systemPATH
To ensure your Nmap vulnerability detection is up to date, update the CVE database:
sudo nmap --script-updatedb
This will fetch the latest vulnerability detection scripts for Nmap.
git clone https://github.com/mrdodgerx/nmap-cve-report.git
cd nmap-cve-report
python nmap_cve_reporter.py --target <IP_or_Domain>
python nmap_cve_reporter.py --target 192.168.1.1
If you don’t want the script to use sudo, add the --nosudo
flag:
python nmap_cve_reporter.py --target 192.168.1.1 --nosudo
All results are saved in an organized output folder per target:
output/
└── 192.168.1.1/
├── 192.168.1.1_vulnerabilities.json # JSON report of found vulnerabilities
├── pentesterlab/
│ ├── CVE-XXXX-XXXX.html # Downloaded CVE pages (if available)
- Linux users may need to run with
sudo
for full scanning capabilities. - If PentesterLab does not have a page for a CVE, it will be skipped.
- JSON files contain full vulnerability details, including CVE ID, CVSS score, and available exploit links.
- The
--nosudo
flag allows running without sudo.
This project is open-source and licensed under the MIT License.
Feel free to contribute by submitting pull requests or reporting issues.