A simple port scanner written in Python.
This script scans a range of ports on a target IP address or hostname and identifies which ports are open.
-
Scans a range of ports.
-
Multithreaded for faster scanning.
-
Provides output for both open and closed ports.
-
Python 3.x
-
Libraries:
socket,threading,datetime,argparse
- Clone the repository:
git clone https://github.com/MadlyAbi/Port-Scanner.git
- Navigate to the project directory:
cd Port-Scanner
Run the script with the target IP/hostname and port range:
python port_scanner.py example.com 1 1024
For verbose output (showing closed ports as well):
python port_scanner.py example.com 1 1024 --verbose
python port_scanner.py 191.162.1.1 1 1024
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- MadlyAbi(Abinesh)
- Inspired by the need for a simple port scanner