Home

Awesome

AutoRecon

BannerMaintenance made-with-bash MIT license

CHECK RENGINE FOR A MORE INTERESTING AND ACTIVELY MAINTENED PROJECT

Features

Workflow

Installation

Run installer :

./install.sh

If wanted (recommended), configure Amass with the desired API keys by creating a config.ini file.

Create the file .tokens in /root/Tools/Github-Subdomains/ with one or more github token.

Usage

./recon.sh -d domain.tld -r -s -c /root/Tools/Amass/config.ini

Options :

-d | --domain (required) : Domain in domain.tld format
-r | --recon (optional) : Search subdomains for the specified domain
-s | --scan (optional) : Scan the specified domain
-c | --amassconfig (optional) : Provide Amass configuration files for better results
-rp | --resultspath (optional) : Defines the output folder

RunningScript

Domain monitoring

The advantage of using amass with the "-dir" option is that it also allows monitoring with a bash script. For example, you can create a cron task that executes the following content at regular intervals:

#!/bin/bash
DOMAIN=your-domain.tld

/root/AutoRecon.sh -d $DOMAIN -c /root/Tools/Amass/config.ini

MSG=$(amass track -d $DOMAIN -dir /root/Recon/$DOMAIN/Amass/ | grep 'Found:')
PAYLOAD="payload={\"text\": \"$MSG\"}"
HOOK=https://hooks.slack.com/services/XXXX/XXXX/XXXX

if [ ! -z "$var" ]
then
  curl -X POST --data-urlencode "$PAYLOAD"  "$HOOK"
fi

SlackAlert