This project is a simple TCP port scanner written in Python. It scans a target IP address across a user-defined port range and reports which ports are open.
The purpose of this project was to better understand how port scanning works at a low level using Python sockets.
- Scans a target IP address
- Accepts a custom start and end port
- Detects open TCP ports
- Prints a summary of results
- Uses socket timeouts to improve scanning speed
- Python 3
socketsys
The script attempts to make a TCP connection to each port in the selected range using Python's socket library.
If the connection succeeds, that port is considered open.
This is a basic form of port enumeration and helps demonstrate a core concept in network reconnaissance.
python-port-scanner/
├── main.py
├── README.md
└── requirements.txt