httrack_mirror
Mirror a website to a local directory for offline analysis, enabling forensic snapshots and offline search for secrets or API keys.
Instructions
Mirror a website locally for offline analysis using HTTrack.
Downloads the full website (HTML, JS, CSS, images) to a local directory, preserving structure for offline inspection. Useful for:
Forensic snapshots of a target's web surface
Offline search for hardcoded secrets, API keys, dev comments
Mapping application structure without active interaction
Args: target: URL of the site to mirror (e.g. http://example.com). depth: Crawl depth (1–5). Default 2. Capped at 5 to prevent runaway crawls. output_dir: Local directory to save the mirror (default /tmp/httrack). max_size: Maximum download size in MB (default 100, max 500). include_assets: Whether to download CSS/JS/images (default True). timeout: Override default scan timeout in seconds.
Returns: Mirror results with download stats, file type breakdown, and interesting findings.
Note: - HTTrack must be installed on the system (apt install httrack / brew install httrack). - Target must be in tengu.toml [targets].allowed_hosts. - Set depth=1 for a shallow mirror of the top-level page only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| target | Yes | ||
| timeout | No | ||
| max_size | No | ||
| output_dir | No | /tmp/httrack | |
| include_assets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||