reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
amass removed
six2dezd8cd12091a49
diff --git a/Docker/Dockerfile b/Docker/Dockerfileindex d89def3..1fe0c0c 100644--- a/Docker/Dockerfile+++ b/Docker/Dockerfile@@ -120,7 +120,6 @@ rm -rf /root/.cacherm -rf /root/goeot-COPY amass_config.ini /root/.config/amass/config.iniCOPY github_tokens.txt /root/Tools/.github_tokensCOPY notify.conf /root/.config/notify/notify.confdiff --git a/README.md b/README.mdindex 5b3b184..1a2fa07 100644--- a/README.md+++ b/README.md@@ -171,7 +171,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH# Tools config files#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define-AMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokensGITLAB_TOKENS=${tools}/.gitlab_tokens#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path@@ -196,7 +195,6 @@ GITHUB_REPOS=trueMETADATA=true # Fetch metadata from indexed office documentsEMAILS=true # Fetch emails from differents sitesDOMAIN_INFO=true # whois info-REVERSE_WHOIS=true # amass intel reverse whois info, takes some timeIP_INFO=true # Reverse IP search, geolocation and whoisAPI_LEAKS=true # Check for API leaksTHIRD_PARTIES=true # Check for 3rd parties misconfigs@@ -204,8 +202,6 @@ SPOOF=true # Check spoofable domainsMETAFINDER_LIMIT=20 # Max 250# Subdomains-RUNAMASS=true-RUNSUBFINDER=trueSUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains moduleSUBPASSIVE=true # Passive subdomains searchSUBCRT=true # crtsh search@@ -332,8 +328,7 @@ NUCLEI_RATELIMIT=150FFUF_RATELIMIT=0# Timeouts-AMASS_INTEL_TIMEOUT=15 # Minutes-AMASS_ENUM_TIMEOUT=180 # Minutes+SUBFINDER_ENUM_TIMEOUT=180 # MinutesCMSSCAN_TIMEOUT=3600 # SecondsFFUF_MAXTIME=900 # SecondsHTTPX_TIMEOUT=10 # Seconds@@ -477,7 +472,7 @@ reset='\033[0m'## Osint-- Domain information ([whois](https://github.com/rfc1036/whois) and [amass](https://github.com/OWASP/Amass))+- Domain information ([whois](https://github.com/rfc1036/whois))- Emails addresses and passwords leaks ([emailfinder](https://github.com/Josue87/EmailFinder) and [LeakSearch](https://github.com/JoelGMSec/LeakSearch))- Metadata finder ([MetaFinder](https://github.com/Josue87/MetaFinder))- 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'## Subdomains-- Passive ([amass](https://github.com/OWASP/Amass), [subfinder](https://github.com/projectdiscovery/subfinder) and [github-subdomains](https://github.com/gwen001/github-subdomains))+- Passive ([subfinder](https://github.com/projectdiscovery/subfinder) and [github-subdomains](https://github.com/gwen001/github-subdomains))- Certificate transparency ([crt](https://github.com/cemulus/crt))- NOERROR subdomain discovery ([dnsx](https://github.com/projectdiscovery/dnsx), more info [here](https://www.securesystems.de/blog/enhancing-subdomain-enumeration-ents-and-noerror/))- Bruteforce ([puredns](https://github.com/d3mondev/puredns))diff --git a/Terraform/README.md b/Terraform/README.mdindex 538cee3..8fc3fb4 100644--- a/Terraform/README.md+++ b/Terraform/README.md@@ -17,7 +17,7 @@ As well as both `access_key` and `secret_key` (<https://aws.amazon.com/premiumsuNote: **this will charge costs (unless you are in the Free Tier)**1. Move to the Terraform folder (optional but recommended): `cd terraform`- - Put your own Amass config file and reconFTW config file on the files/ folder+ - Put your own Subfinder config file and reconFTW config file on the files/ folder1. Create a key pair to be used, e.g: `ssh-keygen -f terraform-keys -t ecdsa -b 521`1. Run `terraform init`1. Run `terraform apply`diff --git a/Terraform/files/reconftw.cfg b/Terraform/files/reconftw.cfgindex d0d8781..d3d4ebd 100644--- a/Terraform/files/reconftw.cfg+++ b/Terraform/files/reconftw.cfg@@ -25,7 +25,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH# Tools config files#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define-AMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokensGITLAB_TOKENS=${tools}/.gitlab_tokens#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=trueMETADATA=true # Fetch metadata from indexed office documentsEMAILS=true # Fetch emails from differents sitesDOMAIN_INFO=true # whois info-REVERSE_WHOIS=true # amass intel reverse whois info, takes some timeIP_INFO=true # Reverse IP search, geolocation and whoisAPI_LEAKS=true # Check for postman leaksMETAFINDER_LIMIT=20 # Max 250# Subdomains-RUNAMASS=true-RUNSUBFINDER=trueSUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains moduleSUBPASSIVE=true # Passive subdomains searchSUBCRT=true # crtsh search@@ -184,8 +180,7 @@ NUCLEI_RATELIMIT=150FFUF_RATELIMIT=0# Timeouts-AMASS_INTEL_TIMEOUT=15 # Minutes-AMASS_ENUM_TIMEOUT=180 # Minutes+SUBFINDER_ENUM_TIMEOUT=180 # MinutesCMSSCAN_TIMEOUT=3600 # SecondsFFUF_MAXTIME=900 # SecondsHTTPX_TIMEOUT=10 # Secondsdiff --git a/Terraform/reconFTW.yml b/Terraform/reconFTW.ymlindex 4ad53f8..6c951b0 100644--- a/Terraform/reconFTW.yml+++ b/Terraform/reconFTW.yml@@ -31,12 +31,6 @@update: yes- name: Install ReconFTWcommand: chdir=/opt/reconftw/ ./install.sh- - name: Create amass folder- shell: mkdir -p /home/admin/.config/amass/- - name: Copy Config File- synchronize:- src: files/config.ini- dest: /home/admin/.config/amass/config.ini- name: Copy reconftw.cfg Filesynchronize:src: files/reconftw.cfgdiff --git a/install.sh b/install.shindex f0006d4..ef40436 100755--- a/install.sh+++ b/install.sh@@ -34,7 +34,6 @@ declare -A gotoolsgotools["gf"]="go install -v github.com/tomnomnom/gf@latest"gotools["brutespray"]="go install -v github.com/x90skysn3k/brutespray@latest"gotools["qsreplace"]="go install -v github.com/tomnomnom/qsreplace@latest"-gotools["amass"]="go install -v github.com/owasp-amass/amass/v3/...@master"gotools["ffuf"]="go install -v github.com/ffuf/ffuf/v2@latest"gotools["github-subdomains"]="go install -v github.com/gwen001/github-subdomains@latest"gotools["gitlab-subdomains"]="go install -v github.com/gwen001/gitlab-subdomains@latest"@@ -430,7 +429,6 @@ printf "${bblue} Running: Installing requirements ${reset}\n\n"mkdir -p ~/.gfmkdir -p $toolsmkdir -p ~/.config/notify/-mkdir -p ~/.config/amass/mkdir -p ~/.config/nuclei/touch "${dir}"/.github_tokenstouch "${dir}"/.gitlab_tokens@@ -442,7 +440,6 @@ install_toolsprintf "${bblue}\n Running: Downloading required files ${reset}\n\n"## Downloads-[[ ! -f ~/.config/amass/config.ini ]] && wget -q -O ~/.config/amass/config.ini https://gist.githubusercontent.com/six2dez/b376488a1317242bfa3851e95875cb3b/raw[[ ! -f ~/.config/notify/provider-config.yaml ]] && wget -q -O ~/.config/notify/provider-config.yaml https://gist.githubusercontent.com/six2dez/23a996bca189a11e88251367e6583053/raw#wget -q -O - https://raw.githubusercontent.com/devanshbatham/ParamSpider/master/gf_profiles/potential.json > ~/.gf/potential.json - Removedwget -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_STDeval $SUDO cp "$HOME"/go/bin/* /usr/local/bin/ $DEBUG_STD-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}"+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}"printf "${bgreen} Finished!${reset}\n\n"printf "\n\n${bgreen}#######################################################################${reset}\n"diff --git a/reconftw.cfg b/reconftw.cfgindex aeb94b6..daeb3c5 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -25,7 +25,6 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH# Tools config files#NOTIFY_CONFIG=~/.config/notify/provider-config.yaml # No need to define-AMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokensGITLAB_TOKENS=${tools}/.gitlab_tokens#CUSTOM_CONFIG=custom_config_path.txt # In case you use a custom config file, uncomment this line and set your files path@@ -50,7 +49,6 @@ GITHUB_REPOS=trueMETADATA=true # Fetch metadata from indexed office documentsEMAILS=true # Fetch emails from differents sitesDOMAIN_INFO=true # whois info-REVERSE_WHOIS=true # amass intel reverse whois info, takes some timeIP_INFO=true # Reverse IP search, geolocation and whoisAPI_LEAKS=true # Check for API leaksTHIRD_PARTIES=true # Check for 3rd parties misconfigs@@ -58,8 +56,6 @@ SPOOF=true # Check spoofable domainsMETAFINDER_LIMIT=20 # Max 250# Subdomains-RUNAMASS=true-RUNSUBFINDER=trueSUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains moduleSUBPASSIVE=true # Passive subdomains searchSUBCRT=true # crtsh search@@ -119,7 +115,7 @@ ROBOTSWORDLIST=true # Check historic disallow entries on waybackMachinePASSWORD_DICT=true # Generate password dictionaryPASSWORD_MIN_LENGTH=5 # Min password lengthPASSWORD_MAX_LENGTH=14 # Max password length-CLOUDHUNTER_PERMUTATION=DEEP # Options: DEEP (very slow), NORMAL (slow), NONE+CLOUDHUNTER_PERMUTATION=NORMAL # Options: DEEP (very slow), NORMAL (slow), NONE# VulnsVULNS_GENERAL=false # Enable or disable the vulnerability module (very intrusive and slow)@@ -187,8 +183,7 @@ NUCLEI_RATELIMIT=150FFUF_RATELIMIT=0# Timeouts-AMASS_INTEL_TIMEOUT=15 # Minutes-AMASS_ENUM_TIMEOUT=180 # Minutes+SUBFINDER_ENUM_TIMEOUT=180 # MinutesCMSSCAN_TIMEOUT=3600 # SecondsFFUF_MAXTIME=900 # SecondsHTTPX_TIMEOUT=10 # Secondsdiff --git a/reconftw.sh b/reconftw.shindex dc79a00..f65c322 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -233,10 +233,6 @@ function tools_installed() {printf "${bred} [*] whois [NO]${reset}\n"allinstalled=false}- command -v amass &>/dev/null || {- printf "${bred} [*] Amass [NO]${reset}\n"- allinstalled=false- }command -v dnsx &>/dev/null || {printf "${bred} [*] dnsx [NO]${reset}\n"allinstalled=false@@ -647,9 +643,6 @@ function domain_info() {if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $DOMAIN_INFO == true ]] && [[ $OSINT == true ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9] ]]; thenstart_func ${FUNCNAME[0]} "Searching domain info (whois, registrant name/email domains)"whois -H $domain >osint/domain_info_general.txt || { echo "whois command failed"; }- if [[ $DEEP == true ]] && [[ $REVERSE_WHOIS == true ]]; then- timeout -k 1m ${AMASS_INTEL_TIMEOUT}m amass intel -d ${domain} -whois -timeout $AMASS_INTEL_TIMEOUT -o osint/domain_info_reverse_whois.txt 2>>"$LOGFILE" >>/dev/null || ( true && echo "Amass timeout reached")- ficurl -s "https://aadinternals.azurewebsites.net/api/tenantinfo?domainName=${domain}" -H "Origin: https://aadinternals.com" | jq -r .domains[].name >osint/azure_tenant_domains.txt@@ -830,12 +823,7 @@ function sub_passive() {mkdir -p .tmpif { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SUBPASSIVE == true ]]; thenstart_subfunc ${FUNCNAME[0]} "Running : Passive Subdomain Enumeration"-- if [[ $RUNAMASS == true ]]; then- timeout -k 1m ${AMASS_ENUM_TIMEOUT} amass enum -passive -d $domain -config $AMASS_CONFIG -timeout $AMASS_ENUM_TIMEOUT -json .tmp/amass_json.json 2>>"$LOGFILE" >>/dev/null || ( true && echo "Amass enum passive timeout reached")- fi- [ -s ".tmp/amass_json.json" ] && cat .tmp/amass_json.json | jq -r '.name' | anew -q .tmp/amass_psub.txt- [[ $RUNSUBFINDER == true ]] && subfinder -all -d "$domain" -silent -o .tmp/subfinder_psub.txt 2>>"$LOGFILE" >/dev/null+ subfinder -all -d "$domain" -max-time ${SUBFINDER_ENUM_TIMEOUT} -silent -o .tmp/subfinder_psub.txt 2>>"$LOGFILE" >/dev/nullif [[ -s ${GITHUB_TOKENS} ]]; thenif [[ $DEEP == true ]]; then@@ -848,7 +836,6 @@ function sub_passive() {gitlab-subdomains -d "$domain" -t "$GITLAB_TOKENS" 2>>"$LOGFILE" | tee .tmp/gitlab_subdomains_psub.txt >/dev/nullfiif [[ $INSCOPE == true ]]; then- check_inscope .tmp/amass_psub.txt 2>>"$LOGFILE" >/dev/nullcheck_inscope .tmp/subfinder_psub.txt 2>>"$LOGFILE" >/dev/nullcheck_inscope .tmp/github_subdomains_psub.txt 2>>"$LOGFILE" >/dev/nullcheck_inscope .tmp/gitlab_subdomains_psub.txt 2>>"$LOGFILE" >/dev/null@@ -1208,13 +1195,13 @@ function sub_recursive_passive() {[ -s "subdomains/subdomains.txt" ] && dsieve -if subdomains/subdomains.txt -f 3 -top $DEEP_RECURSIVE_PASSIVE >.tmp/subdomains_recurs_top.txtif [[ $AXIOM != true ]]; thenresolvers_update_quick_local- [ -s ".tmp/subdomains_recurs_top.txt" ] && timeout -k 1m ${AMASS_ENUM_TIMEOUT}m amass enum -passive -df .tmp/subdomains_recurs_top.txt -nf subdomains/subdomains.txt -config $AMASS_CONFIG -timeout $AMASS_ENUM_TIMEOUT -o .tmp/passive_recursive_tmp.txt 2>>"$LOGFILE" || ( true && echo "Amass recursive timeout reached")+ [ -s ".tmp/subdomains_recurs_top.txt" ] && subfinder -all -dL .tmp/subdomains_recurs_top.txt -max-time ${SUBFINDER_ENUM_TIMEOUT} -silent -o .tmp/passive_recursive_tmp.txt 2>>"$LOGFILE" || ( true && echo "Subfinder recursive timeout reached")[ -s ".tmp/passive_recursive_tmp.txt" ] && cat .tmp/passive_recursive_tmp.txt | anew -q .tmp/passive_recursive.txt[ -s ".tmp/passive_recursive.txt" ] && puredns resolve .tmp/passive_recursive.txt -w .tmp/passive_recurs_tmp.txt -r $resolvers --resolvers-trusted $resolvers_trusted -l $PUREDNS_PUBLIC_LIMIT --rate-limit-trusted $PUREDNS_TRUSTED_LIMIT --wildcard-tests $PUREDNS_WILDCARDTEST_LIMIT --wildcard-batch $PUREDNS_WILDCARDBATCH_LIMIT 2>>"$LOGFILE" >/dev/nullelseresolvers_update_quick_axiom- [ -s ".tmp/subdomains_recurs_top.txt" ] && axiom-scan .tmp/subdomains_recurs_top.txt -m amass -passive -o .tmp/amass_prec.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/null- [ -s ".tmp/amass_prec.txt" ] && cat .tmp/amass_prec.txt | anew -q .tmp/passive_recursive.txt+ [ -s ".tmp/subdomains_recurs_top.txt" ] && axiom-scan .tmp/subdomains_recurs_top.txt -m subfinder -all -o .tmp/subfinder_prec.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/null+ [ -s ".tmp/subfinder_prec.txt" ] && cat .tmp/subfinder_prec.txt | anew -q .tmp/passive_recursive.txt[ -s ".tmp/passive_recursive.txt" ] && axiom-scan .tmp/passive_recursive.txt -m puredns-resolve -r /home/op/lists/resolvers.txt --resolvers-trusted /home/op/lists/resolvers_trusted.txt --wildcard-tests $PUREDNS_WILDCARDTEST_LIMIT --wildcard-batch $PUREDNS_WILDCARDBATCH_LIMIT -o .tmp/passive_recurs_tmp.txt $AXIOM_EXTRA_ARGS 2>>"$LOGFILE" >/dev/nullfi[[ $INSCOPE == true ]] && check_inscope .tmp/passive_recurs_tmp.txt 2>>"$LOGFILE" >/dev/null