This Python script is a basic network scanning tool that utilizes the nmap
library to perform port scans on a target IP address. It allows users to select different scanning techniques and provides detailed scan results, including open ports, services, and protocols.
โ
User Input for Target IP Address
โ
Multiple Scan Modes:
- SYN Scan (-sS) [TCP]
- UDP Scan (-sU)
- Comprehensive Scan (-sS -O -A -sC) [Requires Root]
โ Scans Ports 1-1024
โ Displays Open Ports, Protocols, and Service Details
-
Install required dependencies:
-
Run the script:
-
Enter the IP address and select the scan type.
-
View the scan results, including open ports and running services.
- Python 3
nmap
installed on the systempython-nmap
module (pip install python-nmap
)- Root privileges for Comprehensive Scan (-O)
๐น This script is intended for educational and security research purposes only.
๐น Unauthorized scanning of networks without permission may be illegal.
๐น The author is not responsible for any misuse of this tool.