Skip to content

Commit c553637

Browse files
authored
Merge pull request #898 from six2dez/dev
Dev
2 parents ea1b7af + 6f87c58 commit c553637

File tree

8 files changed

+187
-110
lines changed

8 files changed

+187
-110
lines changed

Docker/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# syntax=docker/dockerfile:1.4
22

3+
# Specify a non-root user
4+
FROM kalilinux/kali-rolling:trunk AS base_reconftw
5+
USER nonrootuser
6+
7+
# Add a healthcheck instruction
8+
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 CMD curl --fail http://localhost/ || exit 1
9+
310
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
411

512
## You can change these variables
@@ -17,7 +24,7 @@ ARG GIT_REPOSITORY_RECONFTW="https://github.com/six2dez/reconftw"
1724
###> Do NOT change anything beyond this point <###
1825
##################################################
1926

20-
FROM kalilinux/kali-rolling:latest AS base
27+
FROM kalilinux/kali-rolling:trunk AS base
2128

2229
LABEL org.label-schema.name='reconftw'
2330
LABEL org.label-schema.description='A simple script for full recon'
@@ -120,7 +127,6 @@ rm -rf /root/.cache
120127
rm -rf /root/go
121128
eot
122129

123-
COPY amass_config.ini /root/.config/amass/config.ini
124130
COPY github_tokens.txt /root/Tools/.github_tokens
125131
COPY notify.conf /root/.config/notify/notify.conf
126132

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
171171

172172
# Tools config files
173173
#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define
174-
AMASS_CONFIG=~/.config/amass/config.ini
175174
GITHUB_TOKENS=${tools}/.github_tokens
176175
GITLAB_TOKENS=${tools}/.gitlab_tokens
177176
#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path
@@ -196,16 +195,13 @@ GITHUB_REPOS=true
196195
METADATA=true # Fetch metadata from indexed office documents
197196
EMAILS=true # Fetch emails from differents sites
198197
DOMAIN_INFO=true # whois info
199-
REVERSE_WHOIS=true # amass intel reverse whois info, takes some time
200198
IP_INFO=true # Reverse IP search, geolocation and whois
201199
API_LEAKS=true # Check for API leaks
202200
THIRD_PARTIES=true # Check for 3rd parties misconfigs
203201
SPOOF=true # Check spoofable domains
204202
METAFINDER_LIMIT=20 # Max 250
205203

206204
# Subdomains
207-
RUNAMASS=true
208-
RUNSUBFINDER=true
209205
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
210206
SUBPASSIVE=true # Passive subdomains search
211207
SUBCRT=true # crtsh search
@@ -332,8 +328,7 @@ NUCLEI_RATELIMIT=150
332328
FFUF_RATELIMIT=0
333329

334330
# Timeouts
335-
AMASS_INTEL_TIMEOUT=15 # Minutes
336-
AMASS_ENUM_TIMEOUT=180 # Minutes
331+
SUBFINDER_ENUM_TIMEOUT=180 # Minutes
337332
CMSSCAN_TIMEOUT=3600 # Seconds
338333
FFUF_MAXTIME=900 # Seconds
339334
HTTPX_TIMEOUT=10 # Seconds
@@ -477,7 +472,7 @@ reset='\033[0m'
477472

478473
## Osint
479474

