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
Add --check-tools to reconftw.sh
Patricia Gagnon-Renaudf034a0863eae
diff --git a/README.md b/README.mdindex 08a1d25..90b3519 100644--- a/README.md+++ b/README.md@@ -408,6 +408,7 @@ reset='\033[0m'| -o | Output directory || -v | Axiom distributed VPS || -q | Rate limit in requests per second |+| --check-tools | Exit if one of the tools is missing |## Example Usagediff --git a/reconftw.sh b/reconftw.shindex 7458b87..9562763 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -256,6 +256,10 @@ function tools_installed() {printf "%b[%s] Tools check finished%b\n" "$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$reset"printf "%b#######################################################################\n%b" "$bgreen" "$reset"++ if [[ $CHECK_TOOLS_OR_EXIT == true && $all_installed != true ]]; then+ exit 2+ fi}#####################################################################cc##########################################@@ -6007,6 +6011,7 @@ function help() {printf " -o output/path Define output folder\n"printf " -v, --vps Axiom distributed VPS \n"printf " -q Rate limit in requests per second \n"+ printf " --check-tools Exit if one of the tools is missing\n"printf " \n"printf " ${bblue}USAGE EXAMPLES${reset}\n"printf " ${byellow}Perform full recon (without attacks):${reset}\n"@@ -6041,7 +6046,12 @@ if [[ $OSTYPE == "darwin"* ]]; thenPATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"fi-PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:z:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps' -n 'reconFTW' -- "$@")+PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:z:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps,check-tools' -n 'reconFTW' -- "$@")++exit_status=$?+if [[ $exit_status -ne 0 ]]; then+ UNKNOWN_ARGUMENT=true+fi# Note the quotes around "$PROGARGS": they are essential!eval set -- "$PROGARGS"@@ -6158,13 +6168,18 @@ while true; doshiftbreak;;- '--help' | '-h' | *)+ '--check-tools')+ CHECK_TOOLS_OR_EXIT=true+ shift+ continue+ ;;+ '--help' | '-h')+ break+ ;;+ *)# echo "Unknown argument: $1"- . ./reconftw.cfg- banner- help- tools_installed- exit 1+ UNKNOWN_ARGUMENT=true+ break;;esacdone@@ -6396,6 +6411,8 @@ case $opt_mode in*)helptools_installed- exit 1+ if [[ $UNKNOWN_ARGUMENT == true ]]; then+ exit 1+ fi;;esac