macOS ◆ xterm-256color ◆ zsh 5646 views

Commands

# Install censys with pip
$ pip install censys

# Configure your credentials
$ censys config

# Search from the CLI
$ censys search 'services.http.response.html_title: "Tesla Energy Powerpack"' --index-type hosts | jq -c '.[] | {ip: .ip}'

# View an IP on a certain date
$ censys view 41.215.79.210 --at-time 2021-05-29 | jq '{ip: .ip, observed: .last_updated_at}'

# You can save results to a file using the -f arg
$ censys view 41.215.79.210 -f json -o tesla.json

# We can then parse this json with something like jq
$ cat tesla.json | jq '[.services[] | {port: .port, protocol: .service_name}][:3]'

Links