# Install knockpy on Windows, macOS and Linux

Enumerate subdomains by passive lookup and wordlist, with HTTP and TLS checks.

Knockpy finds subdomains two ways, by asking passive sources and by testing a wordlist, then checks each one's DNS, HTTP response and TLS certificate in the same run.

## How to install knockpy

```
ot install knockpy
```

ot installs knock-subdomains 9.0.0 with uv into a Python environment of its own under `~/.ot`, so it cannot conflict with your system Python or with any other tool.

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 knockpy

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

Use both passive sources and the wordlist.

```
ot run knockpy -d example.com --recon --bruteforce
```

Passive sources only, as JSON.

```
ot run knockpy -d example.com --recon --json
```

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

An AI agent can run knockpy too: `ot mcp` serves it over the Model Context Protocol. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## knockpy licence, platforms and versions

- Project: https://github.com/guelfoweb/knock
- Licence: GPL-3.0
- Runs on: Windows, macOS and Linux
- Takes: domain
- Categories: domain, subdomain
- Sends traffic to the target: no
- Python package: knock-subdomains 9.0.0, in its own isolated environment

## Questions about knockpy

### How do I install knockpy on Windows?

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

### Is knockpy free?

Yes. knockpy is open source, released under the GPL-3.0 licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need to set up Python to use knockpy?

No. ot installs knockpy with uv into a virtual environment of its own, separate from your system Python. If uv is not installed, ot fetches its own copy first.

### How do I update or remove knockpy?

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

## Tools related to knockpy

- [alterx](https://otinstaller.com/tools/alterx/): Generate likely subdomain names from known ones using patterns.
- [amass](https://otinstaller.com/tools/amass/): In-depth attack surface mapping and subdomain discovery from many data sources.
- [bbot](https://otinstaller.com/tools/bbot/): Recursive OSINT automation: subdomains, emails, web and cloud findings in one run.
- [chaos](https://otinstaller.com/tools/chaos/): Query the ProjectDiscovery Chaos dataset of known subdomains.
- [findomain](https://otinstaller.com/tools/findomain/): Fast subdomain enumeration from certificate transparency logs and APIs.
- [subfinder](https://otinstaller.com/tools/subfinder/): Fast passive subdomain enumeration from dozens of public sources.

More: [Subdomains and DNS](https://otinstaller.com/osint-tools/subdomains/).
