pymap: A simple Python script for educational purposes, designed for network scanning and service-based vulnerability detection.
This project is a Python script that scans a network environment to detect active devices, open ports, running services, and potential security vulnerabilities. It uses Nmap for network scanning, analyzes service version information, queries the NVD/CVE database for relevant vulnerabilities, and generates a PDF report with the results.
- π Network Scanning β Performs in-depth Nmap scans on specified IP addresses, CIDR blocks, or domains.
- π§Ύ Service & Version Detection β Collects service and version information for detected services.
β οΈ Vulnerability Detection β Queries collected service/version data against the NVD/CVE database.- π PDF Reporting β Compiles scan results and detected vulnerabilities into a detailed PDF report.
- π Automatic Subnet Detection β Automatically detects the local subnet if no target is specified and performs the scan.
- β‘ Parallel Processing (ThreadPoolExecutor) β Executes vulnerability scans in parallel for improved performance in large networks.
- Python β Core language.
- Nmap β Network scanning.
- Requests β Fetching CVE data via HTTP.
- Netifaces β Detect local network interfaces and subnet information.
- ReportLab β Generating PDF reports.
- Concurrent.Futures β Parallel processing.
- Scan a Specific IP Address:
python3 script.py -t 192.168.1.1 - Scan a Subnet:
python3 script.py -t 192.168.1.0/24 - Automatic Subnet Detection & Scan:
python3 script.py