NetPortScan is a multi-threaded network port scanner that allows you to scan a range of ports on a target IP address. It includes features such as delay between connection attempts, verbose mode, and the ability to save scan results to a CSV file.
- Multi-threaded port scanning
- Configurable port range
- Delay between connection attempts
- Verbose mode to show closed ports
- Save scan results to a CSV file
- Python 3.x
- Clone the repository:
git clone https://github.com/sakv-dev/NetPortScan.git
- Navigate to the project directory:
cd NetPortScan
Run the script with the following options:
python NetPortScan.py <IP_ADDRESS> [OPTIONS]<IP_ADDRESS>: The IP address to scan.-p, --ports <PORT_RANGE>: Port range to scan (default: 1-1024). Example:1-100,20-80,1-33999.-v, --verbose: Enable verbose mode to show closed ports.-o, --output [<FILE>]: Output file for scan results (default:scan_results.csv). If no file is specified,scan_results.csvwill be used.-t, --threads <NUMBER>: Number of threads for scanning (default: 10).-d, --delay <SECONDS>: Delay between connection attempts in seconds (default: 0.01).
-
Scan the default port range (1-1024) on a target IP:
python netportscan.py 192.168.1.1
-
Scan a specific port range with verbose mode:
python netportscan.py 192.168.1.1 -p 20-80 -v
-
Scan with a custom number of threads and delay:
python netportscan.py 192.168.1.1 -t 20 -d 0.05
-
Save scan results to a custom file:
python netportscan.py 192.168.1.1 -o my_scan_results.csv
- Inspired by various open-source port scanners.
- Developed by Stalka.