Skip to main content

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.
Output includes: ID, username, domain, type (password/hash/cert/ccache/AES), source, and notes. Sensitive values (passwords, hashes) are redacted by default; use --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.
Takes the numeric ID from 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:
  1. Inline flags--username, --password, --hash, --ccache, --pfx, --cert+--key, --aes, --anonymous
  2. --credential-id flag — use a specific stored credential by ID
  3. Active credential — the credential set via creds set (retrieved from Badger)
  4. Anonymous — unauthenticated if no credential is available (where supported)
This means once you run 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.