Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
v1.1 : Workflow logic update
Browse files Browse the repository at this point in the history
Added an option for taking screenshot
  • Loading branch information
JoshuaMart committed Aug 19, 2019
1 parent 194c3f0 commit 0222ccc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@
- Check open ports with [Masscan](https://github.com/robertdavidgraham/masscan)
- Creation of an archive and upload with unique link on [Transfer.sh](https://transfer.sh)

![Workflow](http://image.noelshack.com/fichiers/2019/26/1/1561365532-autoreconworkflow.png)
![Workflow](http://image.noelshack.com/fichiers/2019/34/1/1566214999-autoreconworkflow.png)

## Installation
- Installation tested on Debian 9 / Kali 2019.1
- Recon tested on Debian 9 / Ubuntu 18.04 / 2019.1
- Installation & Recon tested on Debian 10 / Kali 2019.2

Requierement : [Golang](https://golang.org/doc/install)
```bash
Expand Down Expand Up @@ -46,16 +45,17 @@ nano /root/.config/subfinder/config.json
## Usage

```bash
./recon.sh -d domain.tld -a -u
./recon.sh -d domain.tld -a -m -s -u
```
![screen](http://image.noelshack.com/fichiers/2019/25/5/1561100782-autorecon.png)
![screen](http://image.noelshack.com/fichiers/2019/34/1/1566214999-autorecon.png)

Options :
```bash
-d | --domain (required) : Launch passive scan (Passive Amass, CRT.sh, Certspotter, Subfinder, Subjack, TkoSubs)
-d | --domain (required) : Launch passive scan (Passive Amass, CRT.sh, Certspotter, Subfinder, Subjack, TkoSubs, CORStest)
-a | --active (optional) : Launch active scans (Active Amass, Sublist3r, GoWitness, CORStest)
-m | --masscan (optional) : Launch masscan (Can be very long & very aggressive ...)
-s | --screen (optional) : Take screenshots with GoWitness (can be very long)
-u | --upload (optional) : Upload archive on Transfer.sh
```

**If your internet connection crash with Masscan options, change --rate options to 100 at line 102**
**If your internet connection crash with Masscan options, change --rate options to 100 at line 125**
11 changes: 9 additions & 2 deletions recon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ help() {
-d | --domain (required) : Launch passive scan (Passive Amass, CRT.sh, Certspotter, Subfinder, Subjack, TkoSubs, CORStest)
-a | --active (optional) : Launch active scans (Active Amass, Sublist3r, GoWitness, CORStest)
-m | --masscan (optional) : Launch masscan (Can be very long & very aggressive ...)
-s | --screen (optional) : Take screenshots with GoWitness (can be very long)
-u | --upload (optional) : Upload archive on Transfer.sh
"
}
Expand Down Expand Up @@ -101,13 +102,17 @@ scan() {
done
cat $ResultsPath/$domain/IP.txt | sort | uniq > $ResultsPath/$domain/IPs.txt
rm $ResultsPath/$domain/IP.txt
fi

## SCREENSHOT WITH GOWITNESS
if [ -v screen ] ## IF ACTIVE OPTION WAS PROVIDE
then
## SCREENSHOT WITH GOWITNESS
echo -e ">> Screenshot with \e[36mGoWitness\e[0m"
mkdir -p $ResultsPath/$domain/Screenshots/HTTP
mkdir -p $ResultsPath/$domain/Screenshots/HTTPS
$ToolsDIR/GoWitness file --source=$ResultsPath/$domain/urlsHTTP.txt --destination "$ResultsPath/$domain/Screenshots/HTTP" > /dev/null 2>&1
$ToolsDIR/GoWitness file --source=$ResultsPath/$domain/urlsHTTPS.txt --destination "$ResultsPath/$domain/Screenshots/HTTPS" > /dev/null 2>&1
fi

## CHECKING FOR CORS MISCONFIGURATION
echo -e ">> Checking CORS misconfiguration with \e[36mCORSTest\e[0m"
Expand All @@ -122,7 +127,6 @@ scan() {

## DIRECTORY CLEANING
rm $ResultsPath/$domain/urlsHTTP.txt $ResultsPath/$domain/urlsHTTPS.txt
fi

## DIRECTORY CLEANING
rm $ResultsPath/$domain/massdns.txt
Expand Down Expand Up @@ -166,6 +170,9 @@ while :; do
-m|--masscan)
masscan=true
;;
-s|--screen)
screen=true
;;
-u|--upload)
upload=true
;;
Expand Down

0 comments on commit 0222ccc

Please sign in to comment.