You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install censys with pip
pip install censys
# Configure your credentials
censys config
# Get page of http services
censys search "service.service_name: HTTP"| jq '.[] | {ip: .ip}'# Get ips of Telsa Powerpacks
censys search 'services.http.response.html_title: "Tesla Energy Powerpack"'| jq -c '.[] | {ip: .ip}'# View ip and save to file
censys view 41.215.79.210 -f json -o tesla.json
# Parse out port and protocol
cat tesla.json | jq '[.services[] | {port: .port, protocol: .service_name}]'# Parse out single field
cat tesla.json | jq '.operating_system'# Count services
cat tesla.json | jq '{service_count: .services | length}'# 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}'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In this example we use
jq
for more info please checkout the jq docs.Beta Was this translation helpful? Give feedback.
All reactions