What is this?
Katana is a next-generation crawling and spidering framework from ProjectDiscovery: point it at URLs and it discovers endpoints, links and forms across a site.
Is it a command-line tool or a library I add to my code?
It is a standalone command-line tool written in Go. It takes URLs, files or piped stdin and writes results to stdout, a file or JSON — you run it, not import it.
How do I install and run it?
Install with go install (Go 1.26+ required), grab a pre-compiled binary from the releases page, or run it via Docker. On Ubuntu, some prerequisites are recommended first.
Do I need Chrome installed for anything?
For standard crawling just the binary. Headless mode drives a local Chrome/Chromium browser, and the knowledge-base ML model is auto-downloaded from Hugging Face on first use.
Will it catch endpoints that only appear after JavaScript runs?
Not in standard mode: it reads raw responses with no DOM rendering, so JS-only endpoints can be missed — enable -headless for that. Automatic form filling is also marked experimental.
What is the difference between standard and headless mode?
Standard mode uses Go's http library — much faster, but it only sees raw responses. Headless mode runs inside a real browser, so the TLS and user-agent fingerprint look legitimate, and JavaScript-rendered endpoints are discovered too.
How do I keep it from crawling beyond my target?
By default it stays on the root domain and its subdomains (-field-scope rdn). You can add regex in/out-of-scope rules with -cs/-cos, cap how deep it follows links with -depth, and limit pages per domain with -max-domain-pages.
Can it crawl pages behind a login?
Yes — pass session cookies or headers with -headers or from a file, or connect to a Chrome session where you are already logged in via remote debugging. You perform the login manually; katana reuses that session.
What does the knowledge base feature add?
It classifies every crawled page with an ML model (dit) into types like login, error, captcha or parked, and can extract detected secrets and tag endpoints as REST, GraphQL, SOAP or XHR in the JSONL output.
What are similar projects?
moli, crawlee, Photon, httpx, google-maps-scraper-kit, bbot, ArchiveBox, figranium
Which topics is it in?
headless-chrome, web-crawler, headless-browser, reconnaissance, crawler, headless, web-scraping, browser-automation, security-tools, hacktoberfest, go, command-line-tool