CLI Usage

Before continuing please ensure you have successfully configured your credentials.

The configuration file by default is writen to ~/.config/censys/censys.cfg, but you can change this by setting the CENSYS_CONFIG_PATH environment variable.

view

Below we show an example of Viewing a host from the CLI.

You can save results to a file using the -o argument.

We can then parse this json with something like jq.

subdomains

Below we show an example of subdomain enumeration from the CLI.

You can limit the number of results by setting the --max-records flag.

We can then output the results in JSON format using the --json flag.

account

Below we show an example of viewing your account information from the CLI.

You can also request the JSON version of your account information.

asm

add-seeds

Below we show an example of adding seeds from the CLI.

You can also add seeds from STDIN using the -i - argument. In the example below we are adding IPs from a Censys Search.

You can also add seeds from a nmap XML file using the --nmap-xml argument. In the example below we are adding IPs from a nmap scan on censys.io.