How 0xm1sk/port_scanner works
This is a small Rust TCP port scanner. The user supplies a target address; the command-line entry point scans ports 1–9999, calls a probe that resolves each address and attempts a timed TCP connection, then prints open ports and a summary. The repository has one runtime source file, so stages are separated by responsibility rather than by module. The README documents the scan behavior; implementation relationships below are supported by the excerpted source.
Main entry points: main.rs CLI scan
Components 5
Other components
- User
- CLI scan
src/main.rs - Port probe
src/main.rs - Target host
- Terminal output
Connections 4
- User → CLI scan: provides target
README.md - CLI scan → Port probe: probes ports
src/main.rs - Port probe → Target host: connects TCP
src/main.rs - CLI scan → Terminal output: prints results
src/main.rs