Skip to content

D0up4/Port-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” TCP Port Scanner (Python)

Author: D0up4
Project Type: Red Team Recon / Educational
Last Updated: 06/2025


πŸ“˜ Description

This is a lightweight, terminal-based TCP port scanner written in Python. It scans a specified IP or hostname over a range of TCP ports and reports which ones are open. This tool is ideal for red team simulations, penetration testing labs, and cybersecurity training environments.

It performs simple TCP connect scans (like Nmap’s -sT), using raw sockets with adjustable timeouts and port ranges.


βš™οΈ Features

  • βœ… Scans custom TCP port ranges (1–65535)
  • βœ… Shows open and closed ports (optional)
  • βœ… Minimal dependencies (pure Python)
  • βœ… Timestamped output and scan duration
  • βœ… Safe for educational and lab use

πŸš€ How To Use

  • python port_scanner.py 127.0.0.1 --start 1 --end 65535

πŸ› οΈ Sample Output

πŸ” Scanning 45.33.32.156 on ports 20–100...

🟒 Port 22 is OPEN 🟒 Port 80 is OPEN πŸ”΄ Port 23 is CLOSED πŸ”΄ Port 25 is CLOSED

βœ… Scan complete in 0:00:01.752000

πŸ§ͺ Setup

git clone https://github.com/D0up4/Port-Scanner.git
cd Port-Scanner
python port_scanner.py (TARGET IP) --start 1 --end 65535 (ports otpional)

Releases

No releases published

Packages

No packages published

Languages