Katana crawls websites from the command line, with optional headless Chrome for JavaScript-heavy pages. It discovers endpoints, applies scope rules, and emits structured output.
Overview
Katana is a web crawling and spidering tool aimed at security research and reconnaissance-style site mapping. It accepts single URLs, comma-separated lists, file lists, or piped stdin and can write results to the terminal, a file, or JSON.
It offers two crawling engines. Standard mode uses Go’s HTTP client for speed without browser overhead. Headless mode drives a browser so TLS fingerprints match a real client and pages rendered with JavaScript can reveal additional endpoints.
Scope can be limited by root domain, fully qualified hostname, or domain keyword, with regex-based include and exclude rules. Depth, duration, JavaScript file parsing, robots.txt and sitemap handling, automatic form filling, and URL similarity filtering help control how far a crawl runs.
Optional knowledge-base classification labels page types and forms with a downloaded ML model. Headless mode can explore UI interactions, tune page-load wait strategies, and integrate captcha solving via an external provider. Authenticated crawling supports custom headers, cookies, automatic login, and recorded flows.
Key features
- Standard and headless crawling modes
- JavaScript parsing and DOM-aware discovery
- Flexible scope and regex filters
- STDIN, URL, and list inputs
- JSON, file, or stdout output
- Optional page-type ML classification
- Automatic form fill and captcha solving
- Docker and binary installation
Use cases
- Mapping site endpoints for security testing
- Crawling SPAs with headless Chrome
- Scoped subdomain enumeration
- Authenticated or form-based logins