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
Fix warn shellcheck
six2deze5876e7fa2b6
diff --git a/reconftw.sh b/reconftw.shindex a86ad74..f65be7d 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -1,7 +1,7 @@#!/usr/bin/env bashfunction banner_graber(){- source $SCRIPTPATH/banners.txt+ source "${SCRIPTPATH}"/banners.txtrandx=$(shuf -i 1-23 -n 1)tmp="banner${randx}"banner_code=${!tmp}@@ -23,7 +23,7 @@ function check_version(){if [ $exit_status -eq 0 ]; thenBRANCH=$(git rev-parse --abbrev-ref HEAD)HEADHASH=$(git rev-parse HEAD)- UPSTREAMHASH=$(git rev-parse ${BRANCH}@{upstream})+ UPSTREAMHASH=$(git rev-parse "${BRANCH}"@\{upstream\})if [ "$HEADHASH" != "$UPSTREAMHASH" ]; thenprintf "\n${yellow} There is a new version, run ./install.sh to get latest version${reset}\n\n"fi@@ -1171,7 +1171,7 @@ function nuclei_check(){[ ! -s ".tmp/webs_subs.txt" ] && cat subdomains/subdomains.txt .tmp/webs_all.txt 2>>"$LOGFILE" | anew -q .tmp/webs_subs.txtif [ ! "$AXIOM" = true ]; thenset -f # avoid globbing (expansion of *).- array=(${NUCLEI_SEVERITY//,/ })+ array=("${NUCLEI_SEVERITY//,/ }")for i in "${!array[@]}"docrit=${array[i]}@@ -1182,7 +1182,7 @@ function nuclei_check(){elseif [ -s ".tmp/webs_subs.txt" ]; thenset -f # avoid globbing (expansion of *).- array=(${NUCLEI_SEVERITY//,/ })+ array=("${NUCLEI_SEVERITY//,/ }")for i in "${!array[@]}"docrit=${array[i]}@@ -1945,9 +1945,9 @@ function getElapsedTime {}function zipSnedOutputFolder {- zip_name=`date +"%Y_%m_%d-%H.%M.%S"`- zip_name="$zip_name"_"$domain.zip"- (cd $dir && zip -r "$zip_name" .)+ zip_name1=$(date +"%Y_%m_%d-%H.%M.%S")+ zip_name="${zip_name1}_${domain}.zip"+ (cd "$dir" && zip -r "$zip_name" .)echo "Sending zip file "${dir}/${zip_name}""if [ -s "${dir}/$zip_name" ]; then@@ -2975,10 +2975,11 @@ while true; dodone# This is the first thing to do to read in alternate config-SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"+SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 || exit ; pwd -P )". "$SCRIPTPATH"/reconftw.cfgif [ -s "$CUSTOM_CONFIG" ]; then- . "${CUSTOM_CONFIG}"+# shellcheck source=/home/six2dez/Tools/reconftw/custom_config.cfg+. "${CUSTOM_CONFIG}"fiif [ $opt_deep ]; then