A Python tool that checks selected TCP ports on a host you own or are explicitly authorized to test.
This tool scans a list of ports, checks whether they are open, and generates a simple report for review.
- Scans selected TCP ports
- Supports port lists and ranges
- Shows open, closed, filtered, and error states
- Saves text and JSON reports
- Works from the command line
- Python 3
- socket
- argparse
- json
- pathlib
- time
port-scanner-authorized/
├── scanner.py
├── requirements.txt
├── README.md
├── .gitignore
├── reports/
└── screenshots/
python scanner.py localhostpython scanner.py localhost --ports 22,80,443python scanner.py localhost --ports 1-100python scanner.py localhost --ports 22,80,443 --save reports/scan_report.txt --json reports/scan_report.jsonTarget Host : localhost
Ports Scanned : 3
Open Ports : 1
Closed Ports : 2
Clients often need a quick, authorized check to understand which services are exposed on a machine or server they control.
- Add multithreading
- Add CSV export
- Add service banner checks
- Add subnet support for internal audits
- Add colored output
MIT
