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
Command injection added
six2dez7c215bdb3729
diff --git a/install.sh b/install.shindex 35cc892..43f40e1 100755--- a/install.sh+++ b/install.sh@@ -56,6 +56,7 @@ repos["OpenRedireX"]="devanshbatham/OpenRedireX"repos["GitDorker"]="obheda12/GitDorker"repos["testssl"]="drwetter/testssl.sh"repos["ip2provider"]="oldrho/ip2provider"+repos["commix"]="commixproject/commix"dir=${tools}diff --git a/reconftw.sh b/reconftw.shindex 25d8abd..46273d2 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -55,8 +55,9 @@ function tools_installed(){[ -f "$tools/CMSeeK/cmseek.py" ] || { printf "${bred} [*] CMSeeK [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/ctfr/ctfr.py" ] || { printf "${bred} [*] ctfr [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/fuzz_wordlist.txt" ] || { printf "${bred} [*] OneListForAll [NO]${reset}\n"; allinstalled=false;}- [ -f "$tools/LinkFinder/linkfinder.py" ] || { printf "${bred} [*] LinkFinder [NO]${reset}\n"; allinstalled=false;}- [ -f "$tools/GitDorker/GitDorker.py" ] || { printf "${bred} [*] GitDorker [NO]${reset}\n"; allinstalled=false;}+ [ -f "$tools/LinkFinder/linkfinder.py" ] || { printf "${bred} [*] LinkFinder [NO]${reset}\n"; allinstalled=false;}+ [ -f "$tools/GitDorker/GitDorker.py" ] || { printf "${bred} [*] GitDorker [NO]${reset}\n"; allinstalled=false;}+ [ -f "$tools/commix/commix.py" ] || { printf "${bred} [*] commix [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/degoogle_hunter/degoogle_hunter.sh" ] || { printf "${bred} [*] degoogle_hunter [NO]${reset}\n"; allinstalled=false;}[ -f "$tools/getjswords.py" ] || { printf "${bred} [*] getjswords [NO]${reset}\n"; allinstalled=false;}type -P arjun &>/dev/null || { printf "${bred} [*] Arjun [NO]${reset}\n"; allinstalled=false;}@@ -1209,8 +1210,8 @@ function sqli(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SQLI" = true ] && [ -s "gf/sqli.txt" ]; thenstart_func "SQLi checks"cat gf/sqli.txt | qsreplace FUZZ | anew -q .tmp/tmp_sqli.txt- interlace -tL .tmp/tmp_sqli.txt -threads 10 -c "python3 $tools/sqlmap/sqlmap.py -u _target_ -b --batch --disable-coloring --random-agent --output-dir=sqlmap" &>/dev/null- end_func "Results are saved in sqlmap folder" ${FUNCNAME[0]}+ interlace -tL .tmp/tmp_sqli.txt -threads 10 -c "python3 $tools/sqlmap/sqlmap.py -u _target_ -b --batch --disable-coloring --random-agent --output-dir=vulns/sqlmap" &>/dev/null+ end_func "Results are saved in vulns/sqlmap folder" ${FUNCNAME[0]}elseif [ "$SQLI" = false ]; thenprintf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"@@ -1271,6 +1272,23 @@ function 4xxbypass(){fi}+function command_injection(){+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$COMM_INJ" = true ] && [ -s "gf/rce.txt" ]; then+ start_func "Command Injection checks"+ cat gf/rce.txt | qsreplace FUZZ | anew -q .tmp/tmp_rce.txt+ python3 $tools/commix/commix.py --batch -m .tmp/tmp_rce.txt --output-dir vulns/command_injection+ end_func "Results are saved in vulns/command_injection folder" ${FUNCNAME[0]}+ else+ if [ "$COMM_INJ" = false ]; then+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"+ elif [ ! -s "gf/rce.txt" ]; then+ printf "\n${yellow} ${FUNCNAME[0]} No URLs potentially vulnerables to Command Injection ${reset}\n\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+}+######################################################################################################################################################### OPTIONS & MGMT ####################################################################################################################################################################@@ -1558,6 +1576,7 @@ function all(){sstisqlixss+ command_injectionsprayingbrokenLinkstest_ssl@@ -1836,6 +1855,7 @@ function webs_menu(){sstisqlixss+ command_injectionsprayingbrokenLinkstest_ssldiff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex cb00681..c78cc1a 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -1277,6 +1277,24 @@ function 4xxbypass(){fi}+function command_injection(){+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$COMM_INJ" = true ] && [ -s "gf/rce.txt" ]; then+ start_func "Command Injection checks"+ cat gf/rce.txt | qsreplace FUZZ | anew -q .tmp/tmp_rce.txt+ python3 $tools/commix/commix.py --batch -m .tmp/tmp_rce.txt --output-dir vulns/command_injection+ #axiom_scan .tmp/tmp_rce.txt -m commix -o vulns/command_injection+ end_func "Results are saved in vulns/command_injection folder" ${FUNCNAME[0]}+ else+ if [ "$COMM_INJ" = false ]; then+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"+ elif [ ! -s "gf/rce.txt" ]; then+ printf "\n${yellow} ${FUNCNAME[0]} No URLs potentially vulnerables to Command Injection ${reset}\n\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+}+######################################################################################################################################################### OPTIONS & MGMT ####################################################################################################################################################################@@ -1637,6 +1655,7 @@ function all(){sstisqlixss+ command_injectionsprayingbrokenLinkstest_ssl@@ -1934,6 +1953,7 @@ function webs_menu(){sstisqlixss+ command_injectionsprayingbrokenLinkstest_ssl