Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jalvarezz13/krb5keygen
Krb5KeyGen is a tool designed to generate NTLM and Kerberos AES encryption keys based on user-provided credentials, domain information, and optional iteration counts.
https://github.com/jalvarezz13/krb5keygen
Last synced: about 1 month ago
JSON representation
Krb5KeyGen is a tool designed to generate NTLM and Kerberos AES encryption keys based on user-provided credentials, domain information, and optional iteration counts.
- Host: GitHub
- URL: https://github.com/jalvarezz13/krb5keygen
- Owner: jalvarezz13
- License: agpl-3.0
- Created: 2024-11-07T17:53:14.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T17:59:45.000Z (about 2 months ago)
- Last Synced: 2024-11-07T18:49:55.903Z (about 2 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Krb5KeyGen
## π Table of Contents
- [β What is Krb5KeyGen?](#-what-is-krb5keygen)
- [β Features](#-features)
- [βοΈ Installation](#%EF%B8%8F-installation)
- [βΆοΈ Execution](#%EF%B8%8F-execution)
- [π License](#-license)## β What is **Krb5KeyGen**?
**Krb5KeyGen** is a tool designed to generate NTLM and Kerberos AES encryption keys based on user-provided credentials, domain information, and optional iteration counts.
## β Features
- Generate NTLM (RC4-HMAC) key.
- Generate AES128 and AES256 Kerberos keys with specified or default iteration counts.## βοΈ Installation
### Prerequisites
Ensure you have:
- Python 3.7 or higher
### Clone the Repository
```bash
git clone https://github.com/yourusername/Krb5KeyGen.git
cd Krb5KeyGen
```## βΆοΈ Execution
To run **Krb5KeyGen**, use the following syntax:
```bash
python krb5_keygen.py [--iterations ]
```- ``: The case-sensitive username (e.g., `Administrator` is different from `administrator`).
- ``: The userβs password.
- ``: The domain, which can be in uppercase or lowercase (e.g., `CONTOSO.LOCAL` or `contoso.local`).
- `--iterations ` (optional): Specify the number of iterations (default is 4096, commonly used in Kerberos and Active Directory).### Example Commands
Generate keys with the default iteration count (4096):
```bash
python krb5_keygen.py alice "mypassword123" contoso.local
```Generate keys with a custom iteration count:
```bash
python krb5_keygen.py alice "mypassword123" contoso.local --iterations 5000
```### Output
The output will include the following:
- **NTLM Key (RC4-HMAC)**: NTLM hash-based key.
- **AES128 Key**: AES 128-bit key for Kerberos.
- **AES256 Key**: AES 256-bit key for Kerberos.```bash
$> python .\krb5_keygen.py javier password contoso.local
Key NTLM (RC4-HMAC): 8846f7eaee8fb117ad06bdd830b7586c
Key AES128: 87e00e150694edbf7cedbc4d0ccbca5f
Key AES256: c59c4adaaf06d6758b825e088178aa9fa66639b4dc3b160a6b347704dfd64b9e
```> **Note**: By default, the tool uses 4096 iterations unless a different value is specified.
## π License
This project is distributed under the [AGPL-3.0 License](LICENSE). Feel free to use, modify, and distribute it as per the license terms.