/auto_passive_recon

Passive Reconnaissance integrating several tools.

Primary LanguagePython

Passive Reconnaissance

An attempt to gain information about targeted company without actively engaging. In active reconnaissance, the attacker engages with the target system directly.

About

Passive recon script integrating several tools:

** Note: Heroku has a request timeout of 30 seconds, requiring celery workers to run scripts asyncronously. However, these do not permit threading. Sublist3r depends on multithreading, so in order to get the most accurate results, run this in command line or on localhost. The hosted heroku app used a different subdomain enumeration tool which provides less results.

Running Passive Recon

Locally

Setup

export SHODAN_API_KEY=xxx # find in shodan portal
export HUNTER_API_KEY=xxx # make a free account on hunter.io

brew install chromedriver
brew install Caskroom/versions/google-chrome-canary

pip install -r requirements.txt

Interactively Run in command line:

cd scripts
python recon.py

Launch Flask app:

python app.py

Visit 127.0.0.1:5000/

Deploy your own on Heroku

Setup

heroku login
heroku create app-name-here

heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-chromedriver
heroku buildpacks:add --index 2 https://github.com/heroku/heroku-buildpack-google-chrome

heroku addons:create heroku-redis:hobby-dev --maxmemory_policy allkeys-lru --app app-name-here

heroku addons:create mailgun:starter
heroku addons:add heroku-postgresql:hobby-dev

git add .
git commit -m "fun message here"
git push heroku master

heroku ps:scale web=1
heroku ps:scale worker=1

heroku run python
>>> from app import db
>>> db.create_all()
>>> exit()

Visit the heroku portal, navigate to your application, and click on Mailgun to configure the addon. You will have to manually allow the requested email recipient. On the mailgun dashboard, this is found under Sending -> Overview, on the right side.

Alternative Options

If you prefer your own redis url, skip the addon step, and configure the REDIS_URL config variable.

heroku config:set REDIS_URL=xxx