Conghao97's picture tcftrees's picture
ProgramGen release
d086025
|
Raw History Blame Contribute Delete
2.52 kB

Environment Variables

All OXIDE_* variables are optional; the CLI flags override the corresponding environment values. Invalid values abort the run with a config error naming the variable (e.g. Invalid OXIDE_THREADS value).

Scan behaviour

Variable Type / values Default Effect
OXIDE_THREADS integer 200 Maximum concurrent connections / worker threads
OXIDE_SCAN_TIMEOUT milliseconds 1000 Connection timeout per probe
OXIDE_SHUTDOWN_TIMEOUT seconds 30 Grace period for in-flight work on exit

Rate limiting

Variable Type / values Default Effect
OXIDE_ENABLE_RATE_LIMIT true / false true Master switch (same effect as --no-rate-limit, which disables it)
OXIDE_SCANNER_RATE_LIMIT requests per second 50 Cap on scan probes
OXIDE_EXTERNAL_TOOLS_RATE_LIMIT requests per second 5 Cap on external tool (nmap) invocations
OXIDE_EXPLOIT_QUERIES_RATE_LIMIT requests per second 2 Cap on exploit-database queries

Logging

Variable Type / values Default Effect
OXIDE_LOG_LEVEL trace, debug, info, warn, error info Diagnostics verbosity
OXIDE_LOG_CONSOLE true / false true Also print log records to the terminal
OXIDE_LOG_JSON true / false false Emit log records as JSON lines
OXIDE_LOG_CONSOLE_TIMESTAMPS true / false false Prefix console log lines with timestamps

Retries

Variable Type / values Default Effect
OXIDE_RETRY_MAX_ATTEMPTS integer 3 Attempts for a failed external-tool call
OXIDE_RETRY_BASE_DELAY_MS milliseconds 100 First backoff delay
OXIDE_RETRY_MAX_DELAY_MS milliseconds 5000 Upper bound on the backoff delay

Metrics (optional)

Variable Type / values Default Effect
OXIDE_METRICS_ENABLED true / false false Export runtime metrics
OXIDE_METRICS_PORT TCP port 9090 Port the metrics endpoint listens on
OXIDE_METRICS_INTERVAL seconds 30 Export interval

Example

export OXIDE_THREADS=8
export OXIDE_SCAN_TIMEOUT=50
export OXIDE_LOG_LEVEL=info
export OXIDE_ENABLE_RATE_LIMIT=true
oxscan scanme.nmap.org -5k