This Python script allows scanning ports on single or multiple IP addresses within a specified range. It utilizes threading for efficient scanning and supports both individual IPs and IP ranges.
- Single IP Scan: Enables scanning ports for a single specified IP address.
- IP Range Scan: Supports scanning ports across a range of IP addresses.
- Multi-threading: Utilizes threading for parallel port scanning, enhancing performance.
- Clone this repository.
- Ensure you have Python 3.x installed.
- Run the script in your terminal or IDE.
python port_scanner.py
To perform a single IP scan:
- Invoke the
single_ip_scan()
function. - Follow the prompts:
- Enter the target IP address.
- Define the starting and ending port numbers.
For scanning across an IP range:
- Use the
ip_range_scan()
function. - Provide the following details:
- Starting and ending IP addresses.
- Starting and ending port numbers.
Contributions are welcomed! Whether it's reporting issues or submitting pull requests, your contributions are highly appreciated.
This project is licensed under the MIT License.