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
Better notification
six2dez741be1e64efc
diff --git a/reconftw.sh b/reconftw.shindex 3e0b9f8..116d9fd 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -475,7 +475,7 @@ function subtakeover(){cat webs/webs.txt | nuclei -silent -H "${HEADER}" -t ~/nuclei-templates/takeovers/ -o .tmp/tko.txtNUMOFLINES=$(eval cat .tmp/tko.txt $DEBUG_ERROR | anew webs/takeover.txt | wc -l)if [ "$NUMOFLINES" -gt 0 ]; then- notification "${NUMOFLINES} new possible takeovers found in ${runtime}" good+ notification "${NUMOFLINES} new possible takeovers found" infofiend_func "Results are saved in webs/takeover.txt" ${FUNCNAME[0]}else@@ -509,7 +509,7 @@ function s3buckets(){eval python3 $tools/S3Scanner/s3scanner.py subdomains/subdomains.txt -o .tmp/s3buckets.txt $DEBUG_STDNUMOFLINES=$(eval cat .tmp/s3buckets.txt $DEBUG_ERROR | anew subdomains/s3buckets.txt | wc -l)if [ "$NUMOFLINES" -gt 0 ]; then- notification "${NUMOFLINES} new S3 buckets found in ${runtime}" good+ notification "${NUMOFLINES} new S3 buckets found" infofiend_func "Results are saved in subdomains/s3buckets.txt" ${FUNCNAME[0]}else@@ -810,7 +810,7 @@ function urlchecks(){cat .tmp/url_extract_tmp.txt | grep "${domain}" | egrep -i "\.(js)" | anew -q js/url_extract_js.txteval uddup -u .tmp/url_extract_tmp2.txt -o .tmp/url_extract_uddup.txt $DEBUG_STDNUMOFLINES=$(eval cat .tmp/url_extract_uddup.txt $DEBUG_ERROR | anew webs/url_extract.txt | wc -l)- notification "${NUMOFLINES} new urls with params" good+ notification "${NUMOFLINES} new urls with params" infoend_func "Results are saved in webs/url_extract.txt" ${FUNCNAME[0]}elseprintf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"@@ -907,7 +907,7 @@ function brokenLinks(){sed -i '/^.\{2048\}./d' .tmp/gospider.txtcat .tmp/gospider.txt | egrep -o 'https?://[^ ]+' | sed 's/]$//' | sort -u | httpx -follow-redirects -status-code -timeout 15 -silent -retries 2 -no-color | grep "\[4" | cut -d ' ' -f1 | anew -q .tmp/brokenLinks_total.txtNUMOFLINES=$(eval cat .tmp/brokenLinks_total.txt $DEBUG_ERROR | anew webs/brokenLinks.txt | wc -l)- notification "${NUMOFLINES} new broken links found in ${runtime}" good+ notification "${NUMOFLINES} new broken links found" infoend_func "Results are saved in webs/brokenLinks.txt" ${FUNCNAME[0]}elseif [ "$BROKENLINKS" = false ]; then@@ -1226,7 +1226,7 @@ function notification(){case $2 ininfo)text="\n${bblue} ${1} ${reset}\n"- printf "${text}" && printf "${text}" | $NOTIFY+ printf "${text}" && printf "\`${text}\`" | $NOTIFY;;warn)text="\n${yellow} ${1} ${reset}\n"