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

fix(01-04): flip _RECON_CLEAN_EXIT=true as last statement of end() (CR-01)

six2dez79967d715333
diff --git a/modules/modes.sh b/modules/modes.sh
index 4b0903a..2fe8d96 100644
--- a/modules/modes.sh
+++ b/modules/modes.sh
@@ -508,6 +508,13 @@ function end() {
export_reports || true
fi
+ # Mark clean traversal so the EXIT trap's _cleanup_inprogress sweeps
+ # .inprogress_* sentinels (D-02 clean-exit semantics; CR-01 fix). Any
+ # path that bypasses end() — SIGINT/SIGTERM via cleanup_on_exit, an
+ # internal abort like _abort_disk_full's exit 1, or an unhandled error
+ # — leaves the flag at false and the sentinels survive to drive the
+ # next run's resume banner.
+ _RECON_CLEAN_EXIT=true
}
function build_hotlist() {