How mgrant8792/portscannerpro works
PortScannerPro is a command-line TCP port scanner for authorized testing. The user supplies a host and port selection; the CLI parses the ports, runs concurrent connection checks, annotates results with common-service guesses, prints a summary, and optionally writes JSON or CSV. The sampled source supports these runtime links; the network target and output destinations are external.
Main entry points: port_scanner.py CLI orchestration · common_ports.py Common service lookup
Components 13
CLI workflow
- CLI orchestration
port_scanner.py - Port selection parser
port_scanner.py
Port scanning
- Concurrent host scan
port_scanner.py - TCP connection check
port_scanner.py - Common service lookup
common_ports.py
Results and export
- Terminal summary
port_scanner.py - JSON export
port_scanner.py - CSV export
port_scanner.py
Other components
- User
- Target host
- Terminal
- JSON output file
- CSV output file
Connections 12
- User → CLI orchestration: runs
- CLI orchestration → Port selection parser: parses ports
- CLI orchestration → Concurrent host scan: starts scan
- Concurrent host scan → TCP connection check: dispatches checks
- TCP connection check → Target host: connects to
- Concurrent host scan → Common service lookup: reads guesses
- CLI orchestration → Terminal summary: prints results
- Terminal summary → Terminal: writes summary
- CLI orchestration → JSON export: calls when requested
- JSON export → JSON output file: writes JSON
- CLI orchestration → CSV export: calls when requested
- CSV export → CSV output file: writes CSV