How mohapilimpho23-afk/net-guard-toolkit works
NetGuard is a command-line network defense toolkit. Its principal workflow starts at the CLI, which routes requests to independent discovery, monitoring, detection, integrity, and reporting capabilities. The graph includes the sampled implementations and the README-documented report outputs. The scanner and host discovery print findings rather than returning collected results; the CLI’s report calls pass minimal metadata, not those findings. Evidence is limited to the supplied tree, README, and sampled source.
Main entry points: main.py CLI routing · integrity.py Integrity checks · scanner.py Threaded port scan · monitor.py Host discovery
Components 12
CLI orchestration
- CLI routing
main.py
Network visibility
- Threaded port scan
Modules/scanner.py - Host discovery
Modules/monitor.py
Detection and integrity
- Integrity checks
Modules/integrity.py - SHA-256 hashing
Modules/integrity.py - Pattern analysis
Modules/log_analyzer.py - Brute-force detection
Modules/log_analyzer.py
Reporting and state
- Baseline file
Modules/integrity.py - Report generation
Modules/reporter.py - JSON and HTML reports
Modules/reporter.py
Other components
- Security analyst
- System ping
Connections 13
- Security analyst → CLI routing: selects command
- CLI routing → Threaded port scan: starts scan
- CLI routing → Host discovery: starts discovery
- CLI routing → Integrity checks: runs check
- CLI routing → Pattern analysis: analyzes log
- CLI routing → Brute-force detection: checks failures
- CLI routing → Report generation: requests reports
- Threaded port scan → System ping
- Host discovery → System ping: dispatches probes
- Integrity checks → SHA-256 hashing: hashes files
- Integrity checks → Baseline file: reads or writes
- Pattern analysis → Brute-force detection
- Report generation → JSON and HTML reports: writes reports