Credentials
R4t stores authentication credentials in its SQLite database. Multiple credential types are supported — passwords, NT hashes, Kerberos ccache files, PFX certificates, PEM certificate+key pairs, and AES keys. A single credential can be set as the active default for all commands.The creds Command
Subcommands
creds add
Add a credential to the database.
Flags for creds add
PFX files are copied into ~/.local/share/r4t/files/pfx/ and the stored path is updated to the local copy.
creds list
List all stored credentials.
--auth to reveal them.
creds set
Set a credential as the active default. The active credential is stored in Badger (cfg:credentials) and used automatically by all commands.
creds list.
creds modify
Modify an existing stored credential.
Flags for creds modify
creds remove
Remove a credential from the database.
How Credentials Are Resolved
When a command needs to authenticate, R4t resolves credentials in this priority order:- Inline flags —
--username,--password,--hash,--ccache,--pfx,--cert+--key,--aes,--anonymous --credential-idflag — use a specific stored credential by ID- Active credential — the credential set via
creds set(retrieved from Badger) - Anonymous — unauthenticated if no credential is available (where supported)
r4t creds set 1, all subsequent commands authenticate with that credential automatically.
Credential Data Model
Supported Authentication Methods
Using Credentials Inline
If you don’t want to store credentials, you can pass them inline on any command:Kerberos Ticket Storage
Kerberos TGTs and TGSs obtained during a session can be stored in the database:
These are linked to the credential record that was used to obtain them. Use
r4t tickets to manage saved Kerberos tickets.
