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
SSRF fix
six2dez265a308a5466
diff --git a/reconftw.sh b/reconftw.shindex 048fd68..5b99f28 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -1098,8 +1098,10 @@ function ssrf_checks(){sleep 2COLLAB_SERVER_FIX=$(cat .tmp/ssrf_callback.txt | tail -n1 | cut -c 16-)COLLAB_SERVER_URL="http://$COLLAB_SERVER_FIX"+ INTERACT=trueelseCOLLAB_SERVER_FIX=$(echo ${COLLAB_SERVER} | sed -r "s/https?:\/\///")+ INTERACT=falsefiif [ "$DEEP" = true ] || [[ $(cat gf/ssrf.txt | wc -l) -le $DEEP_LIMIT ]]; thencat gf/ssrf.txt | qsreplace ${COLLAB_SERVER_FIX} | anew -q .tmp/tmp_ssrf.txt@@ -1109,7 +1111,7 @@ function ssrf_checks(){ffuf -v -w .tmp/tmp_ssrf.txt:W1,$tools/headers_inject.txt:W2 -H "${HEADER}" -H "W2: ${COLLAB_SERVER_URL}" -t $FFUF_THREADS -u W1 2>>"$LOGFILE" | anew -q vulns/ssrf_requests_headers.txtsleep 5[ -s ".tmp/ssrf_callback.txt" ] && cat .tmp/ssrf_callback.txt | tail -n+11 | anew -q vulns/ssrf_callback.txt && NUMOFLINES=$(cat .tmp/ssrf_callback.txt | tail -n+12 | wc -l)- notification "SSRF: ${NUMOFLINES} callbacks received" info+ [ "$INTERACT" = true ] && notification "SSRF: ${NUMOFLINES} callbacks received" infoend_func "Results are saved in vulns/ssrf_*" ${FUNCNAME[0]}elseend_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}diff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex 9c53870..5729ed6 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -1124,8 +1124,10 @@ function ssrf_checks(){sleep 2COLLAB_SERVER_FIX=$(cat .tmp/ssrf_callback.txt | tail -n1 | cut -c 16-)COLLAB_SERVER_URL="http://$COLLAB_SERVER_FIX"+ INTERACT=trueelseCOLLAB_SERVER_FIX=$(echo ${COLLAB_SERVER} | sed -r "s/https?:\/\///")+ INTERACT=falsefiif [ "$DEEP" = true ] || [[ $(cat gf/ssrf.txt | wc -l) -le $DEEP_LIMIT ]]; thencat gf/ssrf.txt | qsreplace ${COLLAB_SERVER_FIX} | anew -q .tmp/tmp_ssrf.txt@@ -1135,7 +1137,7 @@ function ssrf_checks(){ffuf -v -w .tmp/tmp_ssrf.txt:W1,$tools/headers_inject.txt:W2 -H "${HEADER}" -H "W2: ${COLLAB_SERVER_URL}" -t $FFUF_THREADS -u W1 2>>"$LOGFILE" | anew -q vulns/ssrf_requests_headers.txtsleep 5[ -s ".tmp/ssrf_callback.txt" ] && cat .tmp/ssrf_callback.txt | tail -n+11 | anew -q vulns/ssrf_callback.txt && NUMOFLINES=$(cat .tmp/ssrf_callback.txt | tail -n+12 | wc -l)- notification "SSRF: ${NUMOFLINES} callbacks received" info+ [ "$INTERACT" = true ] && notification "SSRF: ${NUMOFLINES} callbacks received" infoend_func "Results are saved in vulns/ssrf_*" ${FUNCNAME[0]}elseend_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}