Author: D0up4
Project Type: Red Team Recon / Educational
Last Updated: 06/2025
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.
- β 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
- python port_scanner.py 127.0.0.1 --start 1 --end 65535
π 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
git clone https://github.com/D0up4/Port-Scanner.git
cd Port-Scanner
python port_scanner.py (TARGET IP) --start 1 --end 65535 (ports otpional)