This is a simple graphical user interface (GUI) application built with Python to scan a range of ports on a given IP address. It identifies open ports and displays them in green text for easy visibility. The application uses the socket
library to attempt connections and tkinter
for the GUI.
- Allows user input for IP address and port range (start and end).
- Scans each port in the specified range, showing only the open ports in green.
- Provides immediate feedback on the open ports and displays results in a dedicated text area within the GUI.
- Python 3.x installed on your machine.
- Required libraries:
socket
(built-in with Python)tkinter
(also included with Python)
- Ensure that Python is installed on your machine by running
python --version
in your terminal or command prompt. - Clone this repository or download the script file.
- Run the program:
python port_scanner_gui.py
- Enter the IP address you want to scan in the "IP Address" field.
- Specify the port range:
- Enter the starting port in the "Start Port" field.
- Enter the ending port in the "End Port" field.
- Click the "Start Scan" button.
- The results will be displayed in the text box below. Open ports are highlighted in green.
- IP Address Input: User enters the IP address to scan.
- Start and End Port Input: User defines the port range for scanning.
- Scan Button: Starts the scan based on user input.
- Results Display: Shows open ports in green text, all within the main GUI window.
- Enter
8.8.8.8
(Google’s DNS) as the IP. - Set the range from
70
to90
. - Click "Start Scan" to view open ports in the specified range.
This project is licensed under the MIT License.