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

Praetorian tools

six2dezf025971fd735
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 96f2f8a..49ad9ce 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -109,6 +109,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `toxicache` for additional web cache poisoning coverage.
- `postleaksNg` in `apileaks` for Postman leak discovery.
- `favirecon` as `favirecon_tech` for favicon-based technology reconnaissance.
+ - Praetorian integrations:
+ - `fingerprintx` for service fingerprinting after host port discovery (`hosts/fingerprintx.[jsonl|txt]`).
+ - `brutus` as optional spraying engine (`SPRAY_ENGINE=brutus`) with DEEP gating support.
+ - `titus` and `noseyparker` as selectable GitHub repo secret engines (`SECRETS_ENGINE`).
+ - `gato` as optional GitHub Actions audit module (`github_actions_audit`, output `osint/github_actions_audit.[json|txt]`).
+ - `julius` as optional LLM endpoint probing module (`llm_probe`, output `webs/llm_probe.[jsonl|txt]`).
- `TInjA` as the default `ssti` engine (`SSTI_ENGINE=TInjA`, with legacy fallback).
- `second-order` as default `brokenLinks` engine (`BROKENLINKS_ENGINE=second-order`, with legacy fallback).
- `ghleaks` in `github_leaks` for GitHub-wide secret search across all public repositories (combines GitHub Code Search API with gitleaks detection rules). Configurable via `GITHUB_LEAKS`, `GHLEAKS_THREADS`, and `--exhaustive` mode in DEEP.
diff --git a/README.md b/README.md
index 48da4d2..592bfbd 100644
--- a/README.md
+++ b/README.md
@@ -111,7 +111,8 @@ reconFTW is packed with features to make reconnaissance thorough and efficient.
- **Metadata Extraction**: Extracts metadata from indexed office documents ([metagoofil](https://github.com/opsdisk/metagoofil)).
- **API Leaks**: Detects exposed APIs in public sources ([porch-pirate](https://github.com/MandConsultingGroup/porch-pirate), [SwaggerSpy](https://github.com/UndeadSec/SwaggerSpy) and [postleaksNg](https://github.com/six2dez/postleaksNG)).
- **Google Dorking**: Automated Google dork queries for sensitive information ([dorks_hunter](https://github.com/six2dez/dorks_hunter) and [xnldorker](https://github.com/xnl-h4ck3r/xnldorker)).
-- **GitHub Analysis**: Scans GitHub organizations for repositories and secrets ([enumerepo](https://github.com/trickest/enumerepo), [trufflehog](https://github.com/trufflesecurity/trufflehog) and [gitleaks](https://github.com/gitleaks/gitleaks)).
+- **GitHub Analysis**: Scans GitHub organizations for repositories and secrets with selectable engines ([enumerepo](https://github.com/trickest/enumerepo), [trufflehog](https://github.com/trufflesecurity/trufflehog), [gitleaks](https://github.com/gitleaks/gitleaks), [titus](https://github.com/praetorian-inc/titus), [noseyparker](https://github.com/praetorian-inc/noseyparker)).
+- **GitHub Actions Audit (Optional)**: Audits workflow artifacts and CI/CD exposure with [gato](https://github.com/praetorian-inc/gato).
- **Third-Party Misconfigurations**: Identifies misconfigured third-party services ([misconfig-mapper](https://github.com/intigriti/misconfig-mapper)).
- **Mail Hygiene**: Reviews SPF/DMARC configuration to flag spoofing or deliverability issues.
- **Cloud Storage Enumeration**: Surveys buckets across major providers for exposure ([cloud_enum](https://github.com/initstring/cloud_enum)).
@@ -140,8 +141,9 @@ reconFTW is packed with features to make reconnaissance thorough and efficient.
- **CDN Detection**: Identifies IPs behind CDNs ([cdncheck](https://github.com/projectdiscovery/cdncheck)).
- **WAF Detection**: Detects Web Application Firewalls ([wafw00f](https://github.com/EnableSecurity/wafw00f)).
- **Port Scanning**: Active scanning with [nmap](https://github.com/nmap/nmap) (optionally preceded by [naabu](https://github.com/projectdiscovery/naabu)) and passive scanning with [smap](https://github.com/s0md3v/Smap).
+- **Service Fingerprinting**: Fingerprints exposed services on discovered host:port pairs with [fingerprintx](https://github.com/praetorian-inc/fingerprintx).
- **Service Vulnerabilities (Optional)**: Deep portscan profile can enrich results with CVE matching via [vulners](https://github.com/vulnersCom/nmap-vulners).
-- **Password Spraying**: Attempts password spraying on identified services ([brutespray](https://github.com/x90skysn3k/brutespray)).
+- **Password Spraying**: Attempts password spraying on identified services with engine selection ([brutespray](https://github.com/x90skysn3k/brutespray) or [brutus](https://github.com/praetorian-inc/brutus)).
- **Geolocation**: Maps IP addresses to geographic locations ([ipinfo](https://www.ipinfo.io/)).
- **IPv6 Discovery**: Optionally enumerates and scans discovered IPv6 targets when `IPV6_SCAN` is enabled.
@@ -160,6 +162,7 @@ reconFTW is packed with features to make reconnaissance thorough and efficient.
- **Parameter Discovery**: Bruteforces hidden parameters on endpoints ([arjun](https://github.com/s0md3v/Arjun)).
- **WebSocket Auditing**: Validates upgrade handshakes and origin handling on `ws://` and `wss://` endpoints.
- **gRPC Reflection**: Probes common gRPC ports for exposed service reflection ([grpcurl](https://github.com/fullstorydev/grpcurl)).
+- **LLM Service Fingerprinting (Optional)**: Probes discovered web/API endpoints for exposed LLM services with [julius](https://github.com/praetorian-inc/julius).
- **Fuzzing**: Performs directory and parameter fuzzing ([ffuf](https://github.com/ffuf/ffuf)).
- **File Extension Sorting**: Organizes URLs by file extensions.
- **Wordlist Generation**: Creates custom wordlists for fuzzing.
@@ -556,6 +559,13 @@ SPOOF=true # Check spoofable domains
METAFINDER_LIMIT=20 # Max 250
MAIL_HYGIENE=true # Check DMARC/SPF records
CLOUD_ENUM=true # Enumerate cloud storage across providers with cloud_enum
+GITHUB_LEAKS=true # Search for leaked secrets across GitHub with ghleaks
+GHLEAKS_THREADS=5 # Concurrent download threads for ghleaks
+SECRETS_ENGINE="gitleaks" # gitleaks|titus|noseyparker|hybrid
+SECRETS_SCAN_GIT_HISTORY=false # Include git history scans when supported
+SECRETS_VALIDATE=false # Validate detected secrets when supported (titus)
+GITHUB_ACTIONS_AUDIT=false # Audit GitHub Actions artifacts/workflows with gato
+GATO_INCLUDE_ALL_ARTIFACT_SECRETS=false # Include noisy artifact secret matches in gato output
# Subdomains
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
@@ -602,6 +612,9 @@ PORTSCAN_STRATEGY=legacy # legacy|naabu_nmap
NAABU_ENABLE=true
NAABU_RATE=1000
NAABU_PORTS="--top-ports 1000"
+SERVICE_FINGERPRINT=true # Fingerprint exposed services with fingerprintx
+SERVICE_FINGERPRINT_ENGINE="fingerprintx" # fingerprintx
+SERVICE_FINGERPRINT_TIMEOUT_MS=2000 # fingerprintx timeout per target (ms)
PORTSCAN_UDP=false
PORTSCAN_UDP_OPTIONS="--top-ports 20 -sU -sV -n -Pn --open"
CDN_IP=true # Check which IPs belongs to CDN
@@ -653,6 +666,11 @@ GHAURI=false # Check SQLI with ghauri
BROKENLINKS=true # Check for brokenlinks
BROKENLINKS_ENGINE="second-order" # Broken links engine: second-order|legacy
SPRAY=true # Performs password spraying
+SPRAY_ENGINE="brutespray" # brutespray|brutus
+SPRAY_BRUTUS_ONLY_DEEP=true # Run brutus only in DEEP mode unless disabled
+BRUTUS_USERNAMES="" # Optional comma-separated usernames for brutus
+BRUTUS_PASSWORDS="" # Optional comma-separated passwords for brutus
+BRUTUS_KEY_FILE="" # Optional SSH private key path for brutus
COMM_INJ=true # Check for command injections with commix
SMUGGLING=true # Check for HTTP request smuggling flaws
WEBCACHE=true # Check for Web Cache issues
@@ -765,6 +783,8 @@ GRAPHQL_CHECK=true # Detect GraphQL endpoints and introspection
GQLSPECTION=false # Run GQLSpection deep introspection on detected GraphQL endpoints (heavier)
PARAM_DISCOVERY=true # Parameter discovery with arjun
GRPC_SCAN=false # Attempt basic gRPC reflection on common ports
+LLM_PROBE=false # Probe discovered web/API endpoints for LLM services with julius
+LLM_PROBE_AUGUSTUS=false # Include augustus generator config in julius output
# IPv6
IPV6_SCAN=true # Attempt IPv6 discovery/portscan where addresses exist
diff --git a/install.sh b/install.sh
index c437a88..9a14f69 100755
--- a/install.sh
+++ b/install.sh
@@ -247,6 +247,10 @@ declare -A gotools=(
["favirecon"]="go install -v github.com/edoardottt/favirecon/cmd/favirecon@latest"
["second-order"]="go install -v github.com/mhmdiaa/second-order@latest"
["TInjA"]="go install -v github.com/Hackmanit/TInjA@latest"
+ ["fingerprintx"]="go install -v github.com/praetorian-inc/fingerprintx/cmd/fingerprintx@latest"
+ ["brutus"]="go install -v github.com/praetorian-inc/brutus/cmd/brutus@latest"
+ ["julius"]="go install -v github.com/praetorian-inc/julius/cmd/julius@latest"
+ ["titus"]="go install -v github.com/praetorian-inc/titus/cmd/titus@latest"
)
# Declare uv tool-managed Python tools and their GitHub paths
@@ -299,6 +303,7 @@ declare -A repos=(
["metagoofil"]="opsdisk/metagoofil"
["EmailHarvester"]="maldevel/EmailHarvester"
["reconftw_ai"]="six2dez/reconftw_ai"
+ ["gato"]="praetorian-inc/gato"
)
# Function to display the banner
@@ -524,6 +529,12 @@ function install_tools() {
"trufflehog")
go install &>/dev/null
;;
+ "gato")
+ if [[ ! -d "venv" ]]; then
+ uv venv venv &>/dev/null || true
+ fi
+ uv pip install --upgrade -e . --python venv/bin/python3 &>/dev/null || true
+ ;;
esac
# Copy gf patterns if applicable
diff --git a/modules/modes.sh b/modules/modes.sh
index f40ff1a..51d1c21 100644
--- a/modules/modes.sh
+++ b/modules/modes.sh
@@ -651,7 +651,7 @@ function recon() {
RECON_OSINT_PARALLEL_FAILURES=$((RECON_OSINT_PARALLEL_FAILURES + osint_g1_rc))
fi
# Group 2: remaining OSINT + zonetransfer
- parallel_funcs "${PAR_OSINT_GROUP2_SIZE:-4}" github_repos github_leaks metadata apileaks zonetransfer
+ parallel_funcs "${PAR_OSINT_GROUP2_SIZE:-5}" github_repos github_leaks github_actions_audit metadata apileaks zonetransfer
local osint_g2_rc=$?
if ((osint_g2_rc > 0)); then
RECON_PARTIAL_RUN=true
@@ -665,6 +665,7 @@ function recon() {
#github_dorks
github_repos
github_leaks
+ github_actions_audit
metadata
apileaks
third_party_misconfigs
@@ -739,6 +740,7 @@ function recon() {
websocket_checks
param_discovery
grpc_reflection
+ llm_probe
ui_module_end "Web Analysis" "vulns/" "nuclei_output/"
progress_module "Web Analysis"
diff --git a/modules/osint.sh b/modules/osint.sh
index ac8b489..7462031 100644
--- a/modules/osint.sh
+++ b/modules/osint.sh
@@ -71,76 +71,130 @@ function github_repos() {
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $GITHUB_REPOS == true ]] && [[ $OSINT == true ]]; then
start_func "${FUNCNAME[0]}" "Github Repos analysis in process"
- if [[ -s $GITHUB_TOKENS ]]; then
- GH_TOKEN=$(head -n 1 "$GITHUB_TOKENS")
- echo "$domain" | unfurl format %r >.tmp/company_name.txt
+ if [[ ! -s $GITHUB_TOKENS ]]; then
+ _print_error "Required file ${GITHUB_TOKENS} does not exist or is empty"
+ return 1
+ fi
- if ! run_command enumerepo -token-string "$GH_TOKEN" -usernames .tmp/company_name.txt -o .tmp/company_repos.txt 2>>"$LOGFILE" >/dev/null; then
- _print_error "enumerepo command failed"
- fi
+ GH_TOKEN=$(head -n 1 "$GITHUB_TOKENS")
+ echo "$domain" | unfurl format %r >.tmp/company_name.txt
- if [[ -s ".tmp/company_repos.txt" ]]; then
- if ! jq -r '.[].repos[]|.url' <.tmp/company_repos.txt >.tmp/company_repos_url.txt 2>>"$LOGFILE"; then
- _print_error "jq command failed"
- fi
+ if ! run_command enumerepo -token-string "$GH_TOKEN" -usernames .tmp/company_name.txt -o .tmp/company_repos.txt 2>>"$LOGFILE" >/dev/null; then
+ _print_error "enumerepo command failed"
+ fi
+
+ if [[ -s ".tmp/company_repos.txt" ]]; then
+ if ! jq -r '.[].repos[]|.url' <.tmp/company_repos.txt >.tmp/company_repos_url.txt 2>>"$LOGFILE"; then
+ _print_error "jq command failed"
fi
+ fi
- ensure_dirs .tmp/github_repos .tmp/github
+ ensure_dirs .tmp/github_repos .tmp/github
- if [[ -s ".tmp/company_repos_url.txt" ]]; then
- if ! run_command interlace -tL .tmp/company_repos_url.txt -threads "$INTERLACE_THREADS" -c "git clone _target_ .tmp/github_repos/_cleantarget_" 2>>"$LOGFILE" >/dev/null; then
- _print_error "interlace git clone command failed"
- return 1
- fi
- else
- log_note "No GitHub repos found for ${domain}; continuing" "${FUNCNAME[0]}" "${LINENO}"
- end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
- return 0
+ if [[ -s ".tmp/company_repos_url.txt" ]]; then
+ if ! run_command interlace -tL .tmp/company_repos_url.txt -threads "$INTERLACE_THREADS" -c "git clone _target_ .tmp/github_repos/_cleantarget_" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace git clone command failed"
+ return 1
fi
+ else
+ log_note "No GitHub repos found for ${domain}; continuing" "${FUNCNAME[0]}" "${LINENO}"
+ end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
+ return 0
+ fi
- if [[ -d ".tmp/github_repos/" ]]; then
- ls .tmp/github_repos >.tmp/github_repos_folders.txt
- else
- log_note "GitHub clone directory missing for ${domain}; no repo artifacts to process" "${FUNCNAME[0]}" "${LINENO}"
- end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
- return 0
- fi
+ if [[ -d ".tmp/github_repos/" ]]; then
+ ls .tmp/github_repos >.tmp/github_repos_folders.txt
+ else
+ log_note "GitHub clone directory missing for ${domain}; no repo artifacts to process" "${FUNCNAME[0]}" "${LINENO}"
+ end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
+ return 0
+ fi
+ if [[ ! -s ".tmp/github_repos_folders.txt" ]]; then
+ log_note "No cloned GitHub repos to scan for ${domain}" "${FUNCNAME[0]}" "${LINENO}"
+ end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
+ return 0
+ fi
+
+ local secrets_engine="${SECRETS_ENGINE:-gitleaks}"
+ local titus_bin=""
+ if command -v titus >/dev/null 2>&1; then
+ titus_bin="$(command -v titus)"
+ elif [[ -x "${tools}/titus/dist/titus" ]]; then
+ titus_bin="${tools}/titus/dist/titus"
+ elif [[ -x "${HOME}/go/bin/titus" ]]; then
+ titus_bin="${HOME}/go/bin/titus"
+ fi
- if [[ -s ".tmp/github_repos_folders.txt" ]]; then
+ case "$secrets_engine" in
+ gitleaks|hybrid)
if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r .tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
_print_error "interlace gitleaks command failed"
end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}" FAIL
return 1
fi
- else
- log_note "No cloned GitHub repos to scan with gitleaks for ${domain}" "${FUNCNAME[0]}" "${LINENO}"
- end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
- return 0
- fi
-
- if [[ -s ".tmp/company_repos_url.txt" ]]; then
- if ! interlace -tL .tmp/company_repos_url.txt -threads "$INTERLACE_THREADS" -c "trufflehog git _target_ -j 2>&1 | jq -c > _output_/_cleantarget_" -o .tmp/github/ 2>>"$LOGFILE" >/dev/null; then
- _print_error "interlace trufflehog command failed"
- return 1
+ ;;
+ titus)
+ if [[ -z "$titus_bin" ]]; then
+ _print_msg WARN "titus requested but not found; falling back to gitleaks"
+ if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r .tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace gitleaks fallback failed"
+ return 1
+ fi
+ else
+ local titus_opts=""
+ [[ "${SECRETS_SCAN_GIT_HISTORY:-false}" == "true" ]] && titus_opts="${titus_opts} --git"
+ [[ "${SECRETS_VALIDATE:-false}" == "true" ]] && titus_opts="${titus_opts} --validate"
+ if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "\"${titus_bin}\" scan --format json ${titus_opts} .tmp/github_repos/_target_ > .tmp/github/titus__cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace titus command failed"
+ return 1
+ fi
fi
- fi
-
- if [[ -d ".tmp/github/" ]]; then
- if ! cat .tmp/github/* 2>/dev/null | jq -c | jq -r >"osint/github_company_secrets.json" 2>>"$LOGFILE"; then
- _print_error "Error combining results"
+ ;;
+ noseyparker)
+ if ! command -v noseyparker >/dev/null 2>&1; then
+ _print_msg WARN "noseyparker requested but not found; falling back to gitleaks"
+ if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r .tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace gitleaks fallback failed"
+ return 1
+ fi
+ else
+ local np_scan_opts=""
+ [[ "${SECRETS_SCAN_GIT_HISTORY:-false}" == "true" ]] && np_scan_opts="--git-history"
+ if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "noseyparker scan ${np_scan_opts} --datastore .tmp/github/np_ds__cleantarget_ .tmp/github_repos/_target_ >/dev/null 2>>${LOGFILE}; noseyparker report --datastore .tmp/github/np_ds__cleantarget_ --format json > .tmp/github/nosey__cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace noseyparker command failed"
+ return 1
+ fi
+ fi
+ ;;
+ *)
+ _print_msg WARN "Unknown SECRETS_ENGINE='${secrets_engine}', using gitleaks"
+ if ! interlace -tL .tmp/github_repos_folders.txt -threads "$INTERLACE_THREADS" -c "gitleaks detect --source .tmp/github_repos/_target_ --no-banner --no-color -r .tmp/github/gh_secret_cleantarget_.json" 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace gitleaks fallback failed"
return 1
fi
- else
- log_note "No GitHub scan outputs available to merge for ${domain}" "${FUNCNAME[0]}" "${LINENO}"
- end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
- return 0
+ ;;
+ esac
+
+ # Keep trufflehog enrichment (all engines).
+ if [[ -s ".tmp/company_repos_url.txt" ]]; then
+ if ! interlace -tL .tmp/company_repos_url.txt -threads "$INTERLACE_THREADS" -c "trufflehog git _target_ -j 2>&1 | jq -c > _output_/_cleantarget_" -o .tmp/github/ 2>>"$LOGFILE" >/dev/null; then
+ _print_error "interlace trufflehog command failed"
+ return 1
fi
+ fi
- end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
+ if [[ -d ".tmp/github/" ]]; then
+ if ! cat .tmp/github/* 2>/dev/null | jq -c | jq -r >"osint/github_company_secrets.json" 2>>"$LOGFILE"; then
+ _print_error "Error combining results"
+ return 1
+ fi
else
- _print_error "Required file ${GITHUB_TOKENS} does not exist or is empty"
- return 1
+ log_note "No GitHub scan outputs available to merge for ${domain}" "${FUNCNAME[0]}" "${LINENO}"
+ end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
+ return 0
fi
+
+ end_func "Results are saved in $domain/osint/github_company_secrets.json" "${FUNCNAME[0]}"
else
if [[ $GITHUB_REPOS == false ]] || [[ $OSINT == false ]]; then
skip_notification "disabled"
@@ -190,6 +244,67 @@ function github_leaks() {
fi
}
+function github_actions_audit() {
+ ensure_dirs osint .tmp
+
+ if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } \
+ && [[ "${GITHUB_ACTIONS_AUDIT:-false}" == "true" ]] && [[ $OSINT == true ]] \
+ && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+
+ start_func "${FUNCNAME[0]}" "GitHub Actions security audit (gato)"
+
+ if [[ ! -s $GITHUB_TOKENS ]]; then
+ _print_error "Required file ${GITHUB_TOKENS} does not exist or is empty"
+ end_func "GitHub token missing, github_actions_audit skipped" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
+
+ local company_name
+ company_name=$(unfurl format %r <<<"$domain")
+ printf "%s\n" "$company_name" >".tmp/gato_orgs.txt"
+
+ local gato_cmd=""
+ if command -v gato >/dev/null 2>&1; then
+ gato_cmd="$(command -v gato)"
+ elif [[ -x "${tools}/gato/venv/bin/gato" ]]; then
+ gato_cmd="${tools}/gato/venv/bin/gato"
+ fi
+ if [[ -z "$gato_cmd" ]]; then
+ _print_msg WARN "${FUNCNAME[0]}: gato not found in PATH or ${tools}/gato/venv/bin/gato"
+ end_func "gato not available, github_actions_audit skipped" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
+
+ local -a gato_args=(e --enum_wf_artifacts --skip_sh_runner_enum -O ".tmp/gato_orgs.txt" -oJ "osint/github_actions_audit.json")
+ [[ "${GATO_INCLUDE_ALL_ARTIFACT_SECRETS:-false}" == "true" ]] && gato_args+=(--include_all_artifact_secrets)
+
+ if [[ -f "$GITHUB_TOKENS" ]]; then
+ export GH_TOKEN
+ GH_TOKEN="$(head -n 1 "$GITHUB_TOKENS")"
+ fi
+
+ if ! run_command "$gato_cmd" "${gato_args[@]}" 2>>"$LOGFILE" >/dev/null; then
+ _print_msg WARN "${FUNCNAME[0]}: gato execution failed"
+ fi
+
+ if [[ -s "osint/github_actions_audit.json" ]]; then
+ jq -r '.. | strings | select(test("(?i)(artifact|workflow|runner|secret)"))' "osint/github_actions_audit.json" 2>/dev/null \
+ | sort -u \
+ | anew -q "osint/github_actions_audit.txt"
+ fi
+
+ end_func "Results are saved in osint/github_actions_audit.[json|txt]" "${FUNCNAME[0]}"
+ else
+ if [[ "${GITHUB_ACTIONS_AUDIT:-false}" == "false" ]] || [[ $OSINT == false ]]; then
+ skip_notification "disabled"
+ elif [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ return
+ else
+ skip_notification "processed"
+ fi
+ fi
+}
+
function metadata() {
ensure_dirs osint
diff --git a/modules/vulns.sh b/modules/vulns.sh
index 0766649..763a7c2 100644
--- a/modules/vulns.sh
+++ b/modules/vulns.sh
@@ -462,10 +462,6 @@ function spraying() {
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $SPRAY == true ]] \
&& [[ -s "$dir/hosts/portscan_active.gnmap" ]] && ! [[ $domain =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- if ! command -v brutespray >/dev/null 2>&1; then
- _print_msg WARN "${FUNCNAME[0]}: brutespray not found in PATH"
- return 0
- fi
start_func "${FUNCNAME[0]}" "Password Spraying"
# Ensure portscan_active.gnmap exists and is not empty
@@ -475,11 +471,52 @@ function spraying() {
return 1
fi
- _print_msg INFO "Running: Password Spraying with BruteSpray"
+ local spray_engine="${SPRAY_ENGINE:-brutespray}"
+ if [[ "$spray_engine" == "brutus" ]]; then
+ if [[ "${SPRAY_BRUTUS_ONLY_DEEP:-true}" == "true" && "${DEEP:-false}" != "true" ]]; then
+ end_func "Brutus spraying is DEEP-gated (set DEEP=true or SPRAY_BRUTUS_ONLY_DEEP=false)" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
+ if ! command -v brutus >/dev/null 2>&1; then
+ _print_msg WARN "${FUNCNAME[0]}: brutus not found in PATH"
+ end_func "Brutus not available, skipping" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
- # Run BruteSpray for password spraying
- brutespray -f "$dir/hosts/portscan_active.gnmap" -T "$BRUTESPRAY_CONCURRENCE" -o "$dir/vulns/brutespray" 2>>"$LOGFILE" >/dev/null
+ local brutus_input=""
+ if [[ -s "$dir/hosts/fingerprintx.jsonl" ]]; then
+ brutus_input="$dir/hosts/fingerprintx.jsonl"
+ elif [[ -s "$dir/hosts/naabu_open.txt" ]] && command -v fingerprintx >/dev/null 2>&1; then
+ run_command fingerprintx --json -l "$dir/hosts/naabu_open.txt" -o "$dir/.tmp/fingerprintx_for_brutus.jsonl" 2>>"$LOGFILE" >/dev/null || true
+ [[ -s "$dir/.tmp/fingerprintx_for_brutus.jsonl" ]] && brutus_input="$dir/.tmp/fingerprintx_for_brutus.jsonl"
+ fi
+
+ if [[ -z "$brutus_input" ]]; then
+ end_func "No fingerprintx JSON input for brutus (run portscan with SERVICE_FINGERPRINT=true)" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
+
+ local -a brutus_cmd=(brutus --json -o "$dir/vulns/brutus.jsonl")
+ [[ -n "${BRUTUS_USERNAMES:-}" ]] && brutus_cmd+=(-u "$BRUTUS_USERNAMES")
+ [[ -n "${BRUTUS_PASSWORDS:-}" ]] && brutus_cmd+=(-p "$BRUTUS_PASSWORDS")
+ [[ -n "${BRUTUS_KEY_FILE:-}" ]] && brutus_cmd+=(-k "$BRUTUS_KEY_FILE")
+ _print_msg INFO "Running: Password Spraying with Brutus"
+ if ! run_command "${brutus_cmd[@]}" <"$brutus_input" 2>>"$LOGFILE" >/dev/null; then
+ _print_msg WARN "Brutus command failed, continuing"
+ fi
+ end_func "Results are saved in vulns/brutus.jsonl" "${FUNCNAME[0]}"
+ return 0
+ fi
+
+ if ! command -v brutespray >/dev/null 2>&1; then
+ _print_msg WARN "${FUNCNAME[0]}: brutespray not found in PATH"
+ end_func "BruteSpray not available, skipping" "${FUNCNAME[0]}" SKIP
+ return 0
+ fi
+
+ _print_msg INFO "Running: Password Spraying with BruteSpray"
+ brutespray -f "$dir/hosts/portscan_active.gnmap" -T "$BRUTESPRAY_CONCURRENCE" -o "$dir/vulns/brutespray" 2>>"$LOGFILE" >/dev/null
end_func "Results are saved in vulns/brutespray folder" "${FUNCNAME[0]}"
else
diff --git a/modules/web.sh b/modules/web.sh
index 7253c7f..ae04a31 100644
--- a/modules/web.sh
+++ b/modules/web.sh
@@ -689,6 +689,8 @@ function portscan() {
append_assets_from_file web url hosts/webs.txt
fi
+ service_fingerprint
+
end_func "Results are saved in hosts/portscan_[passive|active|active_targeted|active_udp|shodan].*" "${FUNCNAME[0]}"
else
@@ -701,6 +703,75 @@ function portscan() {
}
+_build_fingerprintx_targets_from_nmap() {
+ local nmap_gnmap="$1"
+ local out_file="$2"
+ [[ ! -s "$nmap_gnmap" ]] && return 0
+
+ awk '
+ /^Host: / {
+ host = $2
+ if (host == "") next
+ ports = $0
+ sub(/^.*Ports: /, "", ports)
+ n = split(ports, arr, ",")
+ for (i = 1; i <= n; i++) {
+ gsub(/^ +| +$/, "", arr[i])
+ split(arr[i], f, "/")
+ if (f[2] == "open" && f[1] ~ /^[0-9]+$/) {
+ print host ":" f[1]
+ }
+ }
+ }' "$nmap_gnmap" | sort -u | anew -q "$out_file"
+}
+
+function service_fingerprint() {
+ ensure_dirs hosts .tmp
+
+ if [[ "${SERVICE_FINGERPRINT:-true}" != "true" ]]; then
+ return 0
+ fi
+ if [[ "${SERVICE_FINGERPRINT_ENGINE:-fingerprintx}" != "fingerprintx" ]]; then
+ _print_msg WARN "${FUNCNAME[0]}: unsupported SERVICE_FINGERPRINT_ENGINE=${SERVICE_FINGERPRINT_ENGINE}"
+ return 0
+ fi
+ if [[ $AXIOM == true ]]; then
+ log_note "service_fingerprint: local-only for now, skipped in AXIOM mode" "${FUNCNAME[0]}" "${LINENO}"
+ return 0
+ fi
+ if ! command -v fingerprintx >/dev/null 2>&1; then
+ _print_msg WARN "${FUNCNAME[0]}: fingerprintx not found in PATH"
+ return 0
+ fi
+
+ start_subfunc "${FUNCNAME[0]}" "Service fingerprinting (fingerprintx)"
+
+ local targets_file=".tmp/fingerprintx_targets.txt"
+ : >"$targets_file"
+
+ if [[ -s "hosts/naabu_open.txt" ]]; then
+ awk -F: 'NF==2 && $2 ~ /^[0-9]+$/ {print $1 ":" $2}' "hosts/naabu_open.txt" | sort -u | anew -q "$targets_file"
+ fi
+ if [[ ! -s "$targets_file" ]]; then
+ _build_fingerprintx_targets_from_nmap "hosts/portscan_active.gnmap" "$targets_file"
+ fi
+ if [[ ! -s "$targets_file" ]]; then
+ _build_fingerprintx_targets_from_nmap "hosts/portscan_active_targeted.gnmap" "$targets_file"
+ fi
+
+ if [[ -s "$targets_file" ]]; then
+ local timeout_ms="${SERVICE_FINGERPRINT_TIMEOUT_MS:-2000}"
+ run_command fingerprintx --json -l "$targets_file" -w "$timeout_ms" -o "hosts/fingerprintx.jsonl" 2>>"$LOGFILE" >/dev/null || true
+ if [[ -s "hosts/fingerprintx.jsonl" ]]; then
+ jq -r '[(.host // .ip // .target // "unknown"), (.port // "unknown"), (.protocol // .service // "unknown")] | @tsv' "hosts/fingerprintx.jsonl" 2>/dev/null \
+ | awk -F'\t' '{printf "%s:%s [%s]\n", $1, $2, $3}' \
+ | anew -q "hosts/fingerprintx.txt"
+ fi
+ fi
+
+ end_subfunc "Results are saved in hosts/fingerprintx.[jsonl|txt]" "${FUNCNAME[0]}"
+}
+
function cdnprovider() {
# Create necessary directories
@@ -1084,6 +1155,42 @@ function grpc_reflection() {
fi
}
+function llm_probe() {
+ ensure_dirs webs .tmp
+
+ if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ "${LLM_PROBE:-false}" == "true" ]]; then
+ if ! command -v julius >/dev/null 2>&1; then
+ _print_msg WARN "${FUNCNAME[0]}: julius not found in PATH"
+ return 0
+ fi
+ if [[ ! -s "webs/webs_all.txt" ]]; then
+ skip_notification "noinput"
+ return 0
+ fi
+ start_func "${FUNCNAME[0]}" "LLM service probing (julius)"
+
+ local -a julius_cmd=(julius -o jsonl -q probe -f "webs/webs_all.txt")
+ if [[ "${LLM_PROBE_AUGUSTUS:-false}" == "true" ]]; then
+ julius_cmd=(julius -o jsonl -q probe --augustus -f "webs/webs_all.txt")
+ fi
+
+ run_command "${julius_cmd[@]}" >"webs/llm_probe.jsonl" 2>>"$LOGFILE" || true
+ if [[ -s "webs/llm_probe.jsonl" ]]; then
+ jq -r '[(.target // .url // "unknown"), (.provider // .service // "unknown"), (.probe // "n/a")] | @tsv' "webs/llm_probe.jsonl" 2>/dev/null \
+ | awk -F'\t' '{printf "%s [%s] [%s]\n", $1, $2, $3}' \
+ | anew -q "webs/llm_probe.txt"
+ fi
+
+ end_func "Results are saved in webs/llm_probe.[jsonl|txt]" "${FUNCNAME[0]}"
+ else
+ if [[ "${LLM_PROBE:-false}" == "false" ]]; then
+ skip_notification "disabled"
+ else
+ skip_notification "processed"
+ fi
+ fi
+}
+
# Classify targets into normal and slow lists for adaptive fuzzing
_fuzz_classify_targets() {
sort -u webs/webs_all.txt -o webs/webs_all.txt 2>/dev/null || true
diff --git a/reconftw.cfg b/reconftw.cfg
index 7c3cd01..a26c8be 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -126,6 +126,11 @@ MAIL_HYGIENE=true # Check DMARC/SPF records
CLOUD_ENUM=true # Enumerate cloud storage across providers with cloud_enum
GITHUB_LEAKS=true # Search for leaked secrets across all of GitHub with ghleaks
GHLEAKS_THREADS=5 # Concurrent download threads for ghleaks
+SECRETS_ENGINE="gitleaks" # gitleaks|titus|noseyparker|hybrid
+SECRETS_SCAN_GIT_HISTORY=false # Include git history scans when supported by selected secrets engine
+SECRETS_VALIDATE=false # Validate secrets against provider APIs when supported (currently titus)
+GITHUB_ACTIONS_AUDIT=false # Audit GitHub Actions artifacts/workflows with gato
+GATO_INCLUDE_ALL_ARTIFACT_SECRETS=false # Include noisy artifact secret matches in gato results
# Subdomains
SUBDOMAINS_GENERAL=true # Enable or disable the whole Subdomains module
@@ -180,6 +185,9 @@ PORTSCAN_STRATEGY=legacy # legacy|naabu_nmap
NAABU_ENABLE=true # Use naabu pre-discovery when PORTSCAN_STRATEGY=naabu_nmap
NAABU_RATE=1000 # naabu requests per second
NAABU_PORTS="--top-ports 1000" # e.g. "--top-ports 1000" or "-p -"
+SERVICE_FINGERPRINT=true # Fingerprint exposed services with fingerprintx after active scan
+SERVICE_FINGERPRINT_ENGINE="fingerprintx" # fingerprintx
+SERVICE_FINGERPRINT_TIMEOUT_MS=2000 # fingerprintx per-target timeout (ms)
PORTSCAN_UDP=false # Optional UDP scan (requires privileges)
PORTSCAN_UDP_OPTIONS="--top-ports 20 -sU -sV -n -Pn --open"
CDN_IP=true # Check which IPs belongs to CDN
@@ -247,6 +255,11 @@ SECOND_ORDER_DEPTH=1 # second-order crawl depth
SECOND_ORDER_THREADS=10 # second-order thread count
SECOND_ORDER_INSECURE=false # second-order accept invalid TLS
SPRAY=true # Performs password spraying
+SPRAY_ENGINE="brutespray" # brutespray|brutus
+SPRAY_BRUTUS_ONLY_DEEP=true # Run brutus spraying only in DEEP mode (unless explicitly disabled)
+BRUTUS_USERNAMES="" # Optional comma-separated usernames for brutus
+BRUTUS_PASSWORDS="" # Optional comma-separated passwords for brutus
+BRUTUS_KEY_FILE="" # Optional SSH private key path for brutus
COMM_INJ=true # Check for command injections with commix
SMUGGLING=true # Check for HTTP request smuggling flaws
WEBCACHE=true # Check for Web Cache issues
@@ -391,6 +404,8 @@ GRAPHQL_CHECK=true # Detect GraphQL endpoints and introspection
GQLSPECTION=false # Run GQLSpection deep introspection on detected GraphQL endpoints (heavier)
PARAM_DISCOVERY=true # Parameter discovery with arjun
GRPC_SCAN=false # Attempt basic gRPC reflection on common ports
+LLM_PROBE=false # Probe discovered web/API endpoints for exposed LLM services using julius
+LLM_PROBE_AUGUSTUS=false # Include augustus generator config in julius output
# IPv6
IPV6_SCAN=true # Attempt IPv6 discovery/portscan where addresses exist
diff --git a/tests/unit/test_new_tool_integrations.bats b/tests/unit/test_new_tool_integrations.bats
index a4c71f7..3983fc5 100644
--- a/tests/unit/test_new_tool_integrations.bats
+++ b/tests/unit/test_new_tool_integrations.bats
@@ -313,3 +313,91 @@ SH
rm -f /tmp/ghleaks_args.txt
}
+@test "service_fingerprint writes fingerprintx artifacts from naabu input" {
+ mkdir -p hosts .tmp
+ printf '%s\n' '10.10.10.10:22' > hosts/naabu_open.txt
+
+ cat > "$MOCK_BIN/fingerprintx" <<'SH'
+#!/usr/bin/env bash
+outfile=""
+while [[ $# -gt 0 ]]; do
+ case "$1" in
+ -o)
+ outfile="$2"
+ shift 2
+ ;;
+ *)
+ shift
+ ;;
+ esac
+done
+printf '%s\n' '{"host":"10.10.10.10","port":22,"protocol":"ssh"}' > "$outfile"
+SH
+ chmod +x "$MOCK_BIN/fingerprintx"
+
+ export SERVICE_FINGERPRINT=true
+ export SERVICE_FINGERPRINT_ENGINE="fingerprintx"
+ export SERVICE_FINGERPRINT_TIMEOUT_MS=500
+ export AXIOM=false
+
+ run service_fingerprint
+ [ "$status" -eq 0 ]
+ [ -s "hosts/fingerprintx.jsonl" ]
+ [ -s "hosts/fingerprintx.txt" ]
+ grep -q "10.10.10.10:22" "hosts/fingerprintx.txt"
+}
+
+@test "spraying supports brutus engine with fingerprintx json input" {
+ mkdir -p hosts vulns .tmp
+ printf '%s\n' 'Host: 10.10.10.10 () Ports: 22/open/tcp//ssh///' > hosts/portscan_active.gnmap
+ printf '%s\n' '{"host":"10.10.10.10","port":22,"protocol":"ssh"}' > hosts/fingerprintx.jsonl
+
+ cat > "$MOCK_BIN/brutus" <<'SH'
+#!/usr/bin/env bash
+outfile=""
+while [[ $# -gt 0 ]]; do
+ case "$1" in
+ -o)
+ outfile="$2"
+ shift 2
+ ;;
+ *)
+ shift
+ ;;
+ esac
+done
+cat >/dev/null
+printf '%s\n' '{"protocol":"ssh","target":"10.10.10.10:22","username":"root","password":"toor"}' > "$outfile"
+SH
+ chmod +x "$MOCK_BIN/brutus"
+
+ export SPRAY=true
+ export SPRAY_ENGINE="brutus"
+ export SPRAY_BRUTUS_ONLY_DEEP=false
+ export DEEP=false
+
+ run spraying
+ [ "$status" -eq 0 ]
+ [ -s "vulns/brutus.jsonl" ]
+ grep -q "10.10.10.10:22" "vulns/brutus.jsonl"
+}
+
+@test "llm_probe writes julius jsonl output" {
+ mkdir -p webs .tmp
+ printf '%s\n' 'https://llm.target.example.com' > webs/webs_all.txt
+
+ cat > "$MOCK_BIN/julius" <<'SH'
+#!/usr/bin/env bash
+printf '%s\n' '{"target":"https://llm.target.example.com","provider":"openai-compatible","probe":"chat-completions"}'
+SH
+ chmod +x "$MOCK_BIN/julius"
+
+ export LLM_PROBE=true
+ export LLM_PROBE_AUGUSTUS=false
+
+ run llm_probe
+ [ "$status" -eq 0 ]
+ [ -s "webs/llm_probe.jsonl" ]
+ [ -s "webs/llm_probe.txt" ]
+ grep -q "openai-compatible" "webs/llm_probe.txt"
+}