Skip to content

A simple Python-based ethical hacking tool to scan open ports on one or multiple target IPs using socket programming.

Notifications You must be signed in to change notification settings

ceodaniyal/Portscanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” 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.