How 0xshun/network-scanner works
Network Scanner is a command-line host and network assessment tool. Its documented workflow parses a target and scan options, validates input, dispatches selected ICMP, TCP, and ARP scans, then formats the returned results. The scanner also performs packet-level work and returns per-scan status or discovered host data. A separate older root-level script implements ARP discovery. The graph reflects the excerpts and README; the older script’s banner invocation does not match the banner module’s defined capitalization, so that connection is not asserted.
Main entry points: scanner.py Scan dispatcher · src/main.py CLI and output · main.py Legacy ARP script
Components 10
Command line
- CLI and output
src/main.py - Input parsing
src/main.py
Scan orchestration
- Scan dispatcher
src/scanner.py
Network probes
- ICMP probe
src/scanner.py - TCP port probe
src/scanner.py - ARP discovery
src/scanner.py
Legacy ARP tool
- Legacy ARP script
main.py - Banner display
_imports_/banner.py
Other components
- Operator
- Target network
Connections 13
- Operator → CLI and output: provides options
README.md - CLI and output → Input parsing: parses options
src/main.py - CLI and output → Scan dispatcher: starts scan
src/main.py - Scan dispatcher → ICMP probe: dispatches scan
src/scanner.py - Scan dispatcher → TCP port probe: dispatches scan
src/scanner.py - Scan dispatcher → ARP discovery: dispatches scan
src/scanner.py - ICMP probe → Target network: sends ICMP
src/scanner.py - TCP port probe → Target network: sends TCP
src/scanner.py - ARP discovery → Target network: sends ARP
src/scanner.py - Scan dispatcher → CLI and output: returns results
src/main.py - CLI and output → Operator: prints results
src/main.py - Operator → Legacy ARP script: runs legacy script
main.py - Legacy ARP script → Target network: sends ARP
main.py