Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 508 Bytes

File metadata and controls

23 lines (16 loc) · 508 Bytes

🔍 Simple Python Port Scanner

A lightweight, beginner-friendly Python script to scan open ports on a target IP or domain. Built using only the standard library.


⚙️ Features

  • Scans TCP ports (default: 1–1024)
  • Reports open ports
  • Lightweight and easy to understand
  • Fast scanning with timeout handling
  • Saves results (optional)

$ python3 port_scanner.py
Enter target IP or domain: scanme.nmap.org
[+] Port 22 is OPEN
[+] Port 80 is OPEN
Scan completed in 2.4 seconds.