Targets
R4t maintains a list of target hosts in its SQLite database. A single target can be set as the default (“active target”) so you don’t have to specify--ldap-server or a target hostname on every command.
The targets Command
Subcommands
targets add
Add a target to the database.
targets table in SQLite with an auto-incremented ID, IP address, DNS hostname, and optional notes.
targets list
List all stored targets.
targets set
Set a target as the default (active) target. The active target is stored in the Badger KV store (cfg:target) and used automatically by commands that need a target server.
targets list.
targets remove
Remove a target from the database.
How Targets Are Used
When a command needs to connect to a server (LDAP, SMB, RPC, etc.), it resolves the target in this order:--ldap-server/ explicit server flag — inline override takes highest priority--target-idflag — use a specific stored target by ID- Active target — the target set via
targets set(retrieved from Badger) - Domain-based DNS resolution — if no target is stored, resolve the domain’s DC via DNS SRV records
r4t targets set 1, you can run subsequent commands without specifying a server:

