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

Small adjustments

six2dezfb3c19cf8090
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eb0930e..0129a4e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -110,6 +110,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Nuclei targeting adjusted to prioritize URL-with-protocol inputs and reduce duplicate host scans.
- Parallel scheduler improved with backpressure signals from adaptive rate limiting.
- Threading/performance tuning improved with `PERF_PROFILE` (`low|balanced|max`).
+- Output header now uses a banner-style H1 block with rules sized to the header text.
+- Default exports now generate all report artifacts unless `--no-report` is set.
+- Help output formatting uses proper color escapes (no literal `\033`).
+- `--pretty` option removed (no longer supported).
+- Health-check tool list updated to reflect actual runtime usage (`nmap`, `nmapurls`).
### Fixed
@@ -118,6 +123,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed syntax/runtime edge cases in module scripts.
- Corrected timing/perf summary handling edge cases.
- Resolved readonly/re-source issues in script lifecycle.
+- `.log/*.txt` files are no longer empty (LOGFILE no longer overwritten by debug log).
+- Incidents no longer show `\n` literals; debug log line only appears if non-empty.
+- Passive mode no longer runs `webprobe_simple`/`webprobe_full`.
+- Missing `webs/webs_new.txt` now handled safely.
+
+### Added
+
+- `--no-banner` to disable banner output (banner is on by default).
+- `--no-report` to skip report generation/exports.
+- `--gen-resolvers` to generate resolvers with `dnsvalidator`.
+- `--force` to ignore cached module markers and re-run all phases.
- Fixed duplicate findings/reporting edge cases.
- Corrected `sub_asn()` behavior to avoid redundant repeated runs.
- `sub_asn()` now requires `PDCP_API_KEY` before running `asnmap`, logs explicit skip reason when unset, and applies a 120s timeout guard when available.
diff --git a/lib/common.sh b/lib/common.sh
index 2ef2c21..42242f9 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -181,7 +181,11 @@ print_artifacts() {
print_notice() {
local level="$1" module="$2" message="$3"
[[ -z "$module" ]] && module="notice"
- print_task "$level" "$module" "0" "$message"
+ if [[ "$level" == "FAIL" ]] && [[ "${OUTPUT_VERBOSITY:-1}" -lt 1 ]]; then
+ (OUTPUT_VERBOSITY=1; print_task "$level" "$module" "0" "$message")
+ else
+ print_task "$level" "$module" "0" "$message"
+ fi
}
# Formatted WARN message without color codes
@@ -298,6 +302,9 @@ _print_status() {
fi
return 0
fi
+ if [[ "$badge" == "INFO" ]] && [[ "${OUTPUT_VERBOSITY:-1}" -lt 2 ]]; then
+ return 0
+ fi
if declare -F ui_count_inc >/dev/null 2>&1; then
ui_count_inc "$badge"
diff --git a/lib/parallel.sh b/lib/parallel.sh
index 1371af1..c8906ea 100644
--- a/lib/parallel.sh
+++ b/lib/parallel.sh
@@ -110,7 +110,7 @@ _parallel_emit_job_output() {
if declare -F ui_count_inc >/dev/null 2>&1; then
ui_count_inc "$badge"
fi
- print_task "$badge" "$func_name" "$duration" ""
+ (OUTPUT_VERBOSITY=1; print_task "$badge" "$func_name" "$duration" "")
else
_print_status "$badge" "$func_name" "${duration}s"
fi
@@ -127,7 +127,7 @@ _parallel_emit_job_output() {
if declare -F ui_count_inc >/dev/null 2>&1; then
ui_count_inc "$badge"
fi
- print_task "$badge" "$func_name" "$duration" ""
+ (OUTPUT_VERBOSITY=1; print_task "$badge" "$func_name" "$duration" "")
else
_print_status "$badge" "$func_name" "${duration}s"
fi
@@ -140,7 +140,7 @@ _parallel_emit_job_output() {
if declare -F ui_count_inc >/dev/null 2>&1; then
ui_count_inc "$badge"
fi
- print_task "$badge" "$func_name" "$duration" ""
+ (OUTPUT_VERBOSITY=1; print_task "$badge" "$func_name" "$duration" "")
else
_print_status "$badge" "$func_name" "${duration}s"
fi
diff --git a/modules/core.sh b/modules/core.sh
index 8076134..a25e964 100644
--- a/modules/core.sh
+++ b/modules/core.sh
@@ -550,7 +550,7 @@ function progress_module() {
if declare -F ui_counts_summary >/dev/null 2>&1; then
counters=$(ui_counts_summary)
fi
- printf "\n %b[%d/%d] %d%% │ %s complete │ %s%b\n\n" \
+ printf " %b[%d/%d] %d%% │ %s complete │ %s%b\n\n" \
"${bblue:-}" "$_PROGRESS_MODULE_CURRENT" "$_PROGRESS_MODULE_TOTAL" "$pct" \
"$module_name" "$counters" "${reset:-}"
}
diff --git a/modules/modes.sh b/modules/modes.sh
index 0fc3e2d..413bb87 100644
--- a/modules/modes.sh
+++ b/modules/modes.sh
@@ -74,6 +74,9 @@ function start() {
if [[ ! -d $called_fn_dir ]]; then
mkdir -p "$called_fn_dir"
fi
+ if [[ "${FORCE_RESCAN:-false}" == "true" ]]; then
+ rm -f "$called_fn_dir"/.* 2>>"${LOGFILE:-/dev/null}" || true
+ fi
mkdir -p "$dir"
cd "$dir" || {
print_errorf "Failed to cd directory in %s @ line %s" "${FUNCNAME[0]}" "${LINENO}"
@@ -139,6 +142,9 @@ function start() {
_print_rule
fi
+ if [[ "${FORCE_RESCAN:-false}" == "true" ]]; then
+ _print_msg WARN "Force rescan enabled: ignoring cached module markers"
+ fi
if [[ "${MONITOR_MODE:-false}" == "true" ]] && [[ "${MONITOR_CYCLE:-1}" -gt 1 ]]; then
notification "Monitor cycle ${MONITOR_CYCLE}: skipping repeated tools check" info
else
@@ -564,6 +570,9 @@ function multi_osint() {
print_errorf "Failed to create directory '%s' in %s @ line %s" "$workdir" "${FUNCNAME[0]}" "${LINENO}"
exit 1
}
+ if [[ "${FORCE_RESCAN:-false}" == "true" ]]; then
+ rm -f "$workdir"/.called_fn/.* 2>>"${LOGFILE:-/dev/null}" || true
+ fi
cd "$workdir" || {
print_errorf "Failed to cd directory '%s' in %s @ line %s" "$workdir" "${FUNCNAME[0]}" "${LINENO}"
exit 1
@@ -1282,7 +1291,7 @@ function report_only_mode() {
function help() {
pt_header "Usage"
printf "\n Usage: %s [-d domain.tld] [-m name] [-l list.txt] [-x oos.txt] [-i in.txt] " "$0"
- printf "\n [-r] [-s] [-p] [-a] [-w] [-n] [-z] [-c] [-y] [-h] [-f] [--ai] [--deep] [--monitor] [--monitor-interval m] [--monitor-cycles n] [--report-only] [--refresh-cache] [--gen-resolvers] [--export fmt] [-o OUTPUT]\n\n"
+ printf "\n [-r] [-s] [-p] [-a] [-w] [-n] [-z] [-c] [-y] [-h] [-f] [--ai] [--deep] [--monitor] [--monitor-interval m] [--monitor-cycles n] [--report-only] [--refresh-cache] [--gen-resolvers] [--force] [--export fmt] [-o OUTPUT]\n\n"
printf " %bTARGET OPTIONS%b\n" "${bblue}" "${reset}"
printf " -d domain.tld Target domain\n"
printf " -m company Target company name\n"
@@ -1329,6 +1338,7 @@ function help() {
printf " --no-report Disable report generation and exports\n"
printf " --refresh-cache Force refresh of cached resolvers/wordlists\n"
printf " --gen-resolvers Generate custom resolvers with dnsvalidator\n"
+ printf " --force Re-run all modules (ignore cached markers)\n"
printf " --export fmt Export artifacts: json|html|csv|all (default: all)\n"
printf " \n"
printf " %bUSAGE EXAMPLES%b\n" "${bblue}" "${reset}"
diff --git a/reconftw.sh b/reconftw.sh
index 8ed3af3..b8c75aa 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -112,7 +112,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,parallel,no-parallel,monitor,monitor-interval:,monitor-cycles:,refresh-cache,gen-resolvers,export:,report-only,no-report,parallel-log:,quiet,verbose,no-color,log-format:,show-cache,banner,no-banner,legal' -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,no-parallel,monitor,monitor-interval:,monitor-cycles:,refresh-cache,gen-resolvers,force,export:,report-only,no-report,parallel-log:,quiet,verbose,no-color,log-format:,show-cache,banner,no-banner,legal' -n 'reconFTW' -- "$@")
exit_status=$?
if [[ $exit_status -ne 0 ]]; then
@@ -364,6 +364,11 @@ while true; do
shift
continue
;;
+ '--force')
+ FORCE_RESCAN=true
+ shift
+ continue
+ ;;
'--export')
CLI_EXPORT_FORMAT="$2"
if [[ ! "$CLI_EXPORT_FORMAT" =~ ^(json|html|csv|all)$ ]]; then
diff --git a/tests/unit/test_common.bats b/tests/unit/test_common.bats
index 9d1b7b1..f82223b 100644
--- a/tests/unit/test_common.bats
+++ b/tests/unit/test_common.bats
@@ -147,7 +147,7 @@ teardown() {
}
run test_func
[ "$status" -eq 0 ]
- [[ "$output" == *"[SKIP]"* ]]
+ [[ "$output" == *"SKIP"* ]]
}
###############################################################################
diff --git a/tests/unit/test_parallel.bats b/tests/unit/test_parallel.bats
index 6abf3a5..3e2f3d4 100644
--- a/tests/unit/test_parallel.bats
+++ b/tests/unit/test_parallel.bats
@@ -194,17 +194,18 @@ teardown() {
run parallel_funcs 2 ok_func
[ "$status" -eq 0 ]
- [[ "$output" == *"[OK"* ]]
+ [[ "$output" == *"OK"* ]]
[[ "$output" == *"ok_func"* ]]
}
@test "summary mode shows [FAIL] with last 5 lines on failure" {
PARALLEL_LOG_MODE="summary"
+ OUTPUT_VERBOSITY=2
bad_func() { echo "line1"; echo "line2"; echo "line3"; echo "line4"; echo "error here"; return 1; }
run parallel_funcs 2 bad_func
[ "$status" -eq 1 ]
- [[ "$output" == *"[FAIL"* ]]
+ [[ "$output" == *"FAIL"* ]]
[[ "$output" == *"error here"* ]]
}
@@ -215,7 +216,7 @@ teardown() {
run parallel_funcs 2 chatty_func
[ "$status" -eq 0 ]
- [[ "$output" == *"[OK"* ]]
+ [[ "$output" == *"OK"* ]]
[[ "$output" == *"line10"* ]]
[[ "$output" == *"line9"* ]]
[[ "$output" == *"line8"* ]]
@@ -271,8 +272,8 @@ teardown() {
run parallel_funcs 2 quiet_func
[ "$status" -eq 0 ]
- # Should NOT show [OK] in quiet mode
- [[ "$output" != *"[OK]"* ]]
+ # Should NOT show OK in quiet mode
+ [[ "$output" != *"OK"* ]]
}
@test "quiet mode still shows failures" {
@@ -282,5 +283,5 @@ teardown() {
run parallel_funcs 2 fail_quiet
[ "$status" -eq 1 ]
- [[ "$output" == *"[FAIL"* ]]
+ [[ "$output" == *"FAIL"* ]]
}
diff --git a/tests/unit/test_verbosity.bats b/tests/unit/test_verbosity.bats
index 0bbea5a..e896f7e 100644
--- a/tests/unit/test_verbosity.bats
+++ b/tests/unit/test_verbosity.bats
@@ -93,7 +93,7 @@ teardown() {
OUTPUT_VERBOSITY=1
run skip_notification "disabled"
[ "$status" -eq 0 ]
- [[ "$output" == *"[SKIP]"* ]]
+ [[ "$output" == *"SKIP"* ]]
}
@test "skip_notification suppressed at verbosity 0" {
@@ -127,7 +127,7 @@ teardown() {
start=1
run end_func "Results" "test_fn"
[ "$status" -eq 0 ]
- [[ "$output" == *"[OK"* ]]
+ [[ "$output" == *"OK"* ]]
}
@test "end_func hides status at verbosity 0" {
@@ -135,7 +135,7 @@ teardown() {
start=1
run end_func "Results" "test_fn"
[ "$status" -eq 0 ]
- [[ "$output" != *"[OK"* ]]
+ [[ "$output" != *"OK"* ]]
}
###############################################################################