A Python-based port scanner that detects open ports on a target system using TCP connections.
This project includes multithreading for faster scanning, custom port range selection, and basic service detection.
- Scans custom port ranges (user-defined)
- Multithreaded scanning for improved speed
- Detects open ports using TCP connection
- Identifies common services (HTTP, SSH, etc.)
- Handles invalid host errors
- Clean and readable output
- User enters a target (IP address or domain)
- Domain is converted to IP using DNS resolution
- User provides a port range (start and end)
- The scanner attempts TCP connections on each port
- If connection is successful, the port is marked as open
- Known services are displayed for common ports
- Python
- Socket Programming
- Multithreading (
concurrent.futures)
python port_scanner.py
This project is for educational purposes only. Do not use it to scan systems without proper authorization.
Fast scans may miss ports due to network delays or firewalls Service detection is based on common port mapping (not deep inspection)
- Multithreading for faster scanning
- Adjustable timeout for better accuracy
- Customizable port range
- Basic service identification
- Banner grabbing (detect service versions)
- Save scan results to a file
- GUI-based interface
- OS detection
Made with ❤️ by LashminiAD