# Install katana on Windows, macOS and Linux

Web crawler that maps the pages, endpoints and JavaScript files of a site.

katana is a web crawler built for reconnaissance. It follows links, reads JavaScript files for endpoints, and prints every URL it finds. It can drive a headless browser for sites that only work with JavaScript.

> katana sends traffic to its target. Only use it on systems you own or have written permission to test.

## How to install katana

```
ot install katana
```

ot downloads katana 1.8.0 as a prebuilt binary from [github.com/projectdiscovery/katana](https://github.com/projectdiscovery/katana/releases) and verifies its SHA-256 checksum before installing it. Nothing has to be compiled.

If you do not have ot yet:

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.3.0. Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.3.0/checksums.txt) before installing.

## How to use katana

Arguments after the tool's name go straight to katana.

Crawl two levels deep and print the URLs.

```
ot run katana -u https://example.com -d 2 -silent
```

Also read JavaScript files, and save the result.

```
ot run katana -u https://example.com -jc -o urls.txt
```

`ot run katana --help` lists every option.

An AI agent can run katana too: `ot mcp` serves it over the Model Context Protocol, once the server is started with `--allow-active`. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## katana licence, platforms and versions

- Project: https://github.com/projectdiscovery/katana
- Licence: MIT
- Runs on: Windows, macOS and Linux
- Takes: url, domain
- Categories: web, crawler, recon
- Sends traffic to the target: yes
- Release binary: version 1.8.0 from github.com/projectdiscovery/katana, verified by SHA-256

## Questions about katana

### How do I install katana on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install katana`. ot fetches a pinned version of katana and keeps it under `~/.ot`, apart from the rest of your system.

### Is katana free?

Yes. katana is open source, released under the MIT licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need Go or a compiler to install katana?

No. ot downloads the prebuilt katana binary for your platform and checks its SHA-256 checksum. A mismatch installs nothing.

### How do I update or remove katana?

`ot update katana` moves it to the version pinned in ot's registry, and `ot update katana --latest` to the newest upstream release. `ot remove katana` uninstalls it.

### Do I need permission to use katana?

Yes, for any system that is not your own. katana sends traffic to its target, so use it only on systems you own or have written permission to test. ot shows this reminder before the first run, and its MCP server refuses katana unless started with `--allow-active`.

## Tools related to katana

- [cariddi](https://otinstaller.com/tools/cariddi/): Crawl a site for endpoints, secrets, API keys and interesting files.
- [httpx](https://otinstaller.com/tools/httpx/): Probe lists of hosts for live web servers, titles, status codes and technologies.
- [amass](https://otinstaller.com/tools/amass/): In-depth attack surface mapping and subdomain discovery from many data sources.
- [asnmap](https://otinstaller.com/tools/asnmap/): Map an organisation, domain or IP to its ASNs and network ranges.
- [bbot](https://otinstaller.com/tools/bbot/): Recursive OSINT automation: subdomains, emails, web and cloud findings in one run.
- [dnsx](https://otinstaller.com/tools/dnsx/): Fast DNS toolkit for resolving and probing large lists of hostnames.

More: [Websites](https://otinstaller.com/osint-tools/websites/).
