A Python script that automates comprehensive network scanning using Nmap. This tool runs multiple scan types sequentially to provide thorough reconnaissance of target systems.
- Initial Scan: Quick service and version detection
- Full Port Scan: Comprehensive scan of all 65535 ports
- Vulnerability Scan: Security vulnerability assessment
- UDP Scan: UDP port discovery and service detection
- Automatic output organization in dedicated directory
- Verbose output for detailed scan progress
- Python 3.x
- Nmap installed and accessible from command line
- Appropriate network permissions for scanning
Linux/Ubuntu:
sudo apt-get install nmapWindows: Download from nmap.org
macOS:
brew install nmappython3 nmap_automator.py <target_ip>python3 nmap_automator.py 192.168.1.100All scan results are saved in the ./nmap/ directory:
initial- Initial scan resultsfullport- Full port scan resultsvuln- Vulnerability scan resultsudp- UDP scan results
| Scan Type | Command | Purpose |
|---|---|---|
| Initial | nmap -sSCV -n -vv <ip> |
Quick service/version detection |
| Full Port | nmap -sSCV -p- -n -vv <ip> |
All TCP ports with service detection |
| Vulnerability | nmap -sSV --script=vuln -p- -n -vv <ip> |
Security vulnerability assessment |
| UDP | nmap -sSV -sU -p- -n -vv <ip> |
UDP port discovery |
- Legal Use Only: Only scan systems you own or have explicit permission to test
- Time Requirements: Full scans can take several hours depending on target
- Network Impact: Scans generate significant network traffic
- Root Privileges: Some scan types may require elevated privileges
This tool is for educational and authorized security testing purposes only.