How guelfoweb/knockpy works
KnockPy discovers subdomains through passive reconnaissance, bruteforce, or both, then checks discovered hosts and presents or saves scan findings. The CLI orchestrates scans and separate setup, status, and report workflows; the Python API exposes the same engine. Reports can be managed in SQLite and exported as interactive HTML, while server-version assessment and release-update checks provide supporting capabilities. Relationships among sampled modules are cited where visible; some engine internals are only partially excerpted, so their detailed sequencing is not inferred.
Main entry points: cli.py CLI orchestration · runtime.py Scan engine · storage.py Storage facade · export.py Export orchestration
Components 20
Entry and workflows
- CLI orchestration
knockpy/cli.py - Scan helpers
knockpy/cli_parts/scan_flow.py - Setup workflow
knockpy/cli_parts/setup.py - Status display
knockpy/cli_parts/status.py - Report workflow
knockpy/cli_parts/report.py - Terminal output
knockpy/output.py
Discovery and checks
- Core facade
knockpy/core.py - Scan engine
knockpy/engine/runtime.py - Bruteforce wordlist
knockpy/wordlist/wordlist.txt - DNS resolver
- Recon services
- Host checks
knockpy/engine/runtime.py
Reports and persistence
- Storage facade
knockpy/storage.py - SQLite reports and settings
knockpy/storage_parts/db.py - Export orchestration
knockpy/storage_parts/export.py - HTML report renderer
knockpy/storage_parts/html_report.py
Supporting capabilities
- Server version catalog
knockpy/server_versions.py - Release update check
knockpy/version.py
Other components
- Operator
- PyPI
Connections 22
- Operator → CLI orchestration: invokes
README.md - CLI orchestration → Core facade: dispatches scans
knockpy/cli.py - CLI orchestration → Scan helpers: uses scan helpers
knockpy/cli.py - CLI orchestration → Setup workflow: dispatches setup
knockpy/cli.py - CLI orchestration → Status display: dispatches status
knockpy/cli.py - CLI orchestration → Report workflow: dispatches reports
knockpy/cli.py - Core facade → Scan engine: re-exports engine
knockpy/core.py - Scan engine → Bruteforce wordlist: reads words
- Scan engine → DNS resolver: resolves names
- Scan engine → Recon services: queries sources
- Scan engine → Host checks: checks hosts
knockpy/engine/runtime.py - Scan engine → Server version catalog: uses catalog
knockpy/engine/runtime.py - CLI orchestration → Terminal output: renders results
knockpy/cli.py - Setup workflow → Storage facade: reads and saves settings
knockpy/cli_parts/setup.py - Report workflow → Storage facade: manages reports
knockpy/cli_parts/report.py - Report workflow → Export orchestration: requests export
knockpy/cli_parts/report.py - Storage facade → SQLite reports and settings: delegates persistence
knockpy/storage.py - Storage facade → Export orchestration: delegates export
knockpy/storage.py - Export orchestration → HTML report renderer: renders HTML
knockpy/storage_parts/export.py - Export orchestration → Server version catalog: assesses banners
knockpy/storage_parts/export.py - CLI orchestration → Release update check: checks updates
knockpy/cli.py - Release update check → PyPI: fetches release data
knockpy/version.py