A simple Python cybersecurity tool that runs Nmap scans, parses the results, and highlights open ports, services, and potential vulnerabilities.
- Run Nmap with version + OS detection
- Parse output for open ports and service versions
- Detect vulnerable services using simple version checks
- Clean console-based summary
When you run python3 scan.py, the script asks for a target to scan (e.g., scanme.nmap.org or your local IP).
The script runs an Nmap command in the background to scan the target’s open ports, services, and operating system.
The output is saved in the output/ folder as a text file for later analysis.
The parser reads the saved Nmap file, extracts open ports, service versions, and attempts to identify potential vulnerabilities based on known version issues.
Finally, the script prints an easy-to-read summary of open ports, detected services, OS guess, and any vulnerability warnings.
- Python 3.x
- Nmap installed (
sudo apt install nmap)
python3 scan.pyThen enter a target IP (e.g. scanme.nmap.org or your local IP).