Documentation Index
Fetch the complete documentation index at: https://wiki.krkn.tech/llms.txt
Use this file to discover all available pages before exploring further.
Settings
R4t maintains persistent configuration in the Badger KV store. Use theset command to view and modify these settings.
The set Command
Flags
| Flag | Type | Description |
|---|---|---|
--domain | string | Default AD domain for all operations |
--ns | string | Default DNS nameserver |
--interface | string | Default network interface (e.g., eth0, tun0) |
--local-db | bool | Use per-directory SQLite DB instead of global (true/false) |
--debug | bool | Enable debug-level output (true/false) |
--tee | bool | Tee all output to a file (true/false) |
--color-scheme | string | Terminal color scheme name |
--status | — | Print current settings to stdout |
Individual Settings
Domain
The default domain is used when-d/--domain is not specified on the command line.
cfg:domain in Badger. Automatically detected from system DNS on first run but can be overridden at any time.
Nameserver
The nameserver is used for DNS-based discovery (LDAP server resolution, DC lookup, SRV records).cfg:nameserver. Auto-detected on first run from system DNS or from DC discovery.
Network Interface
Sets the default network interface for operations that require binding to a specific interface (e.g., coercion listeners, poisoning).cfg:interface.
Local Database
By default R4t storesr4t.sqlite in ~/.local/share/r4t/db/. Enabling local DB mode places the SQLite file in the current working directory — useful for keeping engagement data isolated.
cfg:local_db.
Note: Switching modes does not migrate data. You will start with a fresh database in the new location.
Debug Mode
Enables verbose debug-level logging to both the console and the log file.cfg:debug.
Output Tee
When enabled, all terminal output is also written to a timestamped file in~/.local/share/r4t/.
cfg:tee.
Color Scheme
R4t supports multiple color schemes for terminal output.default, dark, light, cyberpunk, and others.
Stored as cfg:color_scheme.
Viewing Current Settings
Proxy Settings
SOCKS5 proxy configuration is stored separately in Badger (cfg:proxy) and is set via the proxy command rather than set:
Settings Persistence
All settings are stored in the Badger KV store at~/.local/share/r4t/db/ and persist across invocations. The store is encrypted with AES-256 using a hardware-derived key, so the settings file is not readable without R4t.
Settings are loaded at startup before any command runs, so configured defaults apply automatically to every operation without re-specifying flags.
