You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Advanced Port Scanner with Banner Extraction - Professional-grade port scanner with comprehensive banner grabbing, multi-threading, and detailed service detection for cybersecurity professionals
A professional-grade port scanner with comprehensive banner grabbing capabilities, multi-threading support, and detailed service detection. Perfect for cybersecurity professionals, penetration testers, and network administrators.
🚀 Features
Core Scanning Capabilities
TCP Port Scanning: Comprehensive port range scanning
Banner Extraction: Advanced banner grabbing with service-specific requests
Service Detection: Automatic service identification
Multi-threading: Configurable thread pool for optimal performance
# Scan common ports on a targetpython3 port_scanner.py 192.168.1.1# Scan specific port rangepython3 port_scanner.py 192.168.1.1 --ports 1-1000# Scan specific portspython3 port_scanner.py example.com --ports 80,443,8080,8443
Advanced Usage
# Verbose scan with custom threadspython3 port_scanner.py 10.0.0.1 --ports 1-65535 --threads 200 --verbose# Save results to filepython3 port_scanner.py target.com --ports 1-1000 --output scan_results --format json# CSV output with custom timeoutpython3 port_scanner.py 192.168.1.100 --ports 1-1000 --format csv --timeout 5
Command-line Options
target: Target host (IP address or hostname)[Required]
--ports, -p: Port range (e.g., 1-1000, 80,443,8080)[Default: 1-1000]
--threads, -t: Maximum threads[Default: 100]
--timeout: Connection timeout in seconds[Default: 3]
--verbose, -v: Enable verbose output
--output, -o: Output filename (without extension)
--format: Output format (json/csv)[Default: json]
📊 Output Examples
Console Output
[12:34:56] [INFO] Starting port scan on 192.168.1.1[12:34:56] [INFO] Scanning 1000 ports with 100 threadsProgress: 1000/1000 ports scanned[12:34:58] [INFO] Scan completed in 2.15 seconds[12:34:58] [INFO] Found 3 open ports========================================================================================================================PORT SCAN RESULTS========================================================================================================================Port Service Status Banner------------------------------------------------------------------------------------------------------------------------22 SSH Open SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.280 HTTP Open HTTP/1.1 200 OK443 HTTPS Open HTTP/1.1 200 OK========================================================================================================================Total open ports: 3Scan duration: 2.15 seconds
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
⚠️ Disclaimer
This tool is for educational and authorized testing purposes only. Users are responsible for ensuring they have proper authorization before scanning any network or system. The authors are not responsible for any misuse of this tool.
📞 Support
For support, questions, or feature requests, please open an issue on GitHub.
Happy Scanning! 🚀
About
Advanced Port Scanner with Banner Extraction - Professional-grade port scanner with comprehensive banner grabbing, multi-threading, and detailed service detection for cybersecurity professionals