Configuration Reference

Complete reference for all s3finder flags and environment variables.

Command-Line Flags

Input Options

FlagShortDefaultDescription
--seed-sTarget keyword for bucket name generation (permuted)
--domain-dTarget domain for CT log subdomain discovery (as-is)
--ct-limit100Maximum subdomains to fetch from CT logs
--wordlist-wPath to wordlist file (raw)

Performance Options

FlagShortDefaultDescription
--threads-t50Number of concurrent workers
--rps150Maximum requests per second
--timeout15Request timeout in seconds
--deeptruePerform deep inspection on found buckets

AI Options

FlagShortDefaultDescription
--aifalseEnable AI-powered name generation
--ai-provideropenaiAI provider: openai, ollama, anthropic, gemini
--ai-modelgpt-4o-miniAI model name
--ai-keyAPI key (or use environment variables)
--ai-urlBase URL for custom endpoints or proxies
--ai-count50Number of AI-generated names

Output Options

FlagShortDefaultDescription
--output-oresults.jsonOutput file path
--format-fjsonOutput format: json, txt
--no-colorfalseDisable colored output
--verbose-vfalseVerbose output

Environment Variables

VariableDescription
OPENAI_API_KEYOpenAI API key for AI generation
ANTHROPIC_API_KEYAnthropic API key for Claude
GEMINI_API_KEYGoogle Gemini API key

HTTP Client Configuration

The internal HTTP client is optimized for high-throughput scanning:

SettingValueDescription
MaxIdleConns1000Maximum idle connections
MaxIdleConnsPerHost100Max idle connections per host
MaxConnsPerHost100Max connections per host
IdleConnTimeout30sIdle connection timeout
TLSHandshakeTimeout5sTLS handshake timeout

Rate Limiting

s3finder uses an adaptive AIMD rate limiter:

  • Ceiling: User-defined via --rps flag
  • Floor: 10 RPS minimum
  • Decrease: Halves RPS after 3 consecutive 429/503 responses
  • Increase: +10% RPS every 100 successful requests

Permutation Patterns

The permutation engine generates variations using these patterns:

Suffixes

text
-dev, -prod, -staging, -backup, -backups, -logs, -assets, -internal, -public, -private, -data, -files, -media, -static, -cdn, -api, -web, -app, -test, -temp, -archive, -old, -new, -v2, -beta

Prefixes

text
dev-, prod-, staging-, backup-, test-, internal-, public-, private-, temp-, old-

Years

text
-2022, -2023, -2024, -2025, -22, -23, -24, -25

Regions

text
-us-east-1, -us-east-2, -us-west-1, -us-west-2, -eu-west-1, -eu-west-2, -eu-central-1, -ap-south-1, -ap-northeast-1, -ap-southeast-1

S3 Bucket Naming Rules

s3finder validates all generated names against AWS S3 bucket naming rules:

  • Length: 3-63 characters
  • Lowercase letters, numbers, hyphens, and dots only
  • Must start and end with a letter or number
  • No consecutive periods
  • Cannot be formatted as an IP address