Scans a range of ports on a specified host to identify open and closed ports, supports multi-threading for faster scanning.
- Scan a range of ports on a specified host
- Multi-threaded for faster scanning
- User-friendly output format
- Adjustable number of threads
- Clone the repository or download the files.
- Navigate to the project directory.
cd port_scanner
To run the port scanner, use the following command:
python port_scanner.py <host> <start_port> <end_port> [--threads <num_threads>]
- host: The host to scan (e.g., 127.0.0.1).
- start_port: The starting port number (e.g., 20).
- end_port: The ending port number (e.g., 80).
- --threads: (Optional) The number of threads to use (default is 10).
python port_scanner.py 127.0.0.1 20 80 --threads 50
This command scans ports 20 to 80 on the host 127.0.0.1 using 50 threads.