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
getjswords
six2dez4487514f4b6d
diff --git a/modules/web.sh b/modules/web.shindex 9775ea0..28f65ee 100644--- a/modules/web.sh+++ b/modules/web.sh@@ -1496,8 +1496,33 @@ function jschecks() {printf "%bRunning: Building wordlist 6/6%b\n" "$yellow" "$reset"if [[ -s "js/js_livelinks.txt" ]]; then- interlace -tL js/js_livelinks.txt -threads "$INTERLACE_THREADS" \- -c "python3 ${tools}/getjswords.py '_target_' | anew -q webs/dict_words.txt" 2>>"$LOGFILE" >/dev/null+ if [[ -n "${GETJSWORDS_VENV:-}" ]]; then+ if [[ -f "${GETJSWORDS_VENV}/bin/activate" ]]; then+ (+ # shellcheck source=/dev/null+ source "${GETJSWORDS_VENV}/bin/activate"+ if python3 -c "import jsbeautifier" 2>/dev/null; then+ interlace -tL js/js_livelinks.txt -threads "$INTERLACE_THREADS" \+ -c "python3 ${tools}/getjswords.py '_target_' | anew -q webs/dict_words.txt" 2>>"$LOGFILE" >/dev/null+ else+ log_note "jsbeautifier not installed in venv ${GETJSWORDS_VENV}; skipping getjswords wordlist step" "${FUNCNAME[0]}" "${LINENO}"+ fi+ deactivate || true+ )+ else+ log_note "GETJSWORDS_VENV invalid: ${GETJSWORDS_VENV}; skipping getjswords wordlist step" "${FUNCNAME[0]}" "${LINENO}"+ fi+ else+ local getjs_py="${GETJSWORDS_PYTHON:-python3}"+ if ! command -v "$getjs_py" >/dev/null 2>&1; then+ log_note "getjswords python not found: ${getjs_py}; skipping wordlist step" "${FUNCNAME[0]}" "${LINENO}"+ elif "$getjs_py" -c "import jsbeautifier" 2>/dev/null; then+ interlace -tL js/js_livelinks.txt -threads "$INTERLACE_THREADS" \+ -c "${getjs_py} ${tools}/getjswords.py '_target_' | anew -q webs/dict_words.txt" 2>>"$LOGFILE" >/dev/null+ else+ log_note "jsbeautifier not installed in ${getjs_py}; skipping getjswords wordlist step" "${FUNCNAME[0]}" "${LINENO}"+ fi+ fifiend_func "Results are saved in $domain/js folder" "${FUNCNAME[0]}"elsediff --git a/reconftw.cfg b/reconftw.cfgindex 8dc625c..a1313cb 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -159,6 +159,12 @@ URL_CHECK_ACTIVE=true # Search for urls by crawling the websitesURL_GF=true # Url patterns classificationURL_EXT=true # Returns a list of files divided by extensionJSCHECKS=true # JS analysis+# Python to run getjswords.py (set to venv python if pip is system-restricted)+# Example: GETJSWORDS_PYTHON="$HOME/Tools/reconftw_venv/bin/python3"+GETJSWORDS_PYTHON=python3+# Optional: venv to activate for getjswords (takes precedence over GETJSWORDS_PYTHON)+# Example: GETJSWORDS_VENV="$HOME/Tools/reconftw_venv"+GETJSWORDS_VENV=FUZZ=true # Web fuzzingIIS_SHORTNAME=trueCMS_SCANNER=true # CMS scanner@@ -322,4 +328,4 @@ red='\033[0;31m'blue='\033[0;34m'green='\033[0;32m'yellow='\033[0;33m'-reset='\033[0m'\ No newline at end of file+reset='\033[0m'