480-
- Domain information ([whois](https://github.com/rfc1036/whois) and [amass](https://github.com/OWASP/Amass))
475+
- Domain information ([whois](https://github.com/rfc1036/whois))
481476
- Emails addresses and passwords leaks ([emailfinder](https://github.com/Josue87/EmailFinder) and [LeakSearch](https://github.com/JoelGMSec/LeakSearch))
482477
- Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder))
483478
- API leaks search ([porch-pirate](https://github.com/MandConsultingGroup/porch-pirate) and [SwaggerSpy](https://github.com/UndeadSec/SwaggerSpy))
@@ -489,7 +484,7 @@ reset='\033[0m'
489484

490485
## Subdomains
491486

492-
- Passive ([amass](https://github.com/OWASP/Amass), [subfinder](https://github.com/projectdiscovery/subfinder) and [github-subdomains](https://github.com/gwen001/github-subdomains))
487+
- Passive ([subfinder](https://github.com/projectdiscovery/subfinder) and [github-subdomains](https://github.com/gwen001/github-subdomains))
493488
- Certificate transparency ([crt](https://github.com/cemulus/crt))
494489
- NOERROR subdomain discovery ([dnsx](https://github.com/projectdiscovery/dnsx), more info [here](https://www.securesystems.de/blog/enhancing-subdomain-enumeration-ents-and-noerror/))
495490
- Bruteforce ([puredns](https://github.com/d3mondev/puredns))

Terraform/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ As well as both `access_key` and `secret_key` (<https://aws.amazon.com/premiumsu
1717
Note: **this will charge costs (unless you are in the Free Tier)**
1818

1919
1. Move to the Terraform folder (optional but recommended): `cd terraform`
20-
- Put your own Amass config file and reconFTW config file on the files/ folder
20+
- Put your own Subfinder config file and reconFTW config file on the files/ folder
2121
1. Create a key pair to be used, e.g: `ssh-keygen -f terraform-keys -t ecdsa -b 521`
2222
1. Run `terraform init`
2323
1. Run `terraform apply`

Terraform/files/reconftw.cfg

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
2525

2626
# Tools config files
2727
#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define
28-
AMASS_CONFIG=~/.config/amass/config.ini
2928
GITHUB_TOKENS=${tools}/.github_tokens
3029
GITLAB_TOKENS=${tools}/.gitlab_tokens
3130
#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path
@@ -50,14 +49,11 @@ GITHUB_REPOS=true
5049
METADATA=true # Fetch metadata from indexed office documents
5150
EMAILS=true # Fetch emails from differents sites
5251
DOMAIN_INFO=true # whois info
53-
REVERSE_WHOIS=true # amass intel reverse whois info, takes some time
5452
IP_INFO=true # Reverse IP search, geolocation and whois
5553
API_LEAKS=true # Check for postman leaks
5654
METAFINDER_LIMIT=20 # Max 250
5755

5856
# Subdomains
59-
RUNAMASS=true
60-
RUNSUBFINDER=true
6157
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
6258
SUBPASSIVE=true # Passive subdomains search
6359
SUBCRT=true # crtsh search
@@ -184,8 +180,7 @@ NUCLEI_RATELIMIT=150
184180
FFUF_RATELIMIT=0
185181

186182
# Timeouts
187-
AMASS_INTEL_TIMEOUT=15 # Minutes
188-
AMASS_ENUM_TIMEOUT=180 # Minutes
183+
SUBFINDER_ENUM_TIMEOUT=180 # Minutes
189184
CMSSCAN_TIMEOUT=3600 # Seconds
190185
FFUF_MAXTIME=900 # Seconds
191186
HTTPX_TIMEOUT=10 # Seconds

Terraform/reconFTW.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@
3131
update: yes
3232
- name: Install ReconFTW
3333
command: chdir=/opt/reconftw/ ./install.sh
34-
- name: Create amass folder
35-
shell: mkdir -p /home/admin/.config/amass/
36-
- name: Copy Config File
37-
synchronize:
38-
src: files/config.ini
39-
dest: /home/admin/.config/amass/config.ini
4034
- name: Copy reconftw.cfg File
4135
synchronize:
4236
src: files/reconftw.cfg

install.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ declare -A gotools
3434
gotools["gf"]="go install -v github.com/tomnomnom/gf@latest"
3535
gotools["brutespray"]="go install -v github.com/x90skysn3k/brutespray@latest"
3636
gotools["qsreplace"]="go install -v github.com/tomnomnom/qsreplace@latest"
37-
gotools["amass"]="go install -v github.com/owasp-amass/amass/v3/...@master"
3837
gotools["ffuf"]="go install -v github.com/ffuf/ffuf/v2@latest"
3938
gotools["github-subdomains"]="go install -v github.com/gwen001/github-subdomains@latest"
4039
gotools["gitlab-subdomains"]="go install -v github.com/gwen001/gitlab-subdomains@latest"
@@ -94,7 +93,7 @@ repos["Oralyzer"]="r0075h3ll/Oralyzer"
9493
repos["testssl"]="drwetter/testssl.sh"
9594
repos["commix"]="commixproject/commix"
9695
repos["JSA"]="w9w/JSA"
97-
repos["cloud_enum"]="initstring/cloud_enum"
96+
repos["CloudHunter"]="belane/CloudHunter"
9897
repos["ultimate-nmap-parser"]="shifty0g/ultimate-nmap-parser"
9998
repos["pydictor"]="LandGrey/pydictor"
10099
repos["gitdorks_go"]="damit5/gitdorks_go"
@@ -430,7 +429,6 @@ printf "${bblue} Running: Installing requirements ${reset}\n\n"
430429
mkdir -p ~/.gf
431430
mkdir -p $tools
432431
mkdir -p ~/.config/notify/
433-
mkdir -p ~/.config/amass/
434432
mkdir -p ~/.config/nuclei/
435433
touch "${dir}"/.github_tokens
436434
touch "${dir}"/.gitlab_tokens
@@ -442,7 +440,6 @@ install_tools
442440

443441
printf "${bblue}\n Running: Downloading required files ${reset}\n\n"
444442
## Downloads
445-
[[ ! -f ~/.config/amass/config.ini ]] && wget -q -O ~/.config/amass/config.ini https://gist.githubusercontent.com/six2dez/b376488a1317242bfa3851e95875cb3b/raw
446443
[[ ! -f ~/.config/notify/provider-config.yaml ]] && wget -q -O ~/.config/notify/provider-config.yaml https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw
447444
#wget -q -O - https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json > ~/.gf/potential.json - Removed
448445
wget -q -O - https://raw.githubusercontent.com/m4ll0k/Bug-Bounty-Toolz/master/getjswords.py >${tools}/getjswords.py
@@ -525,6 +522,6 @@ eval strip -s "$HOME"/go/bin/* $DEBUG_STD
525522
eval $SUDO cp "$HOME"/go/bin/* /usr/local/bin/ $DEBUG_STD
526523

527524

528-
printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/provider-config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - GitLab (~/Tools/.gitlab_tokens)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg or env var) \n - Waymore ( ~/.config/waymore/config.yml) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg or env var) \n - notify (~/.config/notify/provider-config.yaml) \n - WHOISXML API (WHOISXML_API in reconftw.cfg or env var)\n\n${reset}"
525+
printf "${yellow} Remember set your api keys:\n - subfinder (~/.config/subfinder/provider-config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - GitLab (~/Tools/.gitlab_tokens)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg or env var) \n - Waymore ( ~/.config/waymore/config.yml) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg or env var) \n - notify (~/.config/notify/provider-config.yaml) \n - WHOISXML API (WHOISXML_API in reconftw.cfg or env var)\n\n${reset}"
529526
printf "${bgreen} Finished!${reset}\n\n"
530527
printf "\n\n${bgreen}#######################################################################${reset}\n"

reconftw.cfg

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
2525

2626
# Tools config files
2727
#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define
28-
AMASS_CONFIG=~/.config/amass/config.ini
2928
GITHUB_TOKENS=${tools}/.github_tokens
3029
GITLAB_TOKENS=${tools}/.gitlab_tokens
3130
#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path
@@ -50,16 +49,13 @@ GITHUB_REPOS=true
5049
METADATA=true # Fetch metadata from indexed office documents
5150
EMAILS=true # Fetch emails from differents sites
5251
DOMAIN_INFO=true # whois info
53-
REVERSE_WHOIS=true # amass intel reverse whois info, takes some time
5452
IP_INFO=true # Reverse IP search, geolocation and whois
5553
API_LEAKS=true # Check for API leaks
5654
THIRD_PARTIES=true # Check for 3rd parties misconfigs
5755
SPOOF=true # Check spoofable domains
5856
METAFINDER_LIMIT=20 # Max 250
5957

6058
# Subdomains
61-
RUNAMASS=true
62-
RUNSUBFINDER=true
6359
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
6460
SUBPASSIVE=true # Passive subdomains search
6561
SUBCRT=true # crtsh search
@@ -119,6 +115,7 @@ ROBOTSWORDLIST=true # Check historic disallow entries on waybackMachine
119115
PASSWORD_DICT=true # Generate password dictionary
120116
PASSWORD_MIN_LENGTH=5 # Min password length
121117
PASSWORD_MAX_LENGTH=14 # Max password length
118+
CLOUDHUNTER_PERMUTATION=NORMAL # Options: DEEP (very slow), NORMAL (slow), NONE
122119

123120
# Vulns
124121
VULNS_GENERAL=false # Enable or disable the vulnerability module (very intrusive and slow)
@@ -186,8 +183,7 @@ NUCLEI_RATELIMIT=150
186183
FFUF_RATELIMIT=0
187184

188185
# Timeouts
189-
AMASS_INTEL_TIMEOUT=15 # Minutes
190-
AMASS_ENUM_TIMEOUT=180 # Minutes
186+
SUBFINDER_ENUM_TIMEOUT=180 # Minutes
191187
CMSSCAN_TIMEOUT=3600 # Seconds
192188
FFUF_MAXTIME=900 # Seconds
193189
HTTPX_TIMEOUT=10 # Seconds

0 commit comments

Comments
 (0)