Command-line tool for Censys! Quickly investigate suspicious hosts or answer complex questions about your infrastructure using Censys right from the command-line! https://www.censys.io
Project description
Censys Command Line Tool Examples
This script allows a user to query the Censys API from the command. The results from the query can be written to CSV, JSON, or simply to the screen.
Installation:
pip install censys-command-line
Or
pip install git+https://github.com/censys/censys-command-line
Usage:
usage: censys [-h] [--fields FIELDS [FIELDS ...]] --query_type
ipv4|certs|websites [--append {true,false}]
[--output json|csv|screen]
[--start_page START_PAGE]
[--max_pages MAX_PAGES]
[--censys_api_id XXXXXXXXXX]
[--censys_api_secret XXXXXXXXXX]
query
Search The Censys Data Set via the command line
positional arguments:
query
optional arguments:
-h, --help show this help message and exit
--fields FIELDS [FIELDS ...]
--query_type ipv4|certs|websites
--append {true,false}
Append the given list of fields to the default fields
--output json|csv|screen
--start_page START_PAGE
--max_pages MAX_PAGES
--censys_api_id XXXXXXXXXX
(optional) You must provide your Censys API ID here or
as an environmental variable CENSYS_API_ID
--censys_api_secret XXXXXXXXXX
(optional) You must provide your Censys API SECRET
here or as an environmental variable CENSYS_API_SECRET
Searching IPv4:
censys "ip: [ 134.54.0.0 TO 134.54.65.255 ]" --query_type ipv4 --fields ip protocols --output json
Searching Certificates
censys "parsed.issuer.organization: Let's Encrypt" --query_type=certs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for censys_command_line-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09298133bbffe9a49f28d3a2dd0b1d6d04cace8d5f073b0b4c1ee48b3dc33692 |
|
MD5 | fd58d0282abd2d357645167f5cfa88cf |
|
BLAKE2b-256 | adb95bdf4d04b4c8194f6d745e8bd7ddeb2ccc7742023fa37d7d8203359bf017 |
Close
Hashes for censys_command_line-1.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947aa697fd202a91d40ca5f67956795c2f53888a314413840335aeb396a69db0 |
|
MD5 | 16a35c3f73bab7172b2f889733b5c8c8 |
|
BLAKE2b-256 | 34d239462ac0064577ca1918fd03d104645fe22219d29e67ea24853512c03cee |