grinder: automatically discover and enumerate hosts from different back-end systems
grinder
Internet-connected Devices Census Python Framework
The Grinder framework was created to automatically enumerate and fingerprint different hosts on the Internet using different back-end systems: search engines, such as Shodan or Censys, for discovering hosts and NMAP engine for fingerprinting and specific checks. The Grinder framework can be used in many different areas of researches, as a connected Python module in your own project or as an independent ready-to-use from the box tool.
Install
git clone https://github.com/sdnewhop/grinder cd grinder python3 -m venv grindervenv source grindervenv/bin/activate which python which pip pip3 install -r requirements.txt
Set your Shodan and Censys keys via a command line argument
./grinder.py -sk YOUR_SHODAN_KEY -ci YOUR_CENSYS_ID -cs YOUR_CENSYS_SECRET
or via an environment variable
export SHODAN_API_KEY=YOUR_SHODAN_API_KEY_HERE
export CENSYS_API_ID=YOUR_CENSYS_API_ID_HERE
export CENSYS_API_SECRET=YOUR_CENSYS_API_SECRET_HERE
Deactivate virtual environment after use and restore default python interpreter
deactivate
Use
Example
Run an enumeration with Nmap scanning, where maximum Censys results is 555 hosts per query, update map markers, count unique entities and create plots
./grinder.py -sk YOUR_SHODAN_API_KEY_HERE -ci YOUR_CENSYS_ID -cs YOUR_CENSYS_SECRET -u -q queries.json -cu -cp -cm 555 -nm -r
Copyright (C) 2019
Source: https://github.com/sdnewhop/