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
Pydictor,screenshot fix && clean empty, custom fun
six2dezf668a3ae88f1
diff --git a/install.sh b/install.shindex 1ad5fc1..29c3e22 100755--- a/install.sh+++ b/install.sh@@ -62,6 +62,7 @@ repos["JSA"]="w9w/JSA"repos["urldedupe"]="ameenmaali/urldedupe"repos["cloud_enum"]="initstring/cloud_enum"repos["nmap-parse-output"]="ernw/nmap-parse-output"+repos["pydictor"]="LandGrey/pydictor"dir=${tools}double_check=false@@ -340,6 +341,9 @@ if [ ! -s "resolvers.txt" ] || [ $(find "resolvers.txt" -mtime +1 -print) ]; theprintf "${yellow} Resolvers seem older than 1 day\n Generating custom resolvers... ${reset}\n\n"eval rm -f resolvers.txt &>/dev/nulleval dnsvalidator -tL https://public-dns.info/nameservers.txt -threads 100 -o resolvers.txt $DEBUG_STD+ eval dnsvalidator -tL https://raw.githubusercontent.com/blechschmidt/massdns/master/lists/resolvers.txt -threads 100 -o tmp_resolvers $DEBUG_STD+ eval cat tmp_resolvers $DEBUG_ERROR | anew -q resolvers.txt+ eval rm -f tmp_resolvers $DEBUG_STDfieval h8mail -g $DEBUG_STDdiff --git a/reconftw.cfg b/reconftw.cfgindex 610d917..578133f 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -88,6 +88,9 @@ FUZZ=trueCMS_SCANNER=trueWORDLIST=trueROBOTSWORDLIST=true+PASSWORD_DICT=true+PASSWORD_MIN_LENGTH=5+PASSWORD_MAX_LENGTH=14# VulnsVULNS_GENERAL=false@@ -173,8 +176,9 @@ BBRF_PASSWORD=passwordbred='\033[1;31m'bblue='\033[1;34m'bgreen='\033[1;32m'-yellow='\033[0;33m'+byellow='\033[1;33m'red='\033[0;31m'blue='\033[0;34m'green='\033[0;32m'+yellow='\033[0;33m'reset='\033[0m'diff --git a/reconftw.sh b/reconftw.shindex 0d96cee..951c1c0 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -60,6 +60,7 @@ function tools_installed(){[ -f "$tools/JSA/jsa.py" ] || { printf "${bred} [*] JSA [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/cloud_enum/cloud_enum.py" ] || { printf "${bred} [*] cloud_enum [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/nmap-parse-output/nmap-parse-output" ] || { printf "${bred} [*] nmap-parse-output [NO]${reset}\n"; allinstalled=false;}+ [ -f "$tools/pydictor/pydictor.py" ] || { printf "${bred} [*] pydictor [NO]${reset}\n"; allinstalled=false;}type -P github-endpoints &>/dev/null || { printf "${bred} [*] github-endpoints [NO]${reset}\n"; allinstalled=false;}type -P github-subdomains &>/dev/null || { printf "${bred} [*] github-subdomains [NO]${reset}\n"; allinstalled=false;}type -P gospider &>/dev/null || { printf "${bred} [*] gospider [NO]${reset}\n"; allinstalled=false;}@@ -106,8 +107,7 @@ function tools_installed(){type -P interactsh-client &>/dev/null || { printf "${bred} [*] interactsh-client [NO]${reset}\n"; allinstalled=false;}type -P uro &>/dev/null || { printf "${bred} [*] uro [NO]${reset}\n"; allinstalled=false;}type -P bbrf &>/dev/null || { printf "${bred} [*] bbrf [NO]${reset}\n"; allinstalled=false;}- type -P axiom-ls &>/dev/null || { printf "${bred} [*] axiom [NO]${reset}\n${reset}"; allinstalled=false;}-+if [ "${allinstalled}" = true ]; thenprintf "${bgreen} Good! All installed! ${reset}\n\n"else@@ -840,7 +840,7 @@ function screenshot(){start_func "Web Screenshots"cat webs/webs.txt webs/webs_uncommon_ports.txt 2>>"$LOGFILE" | anew -q .tmp/webs_screenshots.txtif [ ! "$AXIOM" = true ]; then- [ -s ".tmp/webs_screenshots.txt" ] && webscreenshot -r chromium -i .tmp/webs_screenshots.txt -w $WEBSCREENSHOT_THREADS -o screenshots 2>>"$LOGFILE" &>/dev/null+ [ -s ".tmp/webs_screenshots.txt" ] && webscreenshot -i .tmp/webs_screenshots.txt -w $WEBSCREENSHOT_THREADS -o screenshots 2>>"$LOGFILE" &>/dev/null#gowitness file -f .tmp/webs_screenshots.txt --disable-logging 2>>"$LOGFILE"else[ "$AXIOM_SCREENSHOT_MODULE" = "webscreenshot" ] && axiom-scan .tmp/webs_screenshots.txt -m $AXIOM_SCREENSHOT_MODULE -w $WEBSCREENSHOT_THREADS -o screenshots 2>>"$LOGFILE" &>/dev/null@@ -1323,6 +1323,21 @@ function wordlist_gen_roboxtractor(){fi}+function password_dict(){+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$PASSWORD_DICT" = true ]; then+ start_func "Password dictionary generation"+ word=${domain%%.*}+ python3 $tools/pydictor/pydictor.py -extend $word --leet 0 1 2 11 21 --len ${PASSWORD_MIN_LENGTH} ${PASSWORD_MAX_LENGTH} -o webs/password_dict.txt+ end_func "Results are saved in $domain/webs/password_dict.txt" ${FUNCNAME[0]}+ else+ if [ "$PASSWORD_DICT" = false ]; then+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"+ else+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ fi+ fi+}+######################################################################################################################################################## VULNERABILITIES ####################################################################################################################################################################@@ -1972,6 +1987,10 @@ function start(){}function end(){++ find $dir -type f -empty -print | grep -v '.called_fn' | grep -v '.log' | grep -v '.tmp' | xargs rm -f+ find $dir -type d -empty -print -delete+if [ ! "$PRESERVE" = true ]; thenfind $dir -type f -empty | grep -v "called_fn" | xargs rm -f &>/dev/nullfind $dir -type d -empty | grep -v "called_fn" | xargs rm -rf &>/dev/null@@ -1981,9 +2000,9 @@ function end(){rm -rf $dir/.tmpfi- if [ "$REMOVELOG" = true ]; then- rm -rf $dir/.log- fi+ if [ "$REMOVELOG" = true ]; then+ rm -rf $dir/.log+ fiif [ -n "$dir_output" ]; thenoutput@@ -2159,6 +2178,7 @@ function recon(){url_gfwordlist_genwordlist_gen_roboxtractor+ password_dicturl_ext}@@ -2325,6 +2345,7 @@ function multi_recon(){url_gfwordlist_genwordlist_gen_roboxtractor+ password_dicturl_extcurrently=$(date +"%H:%M:%S")loopend=$(date +%s)@@ -2377,6 +2398,7 @@ function webs_menu(){url_gfwordlist_genwordlist_gen_roboxtractor+ password_dicturl_extvulnsend@@ -2429,7 +2451,7 @@ function help(){########################################### START SCRIPT ####################################################################################################################################################################-PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,deep,help,vps' -n 'reconFTW' -- "$@")+PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:c:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,deep,help,vps' -n 'reconFTW' -- "$@")# Note the quotes around "$PROGARGS": they are essential!@@ -2499,7 +2521,12 @@ while true; doshiftcontinue;;-+ '-c')+ custom_function=$2+ opt_mode='c'+ shift 2+ continue+ ;;# extra stuff'-o')if [[ "$2" != /* ]]; then@@ -2511,6 +2538,7 @@ while true; docontinue;;'-v'|'--vps')+ type -P axiom-ls &>/dev/null || { printf "\n Axiom is needed for this mode and is not installed \n You have to install it manually \n" && exit; allinstalled=false;}AXIOM=trueshiftcontinue@@ -2694,6 +2722,11 @@ case $opt_mode inendfi;;+ 'c')+ export DIFF=true+ $custom_function+ exit+ ;;# No mode selected. EXIT!*)help