A Python script to search Censys.io
for hosts and services using API.
- Table of Contents
- 📝 Description
- 🔧 Technologies & Tools
- 📚 Requirements
- Installation
- Config
- Usage
- Todo
- Contributing
- License
Censei is a python script that uses the Censys.io
API to search for hosts and services.
Censys.io (www.censys.io) is a web-based search platform for assessing attack surface for Internet connected devices. The tool can be used not only to identify Internet connected assets and Internet of Things/Industrial Internet of Things (IoT/IIoT), but Internet-connected industrial control systems and platforms. Leveraging ingestion formats supported by WebUI, API, Raw Data, Google BigQuery, Censys.io provides maximum extensibility into any size cyber security ecosystem. Integrations with leading vulnerability tools and platforms, logging aggregators and other scanning systems allow Censys.io to be seamlessly integrated into an enterprise. CISA
- Python 3.9+
- pip3
Use the package manager pip to install the requirements. if not installed, install it using the following command.
sudo apt-get install python3-pip
It is advised to install the python requirements in a virtual environment, for that install the venv package.
python3 -m pip install venv
cd Censei
python3 -m venv env
source env/bin/activate
After that run the following commands:
python3 -m pip install -r requirements.txt
Before running the script, you need to add your Censys.io
API ID and API Secret in the .configx
file or set API_ID and API_SECRET as environment variables.
After Login to your censys.io account, you can get your API ID and API SECRET from Here.
# Config File
- API_ID: < API ID Here >
- API_SECRET: < API Secret Here >
1) python3 main.py
2) python3 main.py -q wordpress
usage: main.py [-h] [-q QUERY]
A Python script to search using Censys.io API.
options:
-h, --help show this help message and exit
-q QUERY, --query QUERY
The query to search for
- Add Certificate Search.
- Add more search options.
- Add more filters.
- Add output options.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
If you have any feedback, please reach out to us at akalucifr@protonmail.ch