This project is a multi-threaded port scanning tool written in Python. It scans a target IP/Domain for open ports using multiple threads to speed up the process.
- Multi-threaded port scanning for faster results.
- Accepts single ports, lists of ports, or port ranges.
- Validates and resolves target IP addresses.
- Provides colored terminal output for better readability.
- Python 3.x
colorama
library
First, clone the repository and navigate into its directory:
git clone https://github.com/omershaik0/Multithreaded_Port_Scanner.git
cd Multithreaded_Port_Scanner
Install the required dependencies using pip
:
pip install colorama
Run the script with the required arguments:
python3 multi_threaded_port_scanner.py -l <Target IP/Domain> -p <Target Port(s)> -t <Number of Threads>
-l
,--target
: Enter the Target IP/Domain to scan Ports (required).-p
,--port
: Enter the Target Port(s) e.g.,21
,22,23,21
, or1-65535
(required).-t
,--threads
: Enter the number of Threads (optional, default is 10 threads).
Scan the target 192.168.1.1
for ports 21
, 22
, and 80
using 20 threads:
python3 multi_threaded_port_scanner.py -l 192.168.1.1 -p 21,22,80 -t 20
The script provides colored terminal output indicating open ports:
PORT STATE
21 OPEN
22 OPEN
80 OPEN
Contributions are welcome! Please fork the repository and create a pull request.
- Use ethically :)