PortLens is a multi-threaded TCP port scanner with a modern GUI that helps visualize open ports and identify potential network exposure.
It combines fast scanning with a clean dashboard interface and a simple risk analysis system to highlight critical services.
- Scan Top Ports or full range (0–65535)
- Multi-threaded TCP scanning for faster performance
- Modern GUI dashboard (Tkinter-based)
- Real-time progress bar and percentage tracking
- Structured results table (Port | Service | Risk)
- Lightweight risk analysis system
- Stop Scan button with confirmation prompt
- Final Risk Score summary
- Dark-themed, clean dashboard UI
- Real-time scan progress updates
- Table-based output for clarity
- Risk-based classification of open ports
- Python 3
socket– TCP communicationthreading– background executionconcurrent.futures– multi-threadingtkinter– GUI development
git clone https://github.com/SushantOgale/PortLens.git
cd PortLenspython portlens.py-
Enter a target IP address or domain
-
Click:
- Top Ports → quick scan of commonly used ports
- Full Scan → scans entire range (0–65535)
-
View results in the table
-
Monitor progress and status in real time
-
Check final risk score summary
-
Use Stop button to safely interrupt scanning
This tool is intended for:
- Educational use
- Personal labs
- Authorized testing environments
Do not scan systems without proper permission.
-
Uses TCP Connect scanning (not stealth)
-
Results may vary due to:
- firewalls
- network latency
- filtered ports
-
Full scan may take several minutes depending on the network
- Data visualization (charts / graphs)
- Export reports (PDF / JSON)
- Service detection (banner grabbing)
- IP intelligence (geo-location, ISP info)
- Pause / Resume scanning
Sushant Ogale Cyber Security Enthusiast
If you found this project useful, consider giving it a ⭐ on GitHub!