Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 1.37 KB

File metadata and controls

78 lines (48 loc) · 1.37 KB

🔍 Python Port Scanner

A lightweight and beginner-friendly Python-based ethical hacking tool to scan open ports on single or multiple targets using socket programming.


⚙️ Features

  • Scan a range of ports (default: 1 to N)
  • Accepts single or multiple IP targets (comma-separated)
  • Uses built-in socket library for network connections
  • Colored console output with termcolor for better readability

📦 Requirements

  • Python 3.x
  • termcolor module

Install termcolor using pip if not already installed:

pip install termcolor

🚀 How to Use

  1. Clone this repository:
git clone https://github.com/your-username/your-repo-name.git
cd your-repo-name
  1. Run the script:
python port_scanner.py
  1. 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

🛡️ Ethical Use

This tool is developed for educational purposes and authorized security testing only. Do not use it to scan systems without explicit permission.


📁 File Structure

port_scanner.py
README.md

✍️ Author


📜 License

This project is licensed under the MIT License. Feel free to use, modify, and distribute.