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
added jsluice patterns & improved js secret detection
six2dez425a550e1a06
diff --git a/install.sh b/install.shindex 188b183..21e0110 100755--- a/install.sh+++ b/install.sh@@ -621,6 +621,7 @@ function initial_setup() {["ssti_wordlist"]="https://gist.githubusercontent.com/six2dez/ab5277b11da7369bf4e9db72b49ad3c1/raw ${ssti_wordlist}"["headers_inject"]="https://gist.github.com/six2dez/d62ab8f8ffd28e1c206d401081d977ae/raw ${tools}/headers_inject.txt"["axiom_config"]="https://gist.githubusercontent.com/six2dez/6e2d9f4932fd38d84610eb851014b26e/raw ${tools}/axiom_config.sh"+ ["jsluice_patterns"]="https://gist.githubusercontent.com/six2dez/2aafa8dc2b682bb0081684e71900e747/raw ${tools}/jsluice_patterns.json")for key in "${!downloads[@]}"; dodiff --git a/reconftw.sh b/reconftw.shindex 8c2257d..b69c0e3 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -3475,7 +3475,7 @@ function urlchecks() {interlace -tL .tmp/url_extract_js.txt -threads 10 -c "${tools}/JSA/venv/bin/python3 ${tools}/JSA/jsa.py -f _target_ | anew -q .tmp/url_extract_tmp.txt" &>/dev/nullfi- grep -a "$domain" .tmp/url_extract_tmp.txt | grep -E '^((http|https):\/\/)?([a-zA-Z0-9\-\.]+\.)+[a-zA-Z]{1,}(\/.*)?$' | grep "=" | qsreplace -a 2>>"$LOGFILE" | grep -aEiv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)$" | anew -q .tmp/url_extract_tmp2.txt+ grep -a "$domain" .tmp/url_extract_tmp.txt | grep -E '^((http|https):\/\/)?([a-zA-Z0-9\-\.]+\.)+[a-zA-Z]{1,}(\/.*)?$' | grep "=" | qsreplace -a 2>>"$LOGFILE" | grep -aEiv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg)$" | anew -q .tmp/url_extract_tmp2.txtif [[ -s ".tmp/url_extract_tmp2.txt" ]]; thenurless <.tmp/url_extract_tmp2.txt | anew -q .tmp/url_extract_uddup.txt 2>>"$LOGFILE" >/dev/null@@ -3711,7 +3711,7 @@ function jschecks() {fiif [[ -s ".tmp/url_extract_jsmap.txt" ]]; then- interlace -tL js/js_livelinks.txt -threads "$INTERLACE_THREADS" \+ interlace -tL js/url_extract_jsmap.txt -threads "$INTERLACE_THREADS" \-c "sourcemapper -url '_target_' -output _output_/_cleantarget_" \-o .tmp/sourcemapper 2>>"$LOGFILE" >/dev/nullfi@@ -3735,15 +3735,13 @@ function jschecks() {if [[ $AXIOM != true ]]; thencat js/js_livelinks.txt | mantra -ua \"$HEADER\" -s | anew -q js/js_secrets.txt 2>>"$LOGFILE" >/dev/nullelse+ axiom-exec "go install github.com/Brosck/mantra@latest" 2>>"$LOGFILE" >/dev/nullaxiom-scan js/js_livelinks.txt -m mantra -ua "$HEADER" -s -o js/js_secrets.txt "$AXIOM_EXTRA_ARGS" &>/dev/nullfi- if [[ -s "js/js_secrets.txt" ]]; then- trufflehog filesystem js/js_secrets.txt -j 2>/dev/null |- jq -c | anew -q js/js_secrets_trufflehog.txt- trufflehog filesystem .tmp/sourcemapper/ -j 2>/dev/null |- jq -c | anew -q js/js_secrets_trufflehog.txt- sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g" -i js/js_secrets.txt- fi+ mkdir -p .tmp/sourcemapper/secrets+ for i in $( cat js/js_secrets.txt | cut -d' ' -f2 ); do wget -q -P .tmp/sourcemapper/secrets $i ; done+ trufflehog filesystem .tmp/sourcemapper/ -j 2>/dev/null | jq -c | anew -q js/js_secrets_jsmap.txt+ find .tmp/sourcemapper/ -type f -name "*.js" | jsluice secrets -j --patterns=~/Tools/jsluice-patterns.json | anew -q js/js_secrets_jsmap_jsluice.txtfiprintf "%bRunning: Building wordlist 6/6%b\n" "$yellow" "$reset"