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
style: fix shellcheck warnings and add directives
six2dezcb124a51f0b5
diff --git a/modules/axiom.sh b/modules/axiom.shindex 063b9bc..b083687 100644--- a/modules/axiom.sh+++ b/modules/axiom.sh@@ -4,6 +4,9 @@# resolvers_update_quick_axiom, resolvers_optimize_local,# ipcidr_target, axiom_launch, axiom_shutdown, axiom_selected# This file is sourced by reconftw.sh - do not execute directly++# shellcheck disable=SC2154 # Variables defined in reconftw.cfg+[[ -z "${SCRIPTPATH:-}" ]] && {echo "Error: This module must be sourced by reconftw.sh" >&2exit 1diff --git a/modules/core.sh b/modules/core.shindex b9f5371..7324d96 100644--- a/modules/core.sh+++ b/modules/core.sh@@ -3,6 +3,9 @@# Contains: UI wrappers, banner, version check, tools check, logging,# output/notification, lifecycle (start_func/end_func), plugins, assets# This file is sourced by reconftw.sh - do not execute directly++# shellcheck disable=SC2154 # Variables defined in reconftw.cfg+[[ -z "${SCRIPTPATH:-}" ]] && {echo "Error: This module must be sourced by reconftw.sh" >&2exit 1@@ -421,7 +424,8 @@ function log_json() {shift 3# Build JSON object- local json_obj=$(jq -n \+ local json_obj+ json_obj=$(jq -n \--arg ts "$(date -Iseconds)" \--arg lvl "$level" \--arg fn "$function" \@@ -511,7 +515,8 @@ function incremental_diff() {if [[ ! -f "$previous_file" ]]; then# First run, all items are newcp "$current_file" "$output_file" 2>/dev/null- local count=$(wc -l <"$output_file" 2>/dev/null || echo 0)+ local count+ count=$(wc -l <"$output_file" 2>/dev/null || echo 0)printf "%b[%s] Incremental mode: First run for %s - %d items total%b\n" \"$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$type" "$count" "$reset"return 0@@ -520,9 +525,10 @@ function incremental_diff() {# Compare and get only new itemsif [[ -s "$current_file" ]]; thencomm -13 <(sort -u "$previous_file") <(sort -u "$current_file") | sed '/^$/d' >"$output_file"- local new_count=$(wc -l <"$output_file" 2>/dev/null || echo 0)- local total_count=$(wc -l <"$current_file" 2>/dev/null || echo 0)- local previous_count=$(wc -l <"$previous_file" 2>/dev/null || echo 0)+ local new_count total_count previous_count+ new_count=$(wc -l <"$output_file" 2>/dev/null || echo 0)+ total_count=$(wc -l <"$current_file" 2>/dev/null || echo 0)+ previous_count=$(wc -l <"$previous_file" 2>/dev/null || echo 0)printf "%b[%s] Incremental mode %s: %d new (previous: %d, total: %d)%b\n" \"$bblue" "$(date +'%Y-%m-%d %H:%M:%S')" "$type" "$new_count" "$previous_count" "$total_count" "$reset"diff --git a/modules/modes.sh b/modules/modes.shindex 0f54bea..ed627af 100644--- a/modules/modes.sh+++ b/modules/modes.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - Mode/workflow orchestration module# Contains: start, end, build_hotlist, passive, osint, all, vulns,# multi_osint, recon, multi_recon, multi_custom,diff --git a/modules/osint.sh b/modules/osint.shindex 769647d..06d3cfb 100644--- a/modules/osint.sh+++ b/modules/osint.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - OSINT module# Contains: google_dorks, github_dorks, github_repos, metadata, apileaks,# emails, domain_info, third_party_misconfigs, spoof, mail_hygiene,diff --git a/modules/subdomains.sh b/modules/subdomains.shindex 76c7a23..28ecf89 100644--- a/modules/subdomains.sh+++ b/modules/subdomains.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - Subdomain enumeration module# Contains: subdomains_full, sub_passive, sub_crt, sub_active, sub_tls,# sub_noerror, sub_dns, sub_brute, sub_scraping, sub_analytics,diff --git a/modules/utils.sh b/modules/utils.shindex defc719..dc7cf1a 100644--- a/modules/utils.sh+++ b/modules/utils.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - Utility functions module# Contains: deleteOutScoped, cleanup, rotate_logs, sanitization, validation,# getElapsedTime, retry, disk check, rate limiting, cachingdiff --git a/modules/vulns.sh b/modules/vulns.shindex af518e4..8ff179d 100644--- a/modules/vulns.sh+++ b/modules/vulns.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - Vulnerability scanning module# Contains: xss, cors, open_redirect, ssrf_checks, crlf_checks, lfi, ssti,# sqli, test_ssl, spraying, command_injection, 4xxbypass,diff --git a/modules/web.sh b/modules/web.shindex 97c3633..394091a 100644--- a/modules/web.sh+++ b/modules/web.sh@@ -1,4 +1,5 @@#!/bin/bash+# shellcheck disable=SC2154 # Variables defined in reconftw.cfg# reconFTW - Web analysis module# Contains: webprobe_simple, webprobe_full, screenshot, virtualhosts, favicon,# portscan, cdnprovider, waf_checks, nuclei_check, graphql_scan,