Skip to content

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

feat: add --parallel CLI flag with documentation

six2dez37003227ecc9
diff --git a/modules/modes.sh b/modules/modes.sh
index 4bf9fa4..9cd49c3 100644
--- a/modules/modes.sh
+++ b/modules/modes.sh
@@ -886,6 +886,7 @@ function help() {
printf " --incremental Only scan new findings since last run\n"
printf " --adaptive-rate Automatically adjust rate limits on errors (429/503)\n"
printf " --dry-run Show what would be executed without running commands\n"
+ printf " --parallel Run independent functions in parallel (faster but uses more resources)\n"
printf " \n"
printf " ${bblue}USAGE EXAMPLES${reset}\n"
printf " ${byellow}Perform full recon (without attacks):${reset}\n"
diff --git a/modules/subdomains.sh b/modules/subdomains.sh
index f493978..978df30 100644
--- a/modules/subdomains.sh
+++ b/modules/subdomains.sh
@@ -161,15 +161,17 @@ _subdomains_finalize() {
###############################################################################
# Main subdomain enumeration orchestrator
-# Usage: subdomains_full [--parallel]
+# Usage: subdomains_full
+# Uses PARALLEL_MODE global variable if set
function subdomains_full() {
- local parallel_mode="${1:-}"
+ local parallel_flag=""
+ [[ "${PARALLEL_MODE:-false}" == "true" ]] && parallel_flag="--parallel"
# Initialize
_subdomains_init || return 1
# Enumerate
- _subdomains_enumerate "$parallel_mode"
+ _subdomains_enumerate "$parallel_flag"
# Web probing
webprobe_simple || printf "%b[!] webprobe_simple failed%b\n" "$bred" "$reset"
diff --git a/reconftw.sh b/reconftw.sh
index c877a75..ef73066 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -111,7 +111,7 @@ if [[ $OSTYPE == "darwin"* ]]; then
PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"
fi
-PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:zrspanwvyh' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps,ai,check-tools,health-check,quick-rescan,incremental,adaptive-rate,dry-run' -n 'reconFTW' -- "$@")
+PROGARGS=$(getopt -o 'd:m:l:x:i:o:f:q:c:zrspanwvyh' --long 'domain:,list:,recon,subdomains,passive,all,web,osint,zen,deep,help,vps,ai,check-tools,health-check,quick-rescan,incremental,adaptive-rate,dry-run,parallel' -n 'reconFTW' -- "$@")
exit_status=$?
if [[ $exit_status -ne 0 ]]; then
@@ -308,6 +308,11 @@ while true; do
shift
continue
;;
+ '--parallel')
+ PARALLEL_MODE=true
+ shift
+ continue
+ ;;
'--help' | '-h')
break
;;