This is a Python-based port scanner that allows you to scan a target or multiple targets for open ports. It's a simple yet powerful tool for network administrators and enthusiasts.
- Scan single or multiple targets.
- Specify the range of ports to scan.
- Clean output displaying open ports.
- Lightweight and easy to use.
Ensure you have the following installed on your system:
- Python 3.x
To check if Python 3 is installed, run:
python3 --version
- Clone the repository:
git clone https://github.com/mohammedmehdio/OpenPorts.git
- Navigate to the project directory:
cd OpenPorts
- Install the required library:
pip install termcolor
- Run the script:
python3 OpenPorts.py
-
Input the targets you want to scan:
- For a single target: Enter the IP or domain (e.g.,
192.168.1.1
). - For multiple targets: Separate them with commas (e.g.,
192.168.1.1, 192.168.1.2
).
- For a single target: Enter the IP or domain (e.g.,
-
Enter the number of ports to scan (e.g.,
1000
to scan ports from 1 to 1000). -
The script will display the open ports for each target.
[*] Enter Targets To Scan (Split Them By , ) : 192.168.1.1
[*] Enter how many Ports You Want To Scan : 100
Output:
Starting Scan For 192.168.1.1
[+] Port Opened 22
[+] Port Opened 80
[*] Enter Targets To Scan (Split Them By , ) : 192.168.1.1, 192.168.1.2
[*] Enter how many Ports You Want To Scan : 50
Output:
[*] Scanning Multiple Targets
Starting Scan For 192.168.1.1
[+] Port Opened 22
Starting Scan For 192.168.1.2
[+] Port Opened 80
- Ensure you have permission before scanning any network or system.
- Scanning ports without authorization may violate local laws or regulations.
This project is licensed under the MIT License. See the LICENSE
file for details.
Developed by Boudir Mohammed Mehdi
Feel free to contribute, report issues, or suggest enhancements!