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
Fixes and changelog
six2dezaf7a0a87f22e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 45a08fa..28fe8fe 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [Unreleased]++### Changed+- Replaced metagoofil + exiftool with [exifray](https://github.com/mmarting/exifray) in `metadata()` function (`modules/osint.sh`). Single tool handles both file discovery and metadata extraction, outputting structured JSON (`osint/metadata.json`) plus a human-readable summary (`osint/metadata_results.txt`).++### Removed+- Removed metagoofil from `install.sh` git repos, `config/tool_versions.txt`, and `modules/core.sh` tool checks.+## [v4.1] - 2026-03-06### Addeddiff --git a/config/tool_versions.txt b/config/tool_versions.txtindex 823212e..9a31b46 100644--- a/config/tool_versions.txt+++ b/config/tool_versions.txt@@ -38,11 +38,11 @@ asnmap=v1.1.1dnstake=v0.1.1tlsx=v1.2.2gitdorks_go=v0.1-smap=0.1.12+smap=v0.1.12dsieve=v1.2.0inscope=latestenumerepo=v1.0.0-Web-Cache-Vulnerability-Scanner=2.0.0+Web-Cache-Vulnerability-Scanner=v2.0.0subfinder=v2.12.0hakip2host=latestmantra=v3.1@@ -63,7 +63,7 @@ grpcurl=v1.9.3toxicache=latestfavirecon=v1.0.2second-order=v3.2-TInjA=1.2.0+TInjA=v1.2.0nerva=v1.0.0brutus=v1.1.0julius=v1.2.0@@ -90,6 +90,7 @@ arjun=2.2.7gqlspection=0.2.3postleaksNg=HEADcewler=v1.4.1+fray=v3.4.0# ============================================================# Git repositories (cloned via git clone)@@ -108,7 +109,7 @@ JSA=HEADcloud_enum=0.7ultimate-nmap-parser=HEADgitdorks_go=v0.1-Web-Cache-Vulnerability-Scanner=2.0.0+Web-Cache-Vulnerability-Scanner=v2.0.0regulator=HEADgitleaks=v8.30.0ghleaks=HEAD@@ -121,7 +122,6 @@ misconfig-mapper=v1.15.2Spoofy=v1.0.3msftrecon=HEADScopify=HEAD-metagoofil=v1.4.0EmailHarvester=1.3.2reconftw_ai=HEADgato=1.7diff --git a/install.sh b/install.shindex 789a82c..ced7902 100755--- a/install.sh+++ b/install.sh@@ -224,6 +224,22 @@ check_network() {if [[ $_net_ok == true ]]; thenprintf "%bNetwork OK%b\n" "$bgreen" "$reset"fi++ # Warn about low disk space (installer needs ~5GB free for Go cache, tools, repos)+ local _avail_mb+ _avail_mb=$(df -m "${HOME}" 2>/dev/null | awk 'NR==2{print $4}')+ if [[ -n ${_avail_mb:-} ]] && (( _avail_mb < 5120 )); then+ printf "%b[!] Low disk space: only %s MB free on %s. Installation needs ~5GB. Some tools may fail.%b\n" "$bred" "$_avail_mb" "$HOME" "$reset"+ fi++ # Warn about low memory (Go compilation needs at least 1GB)+ if [[ -f /proc/meminfo ]]; then+ local _mem_total_kb+ _mem_total_kb=$(awk '/^MemTotal:/{print $2}' /proc/meminfo 2>/dev/null || true)+ if [[ -n ${_mem_total_kb:-} ]] && (( _mem_total_kb < 1048576 )); then+ printf "%b[!] Low memory: %s MB total. Go/Rust compilation may fail. Consider adding swap.%b\n" "$yellow" "$((_mem_total_kb / 1024))" "$reset"+ fi+ fi}# Check Bash version@@ -351,6 +367,7 @@ declare -A pipxtools=(["gqlspection"]="doyensec/GQLSpection"["postleaksNg"]="six2dez/postleaksNG"["cewler"]="roys/cewler"+ ["fray"]="dalisecurity/fray")# Declare repositories and their paths@@ -379,7 +396,6 @@ declare -A repos=(["Spoofy"]="MattKeeley/Spoofy"["msftrecon"]="Arcanum-Sec/msftrecon"["Scopify"]="Arcanum-Sec/Scopify"- ["metagoofil"]="opsdisk/metagoofil"["EmailHarvester"]="maldevel/EmailHarvester"["reconftw_ai"]="six2dez/reconftw_ai"["gato"]="praetorian-inc/gato"@@ -406,6 +422,28 @@ function banner() {EOF}+# Clone a GitHub repo with retry + cleanup between attempts.+# Falls back to full clone if --filter=blob:none is unsupported.+clone_repo() {+ local gh_path="$1" dest="$2"+ local url="https://github.com/${gh_path}"+ local n=0 max=3 delay=3+ while true; do+ rm -rf "$dest" 2>/dev/null+ if q_to 180 git clone --filter="blob:none" "$url" "$dest"; then+ return 0+ fi+ # Fallback: try full clone (in case server/git version doesn't support partial clone)+ rm -rf "$dest" 2>/dev/null+ if q_to 180 git clone "$url" "$dest"; then+ return 0+ fi+ n=$((n + 1))+ if ((n >= max)); then return 1; fi+ sleep $((delay * n))+ done+}+# Function to install Go toolsfunction install_tools() {header "Installing Golang tools (${#gotools[@]})"@@ -519,8 +557,10 @@ function install_tools() {fi# Clone the repository (check for .git to detect incomplete clones)if [[ ! -d "${dir}/${repo}/.git" ]]; then+ # Remove leftover directory from a previously failed clone attempt+ [[ -d "${dir}/${repo}" ]] && rm -rf "${dir}/${repo}"msg_run "[$repos_step/${#repos[@]}] $repo (clone)"- retry 3 3 q_to 180 git clone --filter="blob:none" "https://github.com/${repos[$repo]}" "${dir}/${repo}"+ clone_repo "${repos[$repo]}" "${dir}/${repo}"exit_status=$?if [[ $exit_status -ne 0 ]]; thenmsg_err "[$repos_step/$total_repo] $repo clone failed"@@ -867,13 +907,23 @@ function install_golang_version() {export GOPATH="${HOME}/go"export PATH="$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH"- if [[ -n ${profile_shell:-} ]]; then- local profile_path="${HOME}/${profile_shell}"- local marker="# Golang environment variables (reconFTW)"+ # Write Go env to profile files so it's available in login shells.+ # Use ~/.profile (sourced by all login shells including non-interactive bash -lc)+ # rather than ~/.bashrc (which has a non-interactive guard on Debian/Ubuntu).+ local marker="# Golang environment variables (reconFTW)"+ local _go_env_block+ _go_env_block=$(printf '%s\nexport GOROOT=/usr/local/go\nexport GOPATH=$HOME/go\nexport PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH\n' "$marker")++ local _profile_targets=()+ # Always write to ~/.profile (login shell)+ _profile_targets+=("${HOME}/.profile")+ # Also write to the user's detected shell rc if different+ if [[ -n ${profile_shell:-} && "${profile_shell}" != ".profile" ]]; then+ _profile_targets+=("${HOME}/${profile_shell}")+ fi- # Remove ALL previous golang env blocks (old-style and reconFTW-style)- # to prevent duplicates from accumulating across runs- if [[ -f "$profile_path" ]] && grep -q '^# Golang environment variables' "$profile_path" 2>/dev/null; then+ for _ptarget in "${_profile_targets[@]}"; do+ if [[ -f "$_ptarget" ]] && grep -q '^# Golang environment variables' "$_ptarget" 2>/dev/null; thenlocal tmp_profiletmp_profile=$(mktemp)awk '@@ -881,17 +931,10 @@ function install_golang_version() {skip > 0 && /^export (GOROOT|GOPATH|PATH)=/ { skip--; next }skip > 0 { skip = 0 }{ print }- ' "$profile_path" > "$tmp_profile" && mv "$tmp_profile" "$profile_path"+ ' "$_ptarget" > "$tmp_profile" && mv "$tmp_profile" "$_ptarget"fi-- # Append single canonical block- {- printf '\n%s\n' "$marker"- printf 'export GOROOT=/usr/local/go\n'- printf 'export GOPATH=$HOME/go\n'- printf 'export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH\n'- } >>"$profile_path"- fi+ printf '\n%s\n' "$_go_env_block" >>"$_ptarget"+ doneelsemsg_warn "Golang will not be configured according to the user's preferences (install_golang=false in reconftw.cfg)."fi@@ -1042,6 +1085,11 @@ function initial_setup() {if [[ $TOOLS_ONLY == "true" ]]; thenheader "Tools-only mode"with_spinner "Installing/validating Golang" install_golang_version+ # Re-export Go env in current shell (with_spinner runs in background subshell, exports are lost)+ export GOROOT=/usr/local/go+ export GOPATH="${HOME}/go"+ export PATH="$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH"+mkdir -p ${HOME}/.gfmkdir -p "$tools"mkdir -p ${HOME}/.config/notify/@@ -1062,6 +1110,11 @@ function initial_setup() {with_spinner "Installing system packages" install_system_packagescheck_networkwith_spinner "Installing/validating Golang" install_golang_version+ # Re-export Go env in current shell (with_spinner runs in background subshell, exports are lost)+ export GOROOT=/usr/local/go+ export GOPATH="${HOME}/go"+ export PATH="$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH"+mkdir -p ${HOME}/.gfmkdir -p "$tools"mkdir -p ${HOME}/.config/notify/@@ -1072,8 +1125,6 @@ function initial_setup() {q uv tool update-shell# Ensure $HOME/.local/bin is available now even if profile isn't sourcedexport PATH="${HOME}/.local/bin:${PATH}"- # Do not source user shell profiles here to avoid errors like 'PS1: unbound variable'- # in non-interactive shells with 'set -u'. PATH for this process is already updated.install_toolssetup_reconftw_venvdiff --git a/modules/core.sh b/modules/core.shindex dd56a4a..29d5fea 100644--- a/modules/core.sh+++ b/modules/core.sh@@ -406,8 +406,6 @@ function tools_installed() {["Scopify_python"]="${tools}/Scopify/venv/bin/python3"["EmailHarvester"]="${tools}/EmailHarvester/EmailHarvester.py"["EmailHarvester_python"]="${tools}/EmailHarvester/venv/bin/python3"- ["metagoofil"]="${tools}/metagoofil/metagoofil.py"- ["metagoofil_python"]="${tools}/metagoofil/venv/bin/python3"["reconftw_ai"]="${tools}/reconftw_ai/reconftw_ai.py"["reconftw_ai_python"]="${tools}/reconftw_ai/venv/bin/python3"["ghleaks"]="${tools}/ghleaks/ghleaks"@@ -500,6 +498,8 @@ function tools_installed() {["favirecon"]="favirecon"["TInjA"]="TInjA"["second-order"]="second-order"+ ["exifray"]="exifray"+ ["fray"]="fray")# Check for tool filesdiff --git a/modules/modes.sh b/modules/modes.shindex 2f4ff16..6e9c9bc 100644--- a/modules/modes.sh+++ b/modules/modes.sh@@ -606,7 +606,7 @@ function vulns() {return 1fifi- parallel_funcs "${PAR_VULNS_GROUP4_SIZE:-3}" webcache spraying brokenLinks+ parallel_funcs "${PAR_VULNS_GROUP4_SIZE:-3}" webcache spraying brokenLinks fray_checkslocal vulns_g4_rc=$?if ((vulns_g4_rc > 0)); thenif [[ "${CONTINUE_ON_TOOL_ERROR:-true}" == "true" ]]; then@@ -633,6 +633,7 @@ function vulns() {webcachesprayingrun_module_with_axiom_failover brokenLinks+ fray_checksrun_module_with_axiom_failover fuzzparamsrun_module_with_axiom_failover nuclei_dast4xxbypass@@ -829,6 +830,7 @@ function recon() {else_print_section "Web Analysis"+ # Heavy scanning functions run sequentially to avoid overwhelming targetsrun_module_with_axiom_failover waf_checksrun_module_with_axiom_failover nuclei_checkrun_module_with_axiom_failover graphql_scan@@ -838,10 +840,18 @@ function recon() {run_module_with_axiom_failover jscheckssub_js_extractwell_known_pivots- websocket_checks- run_module_with_axiom_failover param_discovery- grpc_reflection- llm_probe++ # Lightweight functions can run in parallel (minimal target load)+ if [[ "${PARALLEL_MODE:-true}" == "true" ]] && declare -f parallel_funcs &>/dev/null; then+ parallel_funcs "${PAR_WEB_ANALYSIS_LIGHT_SIZE:-3}" websocket_checks grpc_reflection llm_probe+ else+ websocket_checks+ grpc_reflection+ llm_probe+ fi++ # param_discovery runs locally only (arjun not available in axiom images)+ param_discoveryui_module_end "Web Analysis" "webs/" "hosts/" "vulns/" "nuclei_output/" "js/" "fuzzing/"progress_module "Web Analysis"@@ -1223,7 +1233,7 @@ function webs_menu() {cms_scannerrun_module_with_axiom_failover iishortnamerun_module_with_axiom_failover urlchecks- run_module_with_axiom_failover param_discovery+ param_discoveryrun_module_with_axiom_failover jscheckssub_js_extractwell_known_pivotsdiff --git a/modules/osint.sh b/modules/osint.shindex 68f8483..09db9ec 100644--- a/modules/osint.sh+++ b/modules/osint.sh@@ -311,37 +311,61 @@ function github_actions_audit() {}function metadata() {- ensure_dirs osint+ ensure_dirs osint .tmp# Check if the function should runif { [[ ! -f "${called_fn_dir}/.${FUNCNAME[0]}" ]] || [[ ${DIFF} == true ]]; } && [[ ${METADATA} == true ]] && [[ ${OSINT} == true ]] && ! [[ ${domain} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; thenstart_func "${FUNCNAME[0]}" "Scanning metadata in public files"- ensure_dirs ".tmp/metagoofil_${domain}"- (- cd "${tools}/metagoofil" || exit 1- if ! run_command "${tools}/metagoofil/venv/bin/python3" "${tools}/metagoofil/metagoofil.py" -d "${domain}" -t pdf,docx,xlsx -l 10 -w -o "${dir}/.tmp/metagoofil_${domain}/" 2>>"${LOGFILE}" >/dev/null; then- log_note "metadata: metagoofil failed; skipping metadata extraction" "${FUNCNAME[0]}" "${LINENO}"+ if command -v exifray &>/dev/null; then+ if ! run_command exifray -d "${domain}" --show-urls \+ --timeout "${EXIFRAY_TIMEOUT:-30}" \+ --max-retries "${EXIFRAY_RETRIES:-2}" \+ -o "${dir}/osint/metadata.json" 2>>"${LOGFILE}"; then+ log_note "metadata: exifray failed" "${FUNCNAME[0]}" "${LINENO}"fi- )- # Check if exiftool is installed before running- if command -v exiftool &>/dev/null; then- if find ".tmp/metagoofil_${domain}" -type f -print -quit 2>/dev/null | grep -q .; then- run_command exiftool -r ".tmp/metagoofil_${domain}" 2>>"${LOGFILE}" \- | tee /dev/null \- | egrep -i "Author|Creator|Email|Producer|Template" \+ # Extract human-readable summary from JSON output+ if [[ -s "${dir}/osint/metadata.json" ]]; then+ jq -r '.findings[] | "\(.category): \(.details.Value) (\(.file))"' \+ "${dir}/osint/metadata.json" 2>/dev/null \| sort -u \| anew -q "osint/metadata_results.txt" || true- else- log_note "metadata: no files downloaded by metagoofil; skipping exif extraction" "${FUNCNAME[0]}" "${LINENO}"+ fi++ # Complement with urlfinder-discovered URLs+ if [[ ${METADATA_URLFINDER:-true} == true ]] && command -v urlfinder &>/dev/null; then+ run_command urlfinder -d "${domain}" -all \+ -o .tmp/metadata_urlfinder_raw.txt 2>>"${LOGFILE}" >/dev/null || true++ if [[ -s ".tmp/metadata_urlfinder_raw.txt" ]]; then+ # Filter for metadata-relevant extensions only+ grep -aiE '\.(pdf|docx?|xlsx?|pptx?|odt|ods|odp|jpe?g|png|gif|tiff?|svg|webp|mp3)([?#].*)?$' \+ .tmp/metadata_urlfinder_raw.txt \+ | sort -u > .tmp/metadata_urlfinder_urls.txt || true++ if [[ -s ".tmp/metadata_urlfinder_urls.txt" ]]; then+ run_command exifray --urls .tmp/metadata_urlfinder_urls.txt \+ --timeout "${EXIFRAY_TIMEOUT:-30}" \+ --max-retries "${EXIFRAY_RETRIES:-2}" \+ -o "${dir}/osint/metadata_urlfinder.json" 2>>"${LOGFILE}" || true++ # Merge findings into main results+ if [[ -s "${dir}/osint/metadata_urlfinder.json" ]]; then+ jq -r '.findings[] | "\(.category): \(.details.Value) (\(.file))"' \+ "${dir}/osint/metadata_urlfinder.json" 2>/dev/null \+ | sort -u \+ | anew -q "osint/metadata_results.txt" || true+ fi+ fi+ fifielse- _print_error "exiftool is not installed. Skipping metadata extraction"- printf "exiftool not installed - metadata extraction skipped\n" >>"${LOGFILE}"+ _print_error "exifray is not installed. Skipping metadata extraction"+ printf "exifray not installed - metadata extraction skipped\n" >>"${LOGFILE}"fi- end_func "Results are saved in ${domain}/osint/metadata_results.txt" "${FUNCNAME[0]}"+ end_func "Results are saved in ${domain}/osint/metadata[.json|_results.txt]" "${FUNCNAME[0]}"elseif [[ ${METADATA} == false ]] || [[ ${OSINT} == false ]]; thenskip_notification "disabled"diff --git a/modules/vulns.sh b/modules/vulns.shindex da590c5..15c199a 100644--- a/modules/vulns.sh+++ b/modules/vulns.sh@@ -3,7 +3,7 @@# reconFTW - Vulnerability scanning module# Contains: xss, ssrf_checks, crlf_checks, lfi, ssti,# sqli, test_ssl, spraying, command_injection, 4xxbypass,-# smuggling, webcache, fuzzparams, nuclei_dast+# smuggling, webcache, fuzzparams, nuclei_dast, fray_checks# This file is sourced by reconftw.sh - do not execute directly[[ -z "${SCRIPTPATH:-}" ]] && {echo "Error: This module must be sourced by reconftw.sh" >&2@@ -986,3 +986,71 @@ function nuclei_dast() {fifi}++function fray_checks() {++ # Create necessary directories+ if ! ensure_dirs .tmp vulns; then return 1; fi++ if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $FRAY_EXTRA == true ]]; then+ if ! command -v fray >/dev/null 2>&1; then+ _print_msg WARN "${FUNCNAME[0]}: fray not found in PATH"+ return 0+ fi+ start_func "${FUNCNAME[0]}" "Fray WAF-aware payload testing"++ ensure_webs_all || true++ if [[ -s "webs/webs_all.txt" ]]; then+ local _targets="webs/webs_all.txt"++ # Apply DEEP_LIMIT gate+ if [[ $DEEP != true ]]; then+ local _count+ _count=$(wc -l < "$_targets" | tr -d ' ')+ if (( _count > DEEP_LIMIT )); then+ head -n "$DEEP_LIMIT" "$_targets" > .tmp/fray_targets.txt+ _targets=".tmp/fray_targets.txt"+ _print_msg INFO "Limiting Fray to ${DEEP_LIMIT} targets (DEEP mode disabled)"+ fi+ fi++ local total_findings=0++ IFS=',' read -ra _fray_categories <<< "$FRAY_CATEGORIES"+ for _fcat in "${_fray_categories[@]}"; do+ _print_msg INFO "Fray testing category: ${_fcat}"++ cat "$_targets" | fray test -c "$_fcat" \+ --max "${FRAY_MAX_PAYLOADS:-20}" \+ -t "${FRAY_TIMEOUT:-10}" \+ -d "${FRAY_DELAY:-0.5}" \+ --json 2>>"$LOGFILE" | grep '^{' > ".tmp/fray_${_fcat}.json" || true++ # Extract targets with bypasses from JSONL output+ if [[ -s ".tmp/fray_${_fcat}.json" ]]; then+ jq -r 'select(.bypassed != null and .bypassed > 0) |+ "\(.target) [bypass_rate:\(.bypass_rate)] \(.bypassed)/\(.total) payloads bypassed WAF"' \+ ".tmp/fray_${_fcat}.json" >> "vulns/fray_${_fcat}.txt" 2>/dev/null || true++ if [[ -s "vulns/fray_${_fcat}.txt" ]]; then+ local _cat_count+ _cat_count=$(wc -l < "vulns/fray_${_fcat}.txt" | tr -d ' ')+ total_findings=$((total_findings + _cat_count))+ append_assets_from_file finding value "vulns/fray_${_fcat}.txt"+ fi+ fi+ done++ end_func "${total_findings} Fray findings saved in vulns/fray_*.txt" "${FUNCNAME[0]}"+ else+ end_func "No websites to scan" "${FUNCNAME[0]}"+ fi+ else+ if [[ $FRAY_EXTRA == false ]]; then+ skip_notification "disabled"+ else+ skip_notification "processed"+ fi+ fi+}diff --git a/modules/web.sh b/modules/web.shindex ebb8939..0b81bec 100644--- a/modules/web.sh+++ b/modules/web.sh@@ -983,8 +983,16 @@ function waf_checks() {# Proceed only if webs_all.txt exists and is non-emptyif [[ -s "webs/webs_all.txt" ]]; thenif [[ $AXIOM != true ]]; then- # Run wafw00f on webs_all.txt- run_command wafw00f -i "webs/webs_all.txt" -o ".tmp/wafs.txt" 2>>"$LOGFILE" >/dev/null+ # Parallelize wafw00f across hosts using interlace for speed+ if command -v interlace >/dev/null 2>&1; then+ mkdir -p .tmp/wafs_parts+ run_command interlace -tL "webs/webs_all.txt" -threads "${INTERLACE_THREADS:-10}" \+ -c "${TIMEOUT_CMD:+$TIMEOUT_CMD ${WAF_PER_HOST_TIMEOUT:-120}} wafw00f _target_ -o .tmp/wafs_parts/_cleantarget_.txt" 2>>"$LOGFILE" >/dev/null+ cat .tmp/wafs_parts/*.txt >.tmp/wafs.txt 2>/dev/null || true+ rm -rf .tmp/wafs_parts+ else+ run_command wafw00f -i "webs/webs_all.txt" -o ".tmp/wafs.txt" 2>>"$LOGFILE" >/dev/null+ fielse# Run axiom-scan with wafw00f module on webs_all.txtrun_command axiom-scan "webs/webs_all.txt" -m wafw00f -o ".tmp/wafs.txt" "$AXIOM_EXTRA_ARGS" 2>>"$LOGFILE" >/dev/null@@ -1077,48 +1085,64 @@ _nuclei_parse_results() {fi}-# Run nuclei scan locally with WAF-aware rate limiting-# Usage: _nuclei_scan_local-_nuclei_scan_local() {- IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"+# Split combined nuclei JSON output into per-severity files for backward compatibility+# Usage: _nuclei_split_by_severity+_nuclei_split_by_severity() {+ if [[ ! -s ".tmp/nuclei_combined_json.txt" ]]; then+ return 0+ fi+ IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"for crit in "${severity_array[@]}"; do- _print_msg INFO "Running: Nuclei Severity: ${crit}"- # Non-WAF at default rate- if [[ -s "$NOWAF_LIST" ]]; then- # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args- run_with_heartbeat "nuclei ${crit} (normal targets)" nuclei \- -l "$NOWAF_LIST" -severity "$crit" -nh -rl "$NUCLEI_RATELIMIT" -silent -retries 2 \- $NUCLEI_EXTRA_ARGS -t "${NUCLEI_TEMPLATES_PATH}" -j -o "nuclei_output/${crit}_json.txt"- fi- # WAF hosts at slower rate- if [[ -s "$WAF_LIST" ]]; then- local slow_rl- slow_rl=$((NUCLEI_RATELIMIT / 3 + 1))- # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args- run_with_heartbeat "nuclei ${crit} (waf targets)" nuclei \- -l "$WAF_LIST" -severity "$crit" -nh -rl "$slow_rl" -silent -retries 2 \- $NUCLEI_EXTRA_ARGS -t "${NUCLEI_TEMPLATES_PATH}" -j -o "nuclei_output/${crit}_waf_json.txt"- [[ -s "nuclei_output/${crit}_waf_json.txt" ]] && cat "nuclei_output/${crit}_waf_json.txt" >>"nuclei_output/${crit}_json.txt"- fi+ jq -c "select(.info.severity == \"${crit}\")" ".tmp/nuclei_combined_json.txt" >"nuclei_output/${crit}_json.txt" 2>/dev/null || true_nuclei_parse_results "$crit"done}-# Run nuclei scan via Axiom distributed fleet+# Run nuclei scan locally with WAF-aware rate limiting (single pass, all severities)+# Usage: _nuclei_scan_local+_nuclei_scan_local() {+ local all_severities="$NUCLEI_SEVERITY"++ _print_msg INFO "Running: Nuclei Severities: ${all_severities}"+ : >".tmp/nuclei_combined_json.txt"++ # Non-WAF at default rate+ if [[ -s "$NOWAF_LIST" ]]; then+ # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args+ run_with_heartbeat "nuclei (normal targets)" nuclei \+ -l "$NOWAF_LIST" -severity "$all_severities" -nh -rl "$NUCLEI_RATELIMIT" -silent -retries 2 \+ $NUCLEI_EXTRA_ARGS -t "${NUCLEI_TEMPLATES_PATH}" -j -o ".tmp/nuclei_combined_json.txt"+ fi+ # WAF hosts at slower rate+ if [[ -s "$WAF_LIST" ]]; then+ local slow_rl+ slow_rl=$((NUCLEI_RATELIMIT / 3 + 1))+ # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args+ run_with_heartbeat "nuclei (waf targets)" nuclei \+ -l "$WAF_LIST" -severity "$all_severities" -nh -rl "$slow_rl" -silent -retries 2 \+ $NUCLEI_EXTRA_ARGS -t "${NUCLEI_TEMPLATES_PATH}" -j -o ".tmp/nuclei_waf_combined_json.txt"+ [[ -s ".tmp/nuclei_waf_combined_json.txt" ]] && cat ".tmp/nuclei_waf_combined_json.txt" >>".tmp/nuclei_combined_json.txt"+ fi++ # Split combined results into per-severity files for backward compatibility+ _nuclei_split_by_severity+}++# Run nuclei scan via Axiom distributed fleet (single pass, all severities)# Usage: _nuclei_scan_axiom_nuclei_scan_axiom() {- IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"+ local all_severities="$NUCLEI_SEVERITY"- for crit in "${severity_array[@]}"; do- _print_msg INFO "Running: Axiom Nuclei Severity: ${crit}. Check results in nuclei_output folder."- # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args- run_with_heartbeat "axiom nuclei ${crit}" axiom-scan .tmp/webs_subs.txt -m nuclei \- --nuclei-templates "$NUCLEI_TEMPLATES_PATH" \- -severity "$crit" -nh -rl "$NUCLEI_RATELIMIT" \- -silent -retries 2 $NUCLEI_EXTRA_ARGS -j -o "nuclei_output/${crit}_json.txt" "$AXIOM_EXTRA_ARGS"- _nuclei_parse_results "$crit"- done+ _print_msg INFO "Running: Axiom Nuclei Severities: ${all_severities}. Check results in nuclei_output folder."+ # shellcheck disable=SC2086 # Intentionally allow user-provided nuclei args+ run_with_heartbeat "axiom nuclei" axiom-scan .tmp/webs_subs.txt -m nuclei \+ --nuclei-templates "$NUCLEI_TEMPLATES_PATH" \+ -severity "$all_severities" -nh -rl "$NUCLEI_RATELIMIT" \+ -silent -retries 2 $NUCLEI_EXTRA_ARGS -j -o ".tmp/nuclei_combined_json.txt" "$AXIOM_EXTRA_ARGS"++ # Split combined results into per-severity files for backward compatibility+ _nuclei_split_by_severity}function nuclei_check() {@@ -1260,9 +1284,19 @@ function param_discovery() {}if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $PARAM_DISCOVERY == true ]]; then+ # Only run in deep mode - arjun is too slow for normal scans+ if [[ $DEEP != true ]]; then+ skip_notification "mode"+ return 0+ fi++ if ! command -v arjun >/dev/null 2>&1; then+ _print_msg WARN "${FUNCNAME[0]}: arjun not found in PATH"+ return 0+ fi+start_func "${FUNCNAME[0]}" "Parameter discovery (arjun)"local input_file="webs/url_extract_nodupes.txt"- local arjun_axiom_ok=truelocal arjun_urls_raw=".tmp/arjun_urls_raw.txt"local arjun_urls_scoped=".tmp/arjun_urls_scoped.txt"local arjun_urls_params=".tmp/arjun_urls_params.txt"@@ -1270,32 +1304,29 @@ function param_discovery() {: >"$arjun_urls_scoped": >"$arjun_urls_params"[[ ! -s $input_file ]] && input_file="webs/webs_all.txt"- if [[ -s $input_file ]]; then- if [[ $AXIOM == true ]]; then- if ! run_command axiom-scan "$input_file" -m arjun -o .tmp/arjun.txt "$AXIOM_EXTRA_ARGS" 2>>"$LOGFILE" >/dev/null; then- arjun_axiom_ok=false- fi- _parse_arjun_text_output .tmp/arjun.txt-- if [[ "$arjun_axiom_ok" != true ]] || [[ ! -s .tmp/arjun.txt ]]; then- _print_msg WARN "${FUNCNAME[0]}: axiom arjun failed or returned no output; falling back to local arjun"- log_note "${FUNCNAME[0]}: axiom arjun failed/no output; local fallback" "${FUNCNAME[0]}" "${LINENO}"- if command -v arjun >/dev/null 2>&1; then- run_command arjun -i "$input_file" -t "$ARJUN_THREADS" -oT .tmp/arjun.txt 2>>"$LOGFILE" >/dev/null || true- _parse_arjun_text_output .tmp/arjun.txt- else- _print_msg WARN "${FUNCNAME[0]}: arjun not found in PATH for local fallback"- fi- fi- else- if ! command -v arjun >/dev/null 2>&1; then- _print_msg WARN "${FUNCNAME[0]}: arjun not found in PATH"- return 0- fi- run_command arjun -i "$input_file" -t "$ARJUN_THREADS" -oT .tmp/arjun.txt 2>>"$LOGFILE" >/dev/null || true- _parse_arjun_text_output .tmp/arjun.txt+ # Limit input URLs to avoid multi-hour runs+ local arjun_input="$input_file"+ if [[ -s "$input_file" ]] && [[ "${PARAM_MAX_URLS:-0}" -gt 0 ]]; then+ local url_count+ url_count=$(wc -l <"$input_file" | tr -d ' ')+ if [[ "$url_count" -gt "${PARAM_MAX_URLS}" ]]; then+ _print_msg INFO "${FUNCNAME[0]}: limiting ${url_count} URLs to ${PARAM_MAX_URLS} (PARAM_MAX_URLS)"+ head -n "${PARAM_MAX_URLS}" "$input_file" >".tmp/arjun_input_limited.txt"+ arjun_input=".tmp/arjun_input_limited.txt"fi+ fi++ # Build timeout prefix for arjun commands+ local arjun_timeout_cmd=""+ if [[ -n "${TIMEOUT_CMD:-}" ]] && [[ "${PARAM_DISCOVERY_TIMEOUT:-0}" -gt 0 ]]; then+ arjun_timeout_cmd="$TIMEOUT_CMD ${PARAM_DISCOVERY_TIMEOUT}m"+ fi++ if [[ -s "$arjun_input" ]]; then+ # shellcheck disable=SC2086 # Intentional word splitting for timeout command+ run_command $arjun_timeout_cmd arjun -i "$arjun_input" -t "$ARJUN_THREADS" -oT .tmp/arjun.txt 2>>"$LOGFILE" >/dev/null || true+ _parse_arjun_text_output .tmp/arjun.txt# Feed useful parameterized URLs discovered by arjun back into the main# URL pipelines so gf/vuln modules can consume them.diff --git a/reconftw.cfg b/reconftw.cfgindex 057c41b..f99005c 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -115,6 +115,7 @@ GOOGLE_DORKS=trueGITHUB_DORKS=trueGITHUB_REPOS=trueMETADATA=true # Fetch metadata from indexed office documents+METADATA_URLFINDER=true # Complement exifray with urlfinder-discovered URLsEMAILS=true # Fetch emails from differents sitesDOMAIN_INFO=true # whois infoIP_INFO=true # Reverse IP search, geolocation and whois@@ -286,6 +287,11 @@ FUZZPARAMS=true # Fuzz parameters valuesNUCLEI_DAST=true # Run dedicated nuclei -dast module (forced on when VULNS_GENERAL=true, e.g. -a) over webs/urls/gf candidatesNUCLEI_DAST_TEMPLATE_PATH="${NUCLEI_TEMPLATES_PATH}/dast" # DAST templates pathNUCLEI_DAST_EXTRA_ARGS="" # Optional extra args only for nuclei_dast+FRAY_EXTRA=true # WAF-aware payload testing for categories not covered by other tools+FRAY_CATEGORIES="ai_prompt_injection,prototype_pollution,api_security,modern_bypasses" # Fray payload categories to test (only categories not covered by existing tools)+FRAY_MAX_PAYLOADS=20 # Max payloads per category per target+FRAY_TIMEOUT=10 # Fray request timeout in seconds+FRAY_DELAY=0.5 # Delay between Fray requests in seconds# ParallelizationPARALLEL_MODE=true # Run independent functions in parallel (faster, uses more resources). Disable with --no-parallel or set false.@@ -307,6 +313,7 @@ PAR_SUB_DEP_ACTIVE_GROUP_SIZE=3PAR_SUB_POST_ACTIVE_GROUP_SIZE=2PAR_SUB_BRUTE_GROUP_SIZE=2 # Legacy/no-op for brute phase (now forced sequential); kept for backward compatibility.PAR_WEB_DETECT_GROUP_SIZE=3+PAR_WEB_ANALYSIS_LIGHT_SIZE=3PAR_VULNS_GROUP1_SIZE=4PAR_VULNS_GROUP2_SIZE=4PAR_VULNS_GROUP4_SIZE=3@@ -367,6 +374,9 @@ PERMUTATIONS_LIMIT=2147483648 # Bytes, default is 2 GB (prevents accidental diDNS_BRUTE_TIMEOUT=0 # timeout/gtimeout duration for DNS bruteforce (0 disables hard-timeout, e.g. 4h)DNS_RESOLVE_TIMEOUT=0 # timeout/gtimeout duration for DNS resolve (0 disables hard-timeout, e.g. 6h)DNS_HEARTBEAT_INTERVAL_SECONDS=20 # Progress heartbeat interval for long DNS jobs+WAF_PER_HOST_TIMEOUT=120 # Seconds: per-host timeout for wafw00f via interlace (0 = no timeout)+EXIFRAY_TIMEOUT=30 # Seconds: HTTP timeout per request for exifray+EXIFRAY_RETRIES=2 # Max retries on timeout for exifray# listsfuzz_wordlist=${WORDLISTS_DIR}/fuzz_wordlist.txt@@ -423,7 +433,9 @@ LLM_PROBE_AUGUSTUS=false # Include augustus generator config in julius outputIPV6_SCAN=true # Attempt IPv6 discovery/portscan where addresses exist# Wordlists / threads for new modules-ARJUN_THREADS=10+ARJUN_THREADS=$((AVAILABLE_CORES * 5))+PARAM_DISCOVERY_TIMEOUT=120 # Minutes: global timeout for arjun (0 = disabled)+PARAM_MAX_URLS=500 # Max URLs to feed arjun (0 = unlimited, picks unique endpoints first)# Data & AutomationASSET_STORE=true # Append assets/findings to assets.jsonldiff --git a/tests/unit/test_new_tool_integrations.bats b/tests/unit/test_new_tool_integrations.batsindex 3161020..5565d75 100644--- a/tests/unit/test_new_tool_integrations.bats+++ b/tests/unit/test_new_tool_integrations.bats@@ -1077,87 +1077,26 @@ SHgrep -q "openai-compatible" "webs/llm_probe.txt"}-@test "param_discovery uses axiom arjun when AXIOM=true" {+@test "param_discovery skips in non-deep mode" {mkdir -p webs .tmpprintf '%s\n' 'https://target.example.com/path' > webs/url_extract_nodupes.txt- cat > "$MOCK_BIN/axiom-scan" <<'SH'-#!/usr/bin/env bash-outfile=""-while [[ $# -gt 0 ]]; do- case "$1" in- -o)- outfile="$2"- shift 2- ;;- *)- shift- ;;- esac-done-printf '%s\n' 'https://target.example.com/path?a=1&b=2' > "$outfile"-printf '%s\n' ' Scanning 0/1: https://target.example.com/path'-printf '%s\n' ' Parameters found: a, b'-exit 0-SH- chmod +x "$MOCK_BIN/axiom-scan"-- export AXIOM=true- export AXIOM_EXTRA_ARGS=""- export PARAM_DISCOVERY=true- export ARJUN_THREADS=5-- run param_discovery- [ "$status" -eq 0 ]- [ -s "webs/params_discovered.txt" ]- grep -q "URL: https://target.example.com/path?a=1&b=2" "webs/params_discovered.txt"- grep -q "PARAM: a" "webs/params_discovered.txt"- grep -q "PARAM: b" "webs/params_discovered.txt"-}--@test "param_discovery falls back to local arjun when axiom arjun fails" {- mkdir -p webs .tmp- printf '%s\n' 'https://target.example.com/path' > webs/url_extract_nodupes.txt-- cat > "$MOCK_BIN/axiom-scan" <<'SH'-#!/usr/bin/env bash-exit 1-SH- chmod +x "$MOCK_BIN/axiom-scan"-cat > "$MOCK_BIN/arjun" <<'SH'#!/usr/bin/env bash-outfile=""-while [[ $# -gt 0 ]]; do- case "$1" in- -oT)- outfile="$2"- shift 2- ;;- *)- shift- ;;- esac-done-printf '%s\n' 'https://target.example.com/path?x=1' > "$outfile"exit 0SHchmod +x "$MOCK_BIN/arjun"- export AXIOM=true- export AXIOM_EXTRA_ARGS=""+ export DEEP=falseexport PARAM_DISCOVERY=trueexport ARJUN_THREADS=5run param_discovery[ "$status" -eq 0 ]- [[ "$output" == *"falling back to local arjun"* ]]- [ -s "webs/params_discovered.txt" ]- grep -q "URL: https://target.example.com/path?x=1" "webs/params_discovered.txt"- grep -q "PARAM: x" "webs/params_discovered.txt"+ [[ "$output" == *"SKIP"* ]]}-@test "param_discovery local mode uses arjun text output" {+@test "param_discovery runs in deep mode with arjun text output" {mkdir -p webs .tmpprintf '%s\n' 'https://target.example.com/path' > webs/url_extract_nodupes.txt@@ -1180,6 +1119,7 @@ exit 0SHchmod +x "$MOCK_BIN/arjun"+ export DEEP=trueexport AXIOM=falseexport PARAM_DISCOVERY=trueexport ARJUN_THREADS=5