This is an advanced port scanner written in Python. The scanner utilizes multithreading to scan ports concurrently, providing faster results. Users can input the target, start port, end port, and the number of threads for parallel scanning.
This Python Simple Port Scanner is a command-line tool that allows you to scan a target host or IP address for open ports within a specified range. It utilizes multithreading to improve scanning speed and efficiently check multiple ports simultaneously.
- Scan a target host or IP address for open ports.
- Specify a range of ports to scan.
- Utilizes multithreading for faster scanning.
- Displays open ports if found during the scan.
- Multithreading: Utilizes threading for parallel port scanning.
- User Input: Takes user input for the target, start port, end port, and number of threads.
- Concurrent Scanning: Scans multiple ports concurrently for faster results.
- Python 3.x
- Required Python libraries (socket, threading, queue)
-
Clone the repository or download the
portscanner.py
file. -
Open a terminal or command prompt.
-
Navigate to the directory containing
portscanner.py
. -
Run the script using the following command:
python portscanner.py
-
Follow the prompts to enter the target, start port, end port, and number of threads.
python portscanner.py
- Advanced Python Port Scanner
Enter the target (IP address or hostname): example.com
Enter the starting port: 1
Enter the ending port: 100
Enter the number of threads: 5
Scanning target example.com from port 1 to 100 using 5 threads
Port 22 is OPEN
Port 80 is OPEN
...
Scan completed. Shutting down program.
This project is open-source and is provided under the MIT License. You are free to use, modify, and distribute the code as needed, following the terms of the MIT License.