How nidusvespae/chihou-scout works
斥候 is a single-file, standard-library HTTP posture auditor for authorized infrastructure. Its user-to-result flow is: choose targets via the menu or CLI, enforce the owned-zone scope, probe each in-scope host, assess HTTP posture and exposed paths, then rank findings and emit Markdown or JSON. The graph preserves the documented check categories and soft-404 safeguard. Source excerpts show several audit and reporting details; other links rely on the README’s workflow description, since the file is only partially excerpted.
Main entry points: chihou.py Finding ranker
Components 18
User interaction
- Menu and CLI
chihou.py - Target selection
chihou.py
Scoped scanning
- Owned-zone gate
chihou.py - HTTP host probe
chihou.py - Root response
chihou.py
Assessment and reporting
- Security header audit
chihou.py - Header leakage audit
chihou.py - Cookie audit
chihou.py - HTTP method audit
chihou.py - HTTPS redirect audit
chihou.py - Sensitive path audit
chihou.py - Soft-404 baseline
chihou.py - Finding ranker
chihou.py - Host report
chihou.py - Markdown / JSON output
chihou.py
Other components
- Operator
- Owned host
- User or pipeline
Connections 23
- Operator → Menu and CLI: starts scan
README.md - Menu and CLI → Target selection: chooses targets
README.md - Target selection → Owned-zone gate: checks scope
README.md - Owned-zone gate → HTTP host probe: permits probe
README.md - HTTP host probe → Owned host: sends GET / HEAD / OPTIONS
README.md - HTTP host probe → Root response: returns response
chihou.py - Root response → Security header audit: checks headers
chihou.py - Root response → Header leakage audit: checks leakage
chihou.py - Root response → Cookie audit: checks cookies
chihou.py - Target selection → HTTP method audit: scans selected host
README.md - Target selection → HTTPS redirect audit: scans selected host
README.md - Target selection → Sensitive path audit: scans selected host
README.md - Sensitive path audit → Soft-404 baseline: learns baseline
README.md - Soft-404 baseline → Sensitive path audit: filters catch-all
chihou.py - Security header audit → Finding ranker: adds findings
chihou.py - Header leakage audit → Finding ranker: adds findings
chihou.py - Cookie audit → Finding ranker: adds findings
chihou.py - HTTP method audit → Finding ranker: adds findings
chihou.py - HTTPS redirect audit → Finding ranker: adds findings
chihou.py - Sensitive path audit → Finding ranker: adds findings
chihou.py - Finding ranker → Host report: sorts and counts
chihou.py - Host report → Markdown / JSON output: renders report
README.md - Markdown / JSON output → User or pipeline: prints output
README.md