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 apis, swagger and anlytics
six2dez7f573100d8ea
diff --git a/modules/osint.sh b/modules/osint.shindex f700b50..b1c8598 100644--- a/modules/osint.sh+++ b/modules/osint.sh@@ -194,8 +194,13 @@ function apileaks() {start_func "${FUNCNAME[0]}" "Scanning for leaks in public API directories"- # Run porch-pirate and handle errors- porch-pirate -s "$domain" -l 25 --dump 2>>"$LOGFILE" >"${dir}/osint/postman_leaks.txt"+ # Run porch-pirate (full dump); fallback to light mode if dump fails+ if ! porch-pirate -s "$domain" -l 25 --dump 2>>"$LOGFILE" >"${dir}/osint/postman_leaks.txt"; then+ log_note "porch-pirate --dump failed; retrying without --dump" "${FUNCNAME[0]}" "${LINENO}"+ if ! porch-pirate -s "$domain" -l 25 2>>"$LOGFILE" >"${dir}/osint/postman_leaks.txt"; then+ log_note "porch-pirate failed even without --dump" "${FUNCNAME[0]}" "${LINENO}"+ fi+ fi# Change directory to SwaggerSpyif ! pushd "${tools}/SwaggerSpy" >/dev/null; then@@ -205,7 +210,8 @@ function apileaks() {# Run swaggerspy.py and handle errorslocal swag_cmd=("${tools}/SwaggerSpy/venv/bin/python3" "swaggerspy.py" "$domain")- [[ -n ${TIMEOUT_CMD:-} ]] && swag_cmd=("$TIMEOUT_CMD" 2m "${swag_cmd[@]}")+ local swag_timeout="${SWAGGERSPY_TIMEOUT:-5m}"+ [[ -n ${TIMEOUT_CMD:-} ]] && swag_cmd=("$TIMEOUT_CMD" "$swag_timeout" "${swag_cmd[@]}")local swagger_rc=0{"${swag_cmd[@]}" 2>>"$LOGFILE" | grep -i "[*]\|URL" >"${dir}/osint/swagger_leaks.txt"diff --git a/modules/subdomains.sh b/modules/subdomains.shindex 119dc9b..831448e 100644--- a/modules/subdomains.sh+++ b/modules/subdomains.sh@@ -1085,9 +1085,15 @@ function sub_analytics() {start_subfunc "${FUNCNAME[0]}" "Running: Analytics Subdomain Enumeration"if [[ -s ".tmp/probed_tmp_scrap.txt" ]]; then- # Run analyticsrelationships and check for errors (tool may panic on empty input)- if ! analyticsrelationships -ch <.tmp/probed_tmp_scrap.txt >>.tmp/analytics_subs_tmp.txt 2>>"$LOGFILE"; then- printf "%b[!] analyticsrelationships failed (may need update: go install github.com/Josue87/analyticsrelationships@latest)%b\n" "$yellow" "$reset"+ # Run analyticsrelationships with timeout; tool may panic on builtwith errors+ if [[ -n ${TIMEOUT_CMD:-} ]]; then+ if ! "$TIMEOUT_CMD" 2m analyticsrelationships -ch <.tmp/probed_tmp_scrap.txt >>.tmp/analytics_subs_tmp.txt 2>>"$LOGFILE"; then+ log_note "analyticsrelationships failed (builtwith error or panic); skipping" "${FUNCNAME[0]}" "${LINENO}"+ fi+ else+ if ! analyticsrelationships -ch <.tmp/probed_tmp_scrap.txt >>.tmp/analytics_subs_tmp.txt 2>>"$LOGFILE"; then+ log_note "analyticsrelationships failed (builtwith error or panic); skipping" "${FUNCNAME[0]}" "${LINENO}"+ fifiif [[ -s ".tmp/analytics_subs_tmp.txt" ]]; then