This is a simple tool to scan open ports on any device (e.g., websites or local machines).
β Features
- Scans ports 20 to 1024
- Checks if each port is open or closed
π οΈ How to Run
- Save the script as
port_scanner.py
- Run in terminal:
python port_scanner.py
π What I Learned
- How to use Pythonβs
socket
library to perform network scans - Why attackers and analysts scan for open ports and services
- The role of port scanning in reconnaissance and vulnerability assessments
- Timeout handling and how to detect open vs closed ports