Skip to content

Commit

Permalink
Update documentation and requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
manmolecular committed Mar 27, 2019
1 parent 5280a52 commit e6829cb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
39 changes: 34 additions & 5 deletions README.md
Expand Up @@ -11,7 +11,7 @@ The Grinder framework was created to automatically enumerate and fingerprint dif
## Setup and configure environment
1. Clone the repository
```
https://github.com/sdnewhop/grinder
git clone https://github.com/sdnewhop/grinder
```
2. Create virtual environment
```
Expand All @@ -26,7 +26,7 @@ which pip
```
4. Install project requirements in virtual environment
```
pip install -r requirements.txt
pip3 install -r requirements.txt
```
5. Run the script
```
Expand All @@ -46,15 +46,44 @@ export CENSYS_API_SECRET=YOUR_CENSYS_API_SECRET_HERE
```
deactivate
```
## Usage
```
usage: grinder.py [-h] [-r] [-u] [-q QUERIES_FILE] [-sk SHODAN_KEY] [-cu]
[-cp] [-ci CENSYS_ID] [-cs CENSYS_SECRET] [-cm CENSYS_MAX]
[-nm]
The Grinder framework was created to automatically enumerate and fingerprint
different hosts on the Internet using different back-end systems
optional arguments:
-h, --help show this help message and exit
-r, --run Run scanning
-u, --update-markers Update map markers
-q QUERIES_FILE, --queries-file QUERIES_FILE
JSON File with Shodan queries
-sk SHODAN_KEY, --shodan-key SHODAN_KEY
Shodan API key
-cu, --count-unique Count unique entities
-cp, --create-plots Create graphic plots
-ci CENSYS_ID, --censys-id CENSYS_ID
Censys API ID key
-cs CENSYS_SECRET, --censys-secret CENSYS_SECRET
Censys API SECRET key
-cm CENSYS_MAX, --censys-max CENSYS_MAX
Censys default maximum results quantity
-nm, --nmap-scan Initiate Nmap scanning
```

## Tests
You can run tests from root grinder directory with command
```
pytest
```
## Run
Basic usage
## Examples
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 -r
./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
```
For more options and help use
```
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Expand Up @@ -15,6 +15,7 @@ matplotlib==3.0.3
more-itertools==6.0.0
netaddr==0.7.19
numpy==1.16.2
pkg-resources==0.0.0
pluggy==0.9.0
pprintpp==0.4.0
py==1.8.0
Expand All @@ -26,6 +27,7 @@ pytest==4.3.1
pytest-cov==2.6.1
pytest-mock==1.10.1
python-dateutil==2.8.0
python-nmap==0.6.1
repoze.lru==0.7
requests==2.21.0
shodan==1.11.1
Expand Down

0 comments on commit e6829cb

Please sign in to comment.