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 geoinfo - git update - web mode
six2dezf9d31ad73420
diff --git a/install.sh b/install.shindex 8cc5a86..d881722 100755--- a/install.sh+++ b/install.sh@@ -345,26 +345,28 @@ eval git config --global --unset https.proxy $DEBUG_STDprintf "${bblue} Running: Looking for new reconFTW version${reset}\n\n"-if ! eval git fetch $DEBUG_STD; then- echo "Failed to fetch updates."- exit 1-fi--BRANCH=$(git rev-parse --abbrev-ref HEAD)-HEADHASH=$(git rev-parse HEAD)-UPSTREAMHASH=$(git rev-parse "${BRANCH}@{upstream}")--if [[ $HEADHASH != "$UPSTREAMHASH" ]]; then- printf "${yellow} There is a new version, updating...${reset}\n\n"- if git status --porcelain | grep -q 'reconftw.cfg$'; then- mv reconftw.cfg reconftw.cfg_bck- printf "${yellow} reconftw.cfg has been backed up in reconftw.cfg_bck${reset}\n\n"+timeout 10 git fetch+exit_status=$?+if [[ ${exit_status} -eq 0 ]]; then++ BRANCH=$(git rev-parse --abbrev-ref HEAD)+ HEADHASH=$(git rev-parse HEAD)+ UPSTREAMHASH=$(git rev-parse "${BRANCH}@{upstream}")++ if [[ $HEADHASH != "$UPSTREAMHASH" ]]; then+ printf "${yellow} There is a new version, updating...${reset}\n\n"+ if git status --porcelain | grep -q 'reconftw.cfg$'; then+ mv reconftw.cfg reconftw.cfg_bck+ printf "${yellow} reconftw.cfg has been backed up in reconftw.cfg_bck${reset}\n\n"+ fi+ eval git reset --hard $DEBUG_STD+ eval git pull $DEBUG_STD+ printf "${bgreen} Updated! Running new installer version...${reset}\n\n"+ else+ printf "${bgreen} reconFTW is already up to date!${reset}\n\n"fi- eval git reset --hard $DEBUG_STD- eval git pull $DEBUG_STD- printf "${bgreen} Updated! Running new installer version...${reset}\n\n"else- printf "${bgreen} reconFTW is already up to date!${reset}\n\n"+ printf "\n${bred} Unable to check updates ${reset}\n\n"fiprintf "${bblue} Running: Installing system packages ${reset}\n\n"diff --git a/reconftw.sh b/reconftw.shindex 9c9d26d..1647648 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -1244,7 +1244,7 @@ function s3buckets() {fi# Cloudenumkeyword=${domain%%.*}- python3 ~/Tools/cloud_enum/cloud_enum.py -k $keyword -l .tmp/output_cloud.txt 2>>"$LOGFILE" >/dev/null+ timeout -k 1m 20m python3 ~/Tools/cloud_enum/cloud_enum.py -k $keyword -l .tmp/output_cloud.txt 2>>"$LOGFILE" >/dev/nullNUMOFLINES1=$(cat .tmp/output_cloud.txt 2>>"$LOGFILE" | sed '/^#/d' | sed '/^$/d' | anew subdomains/cloud_assets.txt | wc -l)if [[ $NUMOFLINES1 -gt 0 ]]; then@@ -1281,7 +1281,7 @@ function s3buckets() {function geo_info() {if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GEO_INFO == true ]]; then- start_func ${FUNCNAME[0]} "Running: ipinfo via ipapi.co"+ start_func ${FUNCNAME[0]} "Running: ipinfo and geoinfo"ips_file="${dir}/hosts/ips.txt"if [ ! -f $ips_file ]; thenecho "File ${dir}/hosts/ips.txt does not exist."@@ -2950,9 +2950,9 @@ function passive() {remove_big_filesfaviconcdnprovider- geo_infoPORTSCAN_ACTIVE=falseportscan+ geo_infoif [[ $AXIOM == true ]]; thenaxiom_shutdown@@ -3099,8 +3099,8 @@ function recon() {screenshot# virtualhostscdnprovider- geo_infoportscan+ geo_infowaf_checksnuclei_checkfuzz@@ -3222,8 +3222,8 @@ function multi_recon() {screenshot# virtualhostscdnprovider- geo_infoportscan+ geo_infocurrently=$(date +"%H:%M:%S")loopend=$(date +%s)getElapsedTime $loopstart $loopend@@ -3435,7 +3435,7 @@ if [[ $OSTYPE == "darwin"* ]]; thenPATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"fi-PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:rspanvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,deep,help,vps' -n 'reconFTW' -- "$@")+PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:rspanwvh::' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,deep,help,vps' -n 'reconFTW' -- "$@")# Note the quotes around "$PROGARGS": they are essential!eval set -- "$PROGARGS"