Port Scanner

Port Scanner

Date Published: 10/08/2025

Topics: Cyber Security Programming

An overview of my Python port scanner built with the socket module, showcasing my learning in network programming and debugging. The project demonstrates scanning common and full port ranges with real-time results, emphasizes ethical use, and includes clear usage instructions. It highlights my practical skills in Python, cybersecurity fundamentals with a focus on ethical hacking.

Project Overview

A lightweight Python-based port scanner built with the socket module. This project was developed to strengthen my understanding of network programming fundamentals and demonstrate practical use of sockets in Python. You find the repository here

What I Used

Key Challenges

One of the main issues encountered was a timeout error caused by using timeout(0.5) instead of the correct settimeout(0.5). Debugging this reinforced my knowledge of Python’s socket API and error handling.

Outcome

Successfully built a Python socket-based port scanner capable of:

I always emphasize ethical use: only scan devices you own or have explicit permission to test.

Usage Instructions

The port scanner follows a simple, interactive workflow:

1. Starting the Program

2. Choosing a Scan Type

3. Entering the Target

4. Behind the Scenes

5. Viewing the Results

6. Practical Takeaway

Screenshots