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
Removed legacy options
six2dezadb9a11fc556
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d45deb8..5730fcb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -116,8 +116,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- `gato` as optional GitHub Actions audit module (`github_actions_audit`, output `osint/github_actions_audit.[json|txt]`).- `julius` as optional LLM endpoint probing module (`llm_probe`, output `webs/llm_probe.[jsonl|txt]`).- `TInjA` as the default `ssti` engine (`SSTI_ENGINE=TInjA`, with legacy fallback).- - `second-order` as default `brokenLinks` engine (`BROKENLINKS_ENGINE=second-order`, with legacy fallback).- - `ghleaks` in `github_leaks` for GitHub-wide secret search across all public repositories (combines GitHub Code Search API with gitleaks detection rules). Configurable via `GITHUB_LEAKS`, `GHLEAKS_THREADS`, and `--exhaustive` mode in DEEP.+- `second-order` as default `brokenLinks` engine (`BROKENLINKS_ENGINE=second-order`, with legacy fallback).+- `ghleaks` in `github_leaks` for GitHub-wide secret search across all public repositories (combines GitHub Code Search API with gitleaks detection rules). Configurable via `GITHUB_LEAKS`, `GHLEAKS_THREADS`, and `--exhaustive` mode in DEEP.++### Changed+- `PERMUTATIONS_ENGINE` is now treated as deprecated/ignored legacy config; gotator is always used for permutations.+- Removed obsolete/no-op knobs from public config examples and templates: `NUCLEI_FLAGS`, `NUCLEI_FLAGS_JS`, `BRUTESPRAY_THREADS`, `METAFINDER_LIMIT`, `RESOLVE_DOMAINS_THREADS`, `INTRUSIVE`, `FARADAY_SERVER`, `FARADAY_USER`, `FARADAY_PASS`.+- Removed no-op legacy overrides from lightweight profile examples (`BROKENLINKS_ENGINE`/`SSTI_ENGINE` when module is disabled).**Progress and UX**- Progress/ETA functions (`progress_init()`, `progress_step()`) integrated in recon flows.diff --git a/README.md b/README.mdindex 592bfbd..ff44b57 100644--- a/README.md+++ b/README.md@@ -178,9 +178,9 @@ reconFTW is packed with features to make reconnaissance thorough and efficient.- **SSRF**: Tests for server-side request forgery ([interactsh](https://github.com/projectdiscovery/interactsh), parameter values with [ffuf](https://github.com/ffuf/ffuf), and optional alternate protocol payloads).- **CRLF**: Checks for CRLF injection vulnerabilities ([crlfuzz](https://github.com/dwisiswant0/crlfuzz)).- **LFI**: Tests for local file inclusion via fuzzing ([ffuf](https://github.com/ffuf/ffuf)).-- **SSTI**: Detects server-side template injection ([TInjA](https://github.com/Hackmanit/TInjA), with optional legacy ffuf mode if explicitly selected).+- **SSTI**: Detects server-side template injection ([TInjA](https://github.com/Hackmanit/TInjA)).- **SQLi**: Tests for SQL injection ([SQLMap](https://github.com/sqlmapproject/sqlmap) and [ghauri](https://github.com/r0oth3x49/ghauri)).-- **Broken Links**: Identifies broken links and external references likely to be takeover-prone ([second-order](https://github.com/mhmdiaa/second-order), with legacy katana mode available).+- **Broken Links**: Identifies broken links and external references likely to be takeover-prone ([second-order](https://github.com/mhmdiaa/second-order)).- **Command Injection**: Tests for command injection vulnerabilities ([commix](https://github.com/commixproject/commix)).- **HTTP Request Smuggling**: Checks for request smuggling vulnerabilities ([smugglex](https://github.com/hahwul/smugglex)).- **Web Cache**: Identifies web cache vulnerabilities ([Web-Cache-Vulnerability-Scanner](https://github.com/Hackmanit/Web-Cache-Vulnerability-Scanner) and [toxicache](https://github.com/xhzeem/toxicache)).@@ -556,7 +556,6 @@ API_LEAKS=true # Check for API leaksAPI_LEAKS_POSTLEAKS=true # Enhance API leaks with postleaksNgTHIRD_PARTIES=true # Check for 3rd parties misconfigsSPOOF=true # Check spoofable domains-METAFINDER_LIMIT=20 # Max 250MAIL_HYGIENE=true # Check DMARC/SPF recordsCLOUD_ENUM=true # Enumerate cloud storage across providers with cloud_enumGITHUB_LEAKS=true # Search for leaked secrets across GitHub with ghleaks@@ -579,7 +578,6 @@ SUBSCRAPING=true # Subdomains extraction from passive URLs and live web metadataSUBPERMUTE=true # DNS permutationsSUBIAPERMUTE=true # Permutations by AI analysisSUBREGEXPERMUTE=true # Permutations by regex analysis-PERMUTATIONS_ENGINE=gotator # Permutation engine (gotator is the benchmark winner)GOTATOR_FLAGS=" -depth 1 -numbers 3 -mindup -adv -md" # Flags for gotatorPERMUTATIONS_WORDLIST_MODE=auto # auto|full|short (auto: short if subs > threshold, full if DEEP)PERMUTATIONS_SHORT_THRESHOLD=100 # Use short wordlist when subdomain count exceeds this@@ -627,8 +625,6 @@ NUCLEI_TEMPLATES_PATH="$HOME/nuclei-templates" # Set nuclei templates pathNUCLEI_SEVERITY="info,low,medium,high,critical" # Set templates criticityNUCLEI_EXTRA_ARGS="" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"#NUCLEI_EXTRA_ARGS="-etags openssh,ssl -eid node-express-dev-env,keycloak-xss,CVE-2023-24044,CVE-2021-20323,header-sql,header-reflection" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"-NUCLEI_FLAGS="-silent -retries 2" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"-NUCLEI_FLAGS_JS="-silent -tags exposure,token -severity info,low,medium,high,critical" # Additional nuclei extra flags for js secretsNUCLEI_DAST=true # Run additional nuclei -dast module over webs/urls/gf candidates (forced on when VULNS_GENERAL=true, e.g. -a)URL_CHECK=true # Enable or disable URL collectionURL_CHECK_PASSIVE=true # Search for urls, passive methods from Archive, OTX, CommonCrawl, etc@@ -645,7 +641,7 @@ CMS_SCANNER=true # CMS scannerWORDLIST=true # Wordlist generationROBOTSWORDLIST=true # Check historic disallow entries on waybackMachinePASSWORD_DICT=true # Generate password dictionary-PASSWORD_DICT_ENGINE=cewl # cewl|pydictor+PASSWORD_DICT_ENGINE=cewler # cewler|pydictorPASSWORD_MIN_LENGTH=5 # Min password lengthPASSWORD_MAX_LENGTH=14 # Max password lengthKATANA_HEADLESS_PROFILE=off # off|smart|full@@ -659,12 +655,12 @@ SSRF_CHECKS=true # SSRF checksCRLF_CHECKS=true # CRLF checksLFI=true # LFI by fuzzingSSTI=true # SSTI by fuzzing-SSTI_ENGINE="TInjA" # SSTI engine: TInjA|legacy+SSTI_ENGINE="TInjA" # SSTI engineSQLI=true # Check SQLISQLMAP=true # Check SQLI with sqlmapGHAURI=false # Check SQLI with ghauriBROKENLINKS=true # Check for brokenlinks-BROKENLINKS_ENGINE="second-order" # Broken links engine: second-order|legacy+BROKENLINKS_ENGINE="second-order" # Broken links engineSPRAY=true # Performs password sprayingSPRAY_ENGINE="brutespray" # brutespray|brutusSPRAY_BRUTUS_ONLY_DEEP=true # Run brutus only in DEEP mode unless disabled@@ -702,7 +698,6 @@ FFUF_THREADS=$((AVAILABLE_CORES * 10))HTTPX_THREADS=$((AVAILABLE_CORES * 12))HTTPX_UNCOMMONPORTS_THREADS=$((AVAILABLE_CORES * 25))KATANA_THREADS=$((AVAILABLE_CORES * 5))-BRUTESPRAY_THREADS=$((AVAILABLE_CORES * 5))BRUTESPRAY_CONCURRENCE=$((AVAILABLE_CORES * 2))DNSTAKE_THREADS=$((AVAILABLE_CORES * 25))DALFOX_THREADS=$((AVAILABLE_CORES * 50))@@ -713,7 +708,6 @@ PUREDNS_WILDCARDTEST_LIMIT=30PUREDNS_WILDCARDBATCH_LIMIT=1500000DNSX_THREADS=25 # Threads for dnsx when behind NAT (safe for home routers)DNSX_RATE_LIMIT=100 # QPS for dnsx-RESOLVE_DOMAINS_THREADS=150DNSVALIDATOR_THREADS=200INTERLACE_THREADS=10TLSX_THREADS=1000@@ -761,9 +755,6 @@ AXIOM_EXTRA_ARGS="" # Leave empty if you don't want to add extra arguments# Faraday-ServerFARADAY=false # Enable or disable Faraday integration-FARADAY_SERVER="http://localhost:5985" # Faraday server address-FARADAY_USER="faraday" # Faraday user-FARADAY_PASS="FARADAY_PASSWORD" # Faraday passwordFARADAY_WORKSPACE="reconftw" # Faraday workspace# AI@@ -804,9 +795,6 @@ HOTLIST_TOP=50 # Number of top risky assets to highlightRESOLVER_IQ=false # Prefer fast/healthy resolvers (experimental)PERF_PROFILE="balanced" # low|balanced|max-# Intrusive controls (keep false by default)-INTRUSIVE=false # Enable intrusive cloud write/CORS tests (dangerous)-# Estimated durations for skipped heavy modules (seconds)TIME_EST_NUCLEI=600TIME_EST_FUZZ=900@@ -987,7 +975,7 @@ reconFTW integrates with [Ax](https://github.com/attacksurge/ax) for distributedreconFTW integrates with [Faraday](https://faradaysec.com/) for web-based reporting and vulnerability management.-- **Setup**: Install Faraday, authenticate via `faraday-cli`, and configure the workspace in `reconftw.cfg` (`FARADAY_SERVER`, `FARADAY_USER`, `FARADAY_PASS`, `FARADAY_WORKSPACE`).+- **Setup**: Install Faraday, authenticate via `faraday-cli`, and configure the workspace in `reconftw.cfg` (`FARADAY_WORKSPACE`).- **Usage**: Enable with `FARADAY=true` in `reconftw.cfg`.---diff --git a/Terraform/files/reconftw.cfg b/Terraform/files/reconftw.cfgindex f7c7aad..c1c8d01 100644--- a/Terraform/files/reconftw.cfg+++ b/Terraform/files/reconftw.cfg@@ -60,7 +60,6 @@ EMAILS=true # Fetch emails from differents sitesDOMAIN_INFO=true # whois infoIP_INFO=true # Reverse IP search, geolocation and whoisAPI_LEAKS=true # Check for postman leaks-METAFINDER_LIMIT=20 # Max 250# SubdomainsSUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module@@ -73,7 +72,6 @@ SUBBRUTE=true # DNS bruteforcingSUBSCRAPING=true # Subdomains extraction from web crawlingSUBPERMUTE=true # DNS permutationsSUBREGEXPERMUTE=true # Permutations by regex analysis-PERMUTATIONS_ENGINE=gotator # Permutation engine (gotator is the benchmark winner)GOTATOR_FLAGS=" -depth 1 -numbers 3 -mindup -adv -md" # Flags for gotatorPERMUTATIONS_WORDLIST_MODE=auto # auto|full|short (auto: short if subs > threshold, full if DEEP)PERMUTATIONS_SHORT_THRESHOLD=100 # Use short wordlist when subdomain count exceeds this@@ -111,8 +109,6 @@ WAF_DETECTION=true # Detect WAFsNUCLEICHECK=true # Enable or disable nucleiNUCLEI_TEMPLATES_PATH="$HOME/nuclei-templates" # Set nuclei templates pathNUCLEI_SEVERITY="info,low,medium,high,critical" # Set templates criticity-NUCLEI_FLAGS=" -silent -t ${NUCLEI_TEMPLATES_PATH}/ -retries 2" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"-NUCLEI_FLAGS_JS=" -silent -tags exposure,token -severity info,low,medium,high,critical" # Additional nuclei extra flags for js secretsURL_CHECK=true # Enable or disable URL collectionURL_CHECK_PASSIVE=true # Search for urls, passive methods from Archive, OTX, CommonCrawl, etcURL_CHECK_ACTIVE=true # Search for urls by crawling the websites@@ -170,7 +166,6 @@ FFUF_THREADS=40HTTPX_THREADS=50HTTPX_UNCOMMONPORTS_THREADS=100KATANA_THREADS=20-BRUTESPRAY_THREADS=20BRUTESPRAY_CONCURRENCE=10DNSTAKE_THREADS=100DALFOX_THREADS=200@@ -182,7 +177,6 @@ PUREDNS_WILDCARDBATCH_LIMIT=1500000DNSX_THREADS=25 # Threads for dnsx when behind NAT (safe for home routers)DNSX_RATE_LIMIT=100 # QPS for dnsxGOWITNESS_THREADS=20-RESOLVE_DOMAINS_THREADS=150PPFUZZ_THREADS=30DNSVALIDATOR_THREADS=200INTERLACE_THREADS=10diff --git a/config/reconftw_quick.cfg b/config/reconftw_quick.cfgindex 089e521..3a0f3ed 100644--- a/config/reconftw_quick.cfg+++ b/config/reconftw_quick.cfg@@ -58,8 +58,6 @@ BYPASSER4XX=falseFUZZPARAMS=falseNUCLEI_DAST=falseWEBCACHE_TOXICACHE=false-BROKENLINKS_ENGINE="legacy"-SSTI_ENGINE="TInjA"# Disable heavy extrasGRAPHQL_CHECK=falsediff --git a/config/reconftw_stealth.cfg b/config/reconftw_stealth.cfgindex c4d43ba..9971075 100644--- a/config/reconftw_stealth.cfg+++ b/config/reconftw_stealth.cfg@@ -92,8 +92,6 @@ BYPASSER4XX=falseFUZZPARAMS=falseNUCLEI_DAST=falseWEBCACHE_TOXICACHE=false-BROKENLINKS_ENGINE="legacy"-SSTI_ENGINE="TInjA"# Nuclei: only safe templatesNUCLEICHECK=truediff --git a/modules/utils.sh b/modules/utils.shindex 6c56739..c5b417b 100644--- a/modules/utils.sh+++ b/modules/utils.sh@@ -107,11 +107,17 @@ function validate_config() {warnings=$((warnings + 1))fi- # Validate enum-like config knobs (warn-only; runtime uses safe defaults)+ # Legacy/no-op config knobs (warn-only; runtime uses safe defaults)if [[ -n "${PERMUTATIONS_ENGINE:-}" && "${PERMUTATIONS_ENGINE}" != "gotator" ]]; then- print_warnf "PERMUTATIONS_ENGINE now only supports 'gotator' (got '%s')" "$PERMUTATIONS_ENGINE"+ print_warnf "PERMUTATIONS_ENGINE is deprecated/ignored (got '%s'); gotator is always used" "$PERMUTATIONS_ENGINE"warnings=$((warnings + 1))fi+ for deprecated_noop in NUCLEI_FLAGS NUCLEI_FLAGS_JS BRUTESPRAY_THREADS METAFINDER_LIMIT RESOLVE_DOMAINS_THREADS INTRUSIVE FARADAY_SERVER FARADAY_USER FARADAY_PASS; do+ if [[ -n "${!deprecated_noop:-}" ]]; then+ print_warnf "%s is deprecated/removed; set it in config has no effect anymore" "$deprecated_noop"+ warnings=$((warnings + 1))+ fi+ doneif [[ -n "${PERMUTATIONS_WORDLIST_MODE:-}" ]]; thencase "${PERMUTATIONS_WORDLIST_MODE}" inauto|full|short) : ;;diff --git a/reconftw.cfg b/reconftw.cfgindex 000689f..11e0ff7 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -121,16 +121,15 @@ POSTLEAKS_INCLUDE="" # Optional include filter for postleaksNg URL resultsPOSTLEAKS_EXCLUDE="" # Optional exclude filter for postleaksNg URL resultsTHIRD_PARTIES=true # Check for 3rd parties misconfigsSPOOF=true # Check spoofable domains-METAFINDER_LIMIT=20 # Max 250MAIL_HYGIENE=true # Check DMARC/SPF recordsCLOUD_ENUM=true # Enumerate cloud storage across providers with cloud_enumGITHUB_LEAKS=true # Search for leaked secrets across all of GitHub with ghleaksGHLEAKS_THREADS=5 # Concurrent download threads for ghleaks-SECRETS_ENGINE="gitleaks" # gitleaks|titus|noseyparker|hybrid-SECRETS_SCAN_GIT_HISTORY=false # Include git history scans when supported by selected secrets engine+SECRETS_ENGINE="hybrid" # gitleaks|titus|noseyparker|hybrid+SECRETS_SCAN_GIT_HISTORY=true # Include git history scans when supported by selected secrets engineSECRETS_VALIDATE=false # Validate secrets against provider APIs when supported (currently titus)-GITHUB_ACTIONS_AUDIT=false # Audit GitHub Actions artifacts/workflows with gato-GATO_INCLUDE_ALL_ARTIFACT_SECRETS=false # Include noisy artifact secret matches in gato results+GITHUB_ACTIONS_AUDIT=true # Audit GitHub Actions artifacts/workflows with gato+GATO_INCLUDE_ALL_ARTIFACT_SECRETS=true # Include noisy artifact secret matches in gato results# SubdomainsSUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module@@ -148,7 +147,6 @@ SUBSCRAPING=true # Subdomains extraction from web crawlingSUBPERMUTE=true # DNS permutationsSUBIAPERMUTE=true # Permutations by AI analysisSUBREGEXPERMUTE=true # Permutations by regex analysis-PERMUTATIONS_ENGINE=gotator # Permutation engine (gotator is the benchmark winner)GOTATOR_FLAGS=" -depth 1 -numbers 3 -mindup -adv -md" # Flags for gotatorPERMUTATIONS_WORDLIST_MODE=auto # auto|full|short (auto: short if subs > threshold, full if DEEP)PERMUTATIONS_SHORT_THRESHOLD=100 # Use short wordlist when subdomain count exceeds this@@ -200,8 +198,6 @@ NUCLEI_TEMPLATES_PATH="$HOME/nuclei-templates" # Set nuclei templates pathNUCLEI_SEVERITY="info,low,medium,high,critical" # Set templates criticityNUCLEI_EXTRA_ARGS="" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"#NUCLEI_EXTRA_ARGS="-etags openssh,ssl -eid node-express-dev-env,keycloak-xss,CVE-2023-24044,CVE-2021-20323,header-sql,header-reflection" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"-NUCLEI_FLAGS="-silent -retries 2" # Additional nuclei extra flags, don't set the severity here but the exclusions like " -etags openssh"-NUCLEI_FLAGS_JS="-silent -tags exposure,token -severity info,low,medium,high,critical" # Additional nuclei extra flags for js secretsURL_CHECK=true # Enable or disable URL collectionURL_CHECK_PASSIVE=true # Search for urls, passive methods from Archive, OTX, CommonCrawl, etcURL_CHECK_ACTIVE=true # Search for urls by crawling the websites@@ -323,7 +319,6 @@ FFUF_THREADS=$((AVAILABLE_CORES * 10))HTTPX_THREADS=$((AVAILABLE_CORES * 12))HTTPX_UNCOMMONPORTS_THREADS=$((AVAILABLE_CORES * 25))KATANA_THREADS=$((AVAILABLE_CORES * 5))-BRUTESPRAY_THREADS=$((AVAILABLE_CORES * 5))BRUTESPRAY_CONCURRENCE=$((AVAILABLE_CORES * 2))DNSTAKE_THREADS=$((AVAILABLE_CORES * 25))DALFOX_THREADS=$((AVAILABLE_CORES * 50))@@ -334,7 +329,6 @@ PUREDNS_WILDCARDTEST_LIMIT=30PUREDNS_WILDCARDBATCH_LIMIT=1500000DNSX_THREADS=25 # Threads for dnsx when behind NAT (safe for home routers)DNSX_RATE_LIMIT=100 # QPS for dnsx-RESOLVE_DOMAINS_THREADS=150DNSVALIDATOR_THREADS=200INTERLACE_THREADS=10TLSX_THREADS=1000@@ -382,9 +376,6 @@ AXIOM_EXTRA_ARGS="" # Leave empty if you don't want to add extra arguments# Faraday-ServerFARADAY=false # Enable or disable Faraday integration-FARADAY_SERVER="http://localhost:5985" # Faraday server address-FARADAY_USER="${FARADAY_USER:-faraday}" # Faraday user (set via env var or secrets.cfg)-FARADAY_PASS="${FARADAY_PASS:-}" # Faraday password (set via env var or secrets.cfg, never hardcode)FARADAY_WORKSPACE="reconftw" # Faraday workspace# AI@@ -424,9 +415,6 @@ HOTLIST_TOP=50 # Number of top risky assets to highlight# PerformanceRESOLVER_IQ=false # Prefer fast/healthy resolvers (experimental)-# Intrusive controls (keep false by default)-INTRUSIVE=false # Enable intrusive cloud write/CORS tests (dangerous)-# Estimated durations for skipped heavy modules (seconds)TIME_EST_NUCLEI=600TIME_EST_FUZZ=900diff --git a/tests/unit/test_utils.bats b/tests/unit/test_utils.batsindex acafc0d..d0d3d44 100644--- a/tests/unit/test_utils.bats+++ b/tests/unit/test_utils.bats@@ -77,6 +77,27 @@ setup() {[[ "$output" == *"ERROR"* ]]}+@test "validate_config accepts PERMUTATIONS_ENGINE=gotator without warning" {+ export PERMUTATIONS_ENGINE="gotator"+ run validate_config+ [ "$status" -eq 0 ]+ [[ "$output" != *"PERMUTATIONS_ENGINE is deprecated/ignored"* ]]+}++@test "validate_config warns when PERMUTATIONS_ENGINE is legacy non-gotator value" {+ export PERMUTATIONS_ENGINE="alterx"+ run validate_config+ [ "$status" -eq 0 ]+ [[ "$output" == *"PERMUTATIONS_ENGINE is deprecated/ignored"* ]]+}++@test "validate_config warns for deprecated no-op config knobs" {+ export NUCLEI_FLAGS="-silent"+ run validate_config+ [ "$status" -eq 0 ]+ [[ "$output" == *"NUCLEI_FLAGS is deprecated/removed"* ]]+}+@test "error codes are defined" {[ "$E_SUCCESS" -eq 0 ][ "$E_GENERAL" -eq 1 ]