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 trufflehog
six2dez1eb426785fbf
diff --git a/reconftw.sh b/reconftw.shindex e01392e..0b0b8ba 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -521,15 +521,15 @@ function apileaks() {pushd "${tools}/SwaggerSpy" >/dev/null || {echo "Failed to pushd to ${tools}/SwaggerSpy in ${FUNCNAME[0]} @ line ${LINENO}"}- python3 swaggerspy.py $domain 2>>"$LOGFILE" >${dir}/osint/swagger_leaks.txt || {+ python3 swaggerspy.py $domain 2>>"$LOGFILE" | grep -i "[*]\|URL" > ${dir}/osint/swagger_leaks.txt || {echo "swaggerspy command failed"}popd >/dev/null || {echo "Failed to popd in ${FUNCNAME[0]} @ line ${LINENO}"}- [ -s "osint/postman_leaks.txt" ] && trufflehog filesystem ${dir}/osint/postman_leaks.txt -j | jq -c | anew -q ${dir}/osint/postman_leaks_trufflehog.json- [ -s "osint/swagger_leaks.txt" ] && trufflehog filesystem ${dir}/osint/swagger_leaks.txt -j | jq -c | anew -q ${dir}/osint/swagger_leaks_trufflehog.json+ [ -s "osint/postman_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/postman_leaks.txt -j | jq -c | anew -q ${dir}/osint/postman_leaks_trufflehog.json+ [ -s "osint/swagger_leaks.txt" ] && trufflehog filesystem --directory=${dir}/osint/swagger_leaks.txt -j | jq -c | anew -q ${dir}/osint/swagger_leaks_trufflehog.jsonend_func "Results are saved in $domain/osint/[software/authors/metadata_results].txt" ${FUNCNAME[0]}else@@ -1884,7 +1884,7 @@ function jschecks() {[ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | mantra -ua ${HEADER} -s | anew -q js/js_secrets.txtelse[ -s "js/js_livelinks.txt" ] && axiom-scan js/js_livelinks.txt -m mantra -ua \"${HEADER}\" -s -o js/js_secrets.txt $AXIOM_EXTRA_ARGS &>/dev/null- [ -s "js/js_secrets.txt" ] && trufflehog filesystem js/js_secrets.txt -j | jq -c | anew -q js/js_secrets_trufflehog.txt+ [ -s "js/js_secrets.txt" ] && trufflehog filesystem --directory=js/js_secrets.txt -j | jq -c | anew -q js/js_secrets_trufflehog.txtfi[ -s "js/js_secrets.txt" ] && sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g" -i js/js_secrets.txtprintf "${yellow} Running : Building wordlist 5/5${reset}\n"