A lightweight and beginner-friendly Python-based ethical hacking tool to scan open ports on single or multiple targets using socket programming.
- Scan a range of ports (default: 1 to N)
- Accepts single or multiple IP targets (comma-separated)
- Uses built-in
socketlibrary for network connections - Colored console output with
termcolorfor better readability
- Python 3.x
termcolormodule
Install termcolor using pip if not already installed:
pip install termcolor- Clone this repository:
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name- Run the script:
python port_scanner.py- Enter your input as prompted:
[*] Enter Targets To Scan(split them by ,): 127.0.0.1,192.168.1.1
[*] Enter How Many Ports You Want To Scan: 100
This tool is developed for educational purposes and authorized security testing only. Do not use it to scan systems without explicit permission.
port_scanner.py
README.md
- [Daniyal Khan]
- GitHub Profile
This project is licensed under the MIT License. Feel free to use, modify, and distribute.