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
fix(01-04): gate _cleanup_inprogress on _RECON_CLEAN_EXIT (CR-01)
six2dez5fbbbf1deaab
diff --git a/modules/modes.sh b/modules/modes.shindex cbd9311..4b0903a 100644--- a/modules/modes.sh+++ b/modules/modes.sh@@ -13,6 +13,7 @@function start() {global_start=$(date +%s)+ _RECON_CLEAN_EXIT=false # CR-01 fix: gate _cleanup_inprogress so SIGINT/SIGTERM preserve .inprogress_* sentinels (D-02 clean-exit semantics)set +m 2>/dev/null || true# Validate configuration before startingdiff --git a/modules/utils.sh b/modules/utils.shindex 3c1792f..47cb553 100644--- a/modules/utils.sh+++ b/modules/utils.sh@@ -145,8 +145,13 @@ function cleanup_on_exit() {exit "$exit_code"}-# Remove stale .inprogress_<fn> sentinels on EXIT (D-02). Does not call exit/kill/print — safe to fire on every shell exit, including successful runs.+# Remove stale .inprogress_<fn> sentinels on EXIT (D-02 clean-exit-only).+# Gated on _RECON_CLEAN_EXIT: only sweeps when the workflow's end() set the+# flag (clean traversal). SIGINT/SIGTERM via cleanup_on_exit does NOT set the+# flag, so the sentinel survives and the next run's resume banner fires+# (CR-01 fix; closes SC1 indicator gap from 01-VERIFICATION.md).function _cleanup_inprogress() {+ [[ "${_RECON_CLEAN_EXIT:-false}" == "true" ]] || return 0[[ -n "${called_fn_dir:-}" ]] && rm -f "${called_fn_dir}"/.inprogress_* 2>/dev/nullreturn 0}