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
Small fixes and H8Mail added
six2dez6c81f1457f70
diff --git a/install.sh b/install.shindex 3245e97..ce15a58 100755--- a/install.sh+++ b/install.sh@@ -213,11 +213,12 @@ eval wget -nc -O ~/.config/notify/notify.conf https://gist.githubusercontent.comeval wget -O ${GOPATH}/bin/gowitness https://github.com/sensepost/gowitness/releases/download/2.3.3/gowitness-2.3.3-linux-amd64 $DEBUG_STDeval chmod 755 ${GOPATH}/bin/gowitness $DEBUG_STDsed -i 's/^miscellaneous/#miscellaneous/' ~/nuclei-templates/.nuclei-ignore+eval h8mail -g $DEBUG_STD#stripping all Go binarieseval strip -s $HOME/go/bin/* $DEBUG_STD-printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - favup (shodan init SHODANPAIDAPIKEY)\n - SSRF Server (COLLAB_SERVER env var) \n - Blind XSS Server (XSS_SERVER env var)\n\n${reset}"+printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - SHODAN (SHODAN_API_KEY in reconftw.cfg)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg) \n - theHarvester (~/Tools/theHarvester/api-keys.yml)\n - H8mail (~/Tools/h8mail_config.ini)\n\n${reset}"printf "${bgreen} Finished!${reset}\n\n"printf "\n\n${bgreen}#######################################################################\n"diff --git a/reconftw.cfg b/reconftw.cfgindex 55f8c2f..b091d01 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -37,7 +37,8 @@ DEBUG_STD="&>/dev/null"DEBUG_ERROR="2>/dev/null"# Osint-DORKS=true+GOOGLE_DORKS=true+GITHUB_DORKS=falseMETADATA=trueEMAILS=trueDOMAIN_INFO=truediff --git a/reconftw.sh b/reconftw.shindex f5bf52a..229cc61 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -94,7 +94,7 @@ function tools_installed(){###############################################################################################################function google_dorks(){- if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] && [ "$DORKS" = true ]+ if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] && [ "$GOOGLE_DORKS" = true ]thenstart=`date +%s`printf "${bgreen}#######################################################################\n"@@ -112,7 +112,7 @@ function google_dorks(){}function github_dorks(){- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$DORKS" = true ]+ if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$GITHUB_DORKS" = true ]thenprintf "${bgreen}#######################################################################\n"printf "${bblue} GitHub Dorks Scanning ${reset}\n\n"@@ -181,8 +181,24 @@ function emails(){cat .tmp/harvester.txt | awk '/Emails/,/Hosts/' | sed -e '1,2d' | head -n -2 | anew -q osint/emails.txtcat .tmp/harvester.txt | awk '/Users/,/IPs/' | sed -e '1,2d' | head -n -2 | anew -q osint/users.txtcat .tmp/harvester.txt | awk '/Links/,/Users/' | sed -e '1,2d' | head -n -2 | anew -q osint/linkedin.txt- cd $tools/pwndb && python3 pwndb.py --target "@${domain}" | anew -q $dir/osint/pwndb.txt- cd $dir++ eval h8mail -t $domain -q domain --loose -c $tools/h8mail_config.ini -j .tmp/h8_results.json $DEBUG_STD+ if [ -s ".tmp/h8_results.json" ]+ then+ cat .tmp/h8_results.json | jq -r '.targets[0] | .data[] | .[]' | cut -d '-' -f2 | anew -q osint/h8mail.txt+ fi++ PWNDB_STATUS=$(timeout 15s curl -Is --socks5-hostname localhost:9050 http://pwndb2am4tzkvold.onion | grep HTTP | cut -d ' ' -f2)++ if [ "$PWNDB_STATUS" = 200 ]+ then+ cd $tools/pwndb+ python3 pwndb.py --target "@${domain}" | anew -q $dir/osint/pwndb.txt+ cd $dir+ else+ text="${yellow}\n pwndb is currently down :(\n\n Check xjypo5vzgmo7jca6b322dnqbsdnp3amd24ybx26x5nxbusccjkm4pwid.onion${reset}\n"+ printf "${text}" && printf "${text}" | $NOTIFY+ fitouch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $end@@ -425,7 +441,7 @@ function sub_scraping(){printf "${yellow} Running : Source code scraping subdomain search${reset}\n\n"touch .tmp/scrap_subs.txtcat subdomains/subdomains.txt | httpx -follow-host-redirects -H "${HEADER}" -status-code -timeout 15 -silent -no-color | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp.txt- gospider -S .tmp/probed_tmp.txt --js -t 10 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | unfurl --unique domains | grep ".$domain$" | anew -q .tmp/scrap_subs.txt+ gospider -S .tmp/probed_tmp.txt --js -t 50 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | unfurl --unique domains | grep ".$domain$" | anew -q .tmp/scrap_subs.txtcat .tmp/scrap_subs.txt | eval shuffledns -d $domain -r $resolvers -t 5000 -o .tmp/scrap_subs_resolved.txt $DEBUG_STDNUMOFLINES=$(eval cat .tmp/scrap_subs_resolved.txt $DEBUG_ERROR | anew subdomains/subdomains.txt | wc -l)touch $called_fn_dir/.${FUNCNAME[0]}@@ -880,9 +896,9 @@ function urlchecks(){cat webs/webs.txt | waybackurls | anew -q .tmp/url_extract_tmp.txtcat webs/webs.txt | gau | anew -q .tmp/url_extract_tmp.txtif [ "$DEEP" = true ] ; then- gospider -S webs/webs.txt --js -t 10 -d 3 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep ".$domain$" | anew -q .tmp/url_extract_tmp.txt+ gospider -S webs/webs.txt --js -t 50 -d 3 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep ".$domain$" | anew -q .tmp/url_extract_tmp.txtelse- gospider -S webs/webs.txt --js -t 10 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep ".$domain$" | anew -q .tmp/url_extract_tmp.txt+ gospider -S webs/webs.txt --js -t 50 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep ".$domain$" | anew -q .tmp/url_extract_tmp.txtfiif [ -s "${GITHUB_TOKENS}" ]then@@ -1004,7 +1020,7 @@ function brokenLinks(){printf "${bgreen}#######################################################################\n"printf "${bblue} Broken links checks ${reset}\n\n"start=`date +%s`- gospider -S webs/webs.txt --js -t 10 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep -v ".$domain" | httpx -status-code -follow-redirects -timeout 15 -silent -no-color | grep '\[404\]' | cut -d ' ' -f1 | anew -q .tmp/brokenLinks_total.txt+ gospider -S webs/webs.txt --js -t 50 -H "${HEADER}" --sitemap --robots -w -r | egrep -o 'https?://[^ ]+' | sed 's/]$//' | grep -v ".$domain" | httpx -status-code -follow-redirects -timeout 15 -silent -no-color | grep '\[404\]' | cut -d ' ' -f1 | anew -q .tmp/brokenLinks_total.txtNUMOFLINES=$(eval cat .tmp/brokenLinks_total.txt $DEBUG_ERROR | cut -d ' ' -f2 | anew webs/brokenLinks.txt | wc -l)touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`diff --git a/requirements.txt b/requirements.txtindex e7eca3a..57896d1 100644--- a/requirements.txt+++ b/requirements.txt@@ -37,4 +37,5 @@ shodan==1.25.0texttable==1.6.3lxml==4.6.2uvloop==0.15.2-PySocks==1.6.8\ No newline at end of file+PySocks==1.6.8+h8mail\ No newline at end of file