Post

πŸ›‘οΈ Port Scanner

A tool that allows users to input an IP address and scan a range of TCP ports.

πŸ›‘οΈ Port Scanner

πŸ” Overview

A minimal C++ port scanner using Qt. Clean and responsive GUI for scanning open TCP ports.

πŸš€ Features

  • Built with Qt Creator for performance and cross-platform support
  • Input an IP address and scan a range of TCP ports
  • Uses QTcpSocket with asynchronous UI updates
  • Displays response time for each open port

πŸ›‘οΈ How Port Scanner Works

The program uses QTcpSocket to attempt TCP connections to a range of ports on a specified IP address. If the connection succeeds, it is considered β€œopen” and the response time is recorded.

πŸ“Έ Preview

Port Scanner Output

πŸ’» Demo

1
2
3
4
5
6
7
8
Enter IP address: 127.0.0.1  
Enter start port: 1  
Enter end port: 200

Scanning 127.0.0.1 from port 1 to 200...  
Port 22 is open (Response Time: 9 ms)  
Port 80 is open (Response Time: 13 ms)  
Port 135 is open (Response Time: 15 ms)  

πŸ“‚ Python Version:

⬇️ See Python port scanner script for a CLI-based implementation.

πŸ”— View Code