LAB-002 / SOFTWARE & NETWORKING

Python Network Scanner.

A small network utility built with Python socket programming to explore TCP connectivity, port scanning and network visibility.

PYTHON SOCKETS TCP/IP NETWORK RECONNAISSANCE COMPLETED
View repository ↗ All projects

Exploring networks with Python

This Python network scanner explores how network connections can be tested programmatically. It uses socket programming to attempt connections to selected ports and reports which services appear reachable.

The project connects software development with practical networking: rather than relying only on a graphical scanner, it builds a small tool and exposes the logic behind port scanning.

The scanning workflow

01 / TARGET

Target handling

Accept a target host and a port or port range for scanning.

02 / CONNECTION

Socket connections

Use Python socket connection attempts to test port reachability.

03 / RESULTS

Port reporting

Present the results so reachable ports can be identified.

Networking through code

Making a scanner useful and responsible

A port scanner is a measurement tool, not proof that a service is vulnerable. An open port indicates that a connection was accepted; identifying the service and assessing its security require additional investigation.

Future improvements can include controlled concurrency, timeouts, clearer error handling and optional service identification. Only scan systems you own or have explicit permission to assess.

Scan output & report evidence

Tested against a controlled local target to verify TCP port reachability detection, terminal reporting, and structured JSON output generation.

Terminal output showing TCP port scan results and reachable services
FIG 01 — Console output displaying target port scan execution and open port detection.
Structured JSON export of port scan results
FIG 02 — Structured JSON scan report generated for repeatable documentation and review.