A lightweight, zero-dependency web app that scans your machine or any network host for open ports. Includes a Quick Scan for 21 common ports and a Deep Scan for ~100 high-risk services, with plain-English risk explanations for each finding.
Built entirely on Python's standard library (http.server, socket, json) — no Flask, no pip install required.
- Quick Scan — One-click scan of 21 most targeted ports on localhost (~10 seconds)
- Deep Scan — Scan ~100 high-risk ports on any IP or hostname (~50 seconds)
- Risk Insights — Every open port comes with a plain-English security explanation
- Real-time Progress — Live progress bar via Server-Sent Events (SSE)
- Dark Dashboard UI — Clean terminal aesthetic with color-coded results
python3 port_scanner.pyOpen http://127.0.0.1:5000 in your browser.
To scan a remote host, enter an IP address or hostname (e.g. scanme.nmap.org) in the Deep Scan field.
Press Ctrl+C to stop the server.
- Python 3.7+
- No external dependencies (uses
http.serverfor the web interface,socketfor port scanning)