Skip to main content

Overview

Generate password hashes for various Kerberos encryption types from plaintext passwords. This utility command helps create the appropriate hash formats needed for other Rubeus operations.

Syntax

Required Parameters

password
string
required
Plaintext password to hash

Optional Parameters

user
string
Username for salt generation (required for AES)
domain
string
Domain for salt generation (required for AES)

Examples

Hash Types Generated

RC4/NTLM Hash:
  • Standard NTLM hash (MD4)
  • Most widely compatible
  • Default encryption for many environments
  • Used in RC4-HMAC Kerberos encryption
AES128-CTS-HMAC-SHA1-96:
  • Requires username and domain for salt
  • Stronger encryption than RC4
  • PBKDF2 with 4096 iterations
  • Modern Kerberos environments
AES256-CTS-HMAC-SHA1-96:
  • Highest security encryption type
  • Requires username and domain for salt
  • PBKDF2 with 4096 iterations
  • Preferred for high-security environments

Salt Generation

Salt Composition:
  • Domain name (uppercase) + username (as-typed)
  • Example: CORP.LOCALadmin
  • Case-sensitive for username portion
  • Required for AES hash generation
Examples:

Use Cases

Attack Preparation:
  • Generate hashes for pass-the-hash attacks
  • Prepare credentials for ticket requests
  • Create hashes for golden/silver tickets
  • Support various authentication methods
Format Conversion:
  • Convert plaintext to required hash formats
  • Support different Kerberos encryption types
  • Prepare credentials for specific targets
  • Enable cross-environment compatibility

Integration Workflows

Complete Workflow:
Multi-Format Operations:

Output Format

Example Output:

Security Considerations

Encryption Strength:
  • RC4: Weakest, widely supported
  • AES128: Good security, moderate compatibility
  • AES256: Strongest security, modern systems
Salt Importance:
  • AES hashes include user-specific salt
  • Prevents rainbow table attacks
  • Increases cracking difficulty
  • Domain and username case sensitivity matters
  • asktgt - Use generated hashes for authentication
  • golden - Use hashes for ticket forgery
  • silver - Use service account hashes
  • changepw - Change passwords to generate new hashes