OSINTverse

otinstaller · Networks and hosts

Install Censys CLI on Windows, macOS, or Linux in one command

The official command-line client for Censys, a search engine that continuously scans the internet and indexes hosts and certificates. It lets you read what a host exposes without sending it any traffic yourself. It needs a Censys account's API ID and secret.

Censys CLI in three lines

curl -fsSL https://otinstaller.com/install.sh | sh
ot install censys
ot run censys subdomains example.com

On Windows, replace the first line with irm https://otinstaller.com/install.ps1 | iex in PowerShell.

Runs censys/censys-python (Apache-2.0, ★ 471, otinstaller 0.3.0). otinstaller installs it as a Python package, pinned to version 2.3.0; it does not change or audit the tool itself.

What Censys CLI is for

  • Reading what a host exposes without sending it any traffic.
  • Finding every host that presents a given certificate or service.
  • Listing the subdomains Censys has seen for a domain.

Run Censys CLI with ot

ot run censys passes everything after the tool's name to Censys CLI unchanged, with input and output passed through, so the project's own documentation applies and tools pipe into each other.

List subdomains seen in certificates.
ot run censys subdomains example.com
Show everything Censys knows about a host.
ot run censys view 8.8.8.8
Search hosts with a Censys query.
ot run censys search "services.port: 9200" --pages 1

Keys it reads: CENSYS_API_ID, CENSYS_API_SECRET. Store each with ot keys set NAME.

Where the results go

ot run saves nothing itself: Censys CLI's output goes to your terminal, a pipe, or wherever its own output option writes it. Results can hold personal data, so store and share them accordingly.

Before you run it

  • Needs a Censys account. Store CENSYS_API_ID and CENSYS_API_SECRET with ot keys set.
  • Searches count against your Censys plan's quota.

Update, remove, inspect

ot info censys              # details, and how it installs on this system
ot update censys            # move to the version the registry pins
ot update censys --latest   # take the newest upstream release instead
ot remove censys            # remove it

Full reference: the otinstaller docs, Censys CLI on otinstaller.com, and the tool's own project page.

Pairs with

The official command-line client for Shodan, the search engine for internet-connected devices.
uncover sends one query to several host search engines, including Shodan, Censys and FOFA, and prints the matching addresses.
tlsx connects to a host over TLS and reads its certificate: the names it covers, the organisation, the issuer, the protocol version and common misconfigurations.

When open-source isn't enough

The Censys client needs an account and quota of your own. SearchIn runs host and DNS providers per lookup from one wallet.

Host intelligence
Domain intelligence

FAQ

Censys CLI with otinstaller, answered

How do I install Censys CLI on Windows, macOS, or Linux?

Install ot once with the one-line script on the otinstaller page, then run ot install censys. Ot puts it in a Python environment of its own under ~/.ot/uv, apart from your system Python, at version 2.3.0. ot itself needs no administrator rights, and ot doctor checks that every installed tool starts.

How do I run Censys CLI through ot?

With ot run censys followed by Censys CLI's own arguments, for example: ot run censys subdomains example.com. ot passes everything after the tool's name straight through and exits with the tool's exit code, so the project's own documentation applies unchanged. Add ~/.ot/bin to your PATH to call the tool by its own name.

Is Censys CLI part of ot scan?

No. ot scan takes a username, an email address, a domain, or a phone number and runs the tools the registry assigns to that kind of target. Run Censys CLI on its own with ot run censys.

Does Censys CLI need an API key or a login?

It reads CENSYS_API_ID, CENSYS_API_SECRET. Store each one with ot keys set NAME, which asks for the value without showing it; ot passes a key only to the tools that declare it. Needs a Censys account. Store CENSYS_API_ID and CENSYS_API_SECRET with ot keys set.

Does Censys CLI send traffic to the target?

The registry lists Censys CLI as passive: it does not probe the target's own systems. Options that do contact the target, where the tool has them, are named under "Before you run it".