A simple Python script that scans a network for open ports and checks discovered services against the NVD database for known CVEs.
- Detects open ports and running services using Nmap
- Fetches known CVEs from the NVD API for each detected service version
- Python 3.x
- Nmap installed on your system
- Python libraries:
pip3 install python-nmap requests --break-system-packagespython scanner.pyThen enter the target network when prompted, for example:
Enter the network to scan: 192.168.1.0/24
Port: 22 | Service: ssh | Version: OpenSSH 8.2 | CVEs: CVE-2023-38408
Port: 80 | Service: http | Version: Apache 2.4.51 | CVEs: CVE-2021-41773, CVE-2021-42013
Port: 443 | Service: https | Version: Unknown
This tool is for educational purposes and authorized network testing only. Do not use it on networks you do not own or have permission to test.