Skip to content

Instantly share code, notes, and snippets.

View Kevin-Robertson's full-sized avatar

Kevin Robertson Kevin-Robertson

View GitHub Profile
@Kevin-Robertson
Kevin-Robertson / Get-KerberosAESKey.ps1
Last active August 20, 2024 19:36
Generate Kerberos AES keys from a known password
function Get-KerberosAESKey
{
<#
.SYNOPSIS
Generate Kerberos AES 128/256 keys from a known username/hostname, password, and kerberos realm. The
results have been verified against the test values in RFC3962, MS-KILE, and my own test lab.
https://tools.ietf.org/html/rfc3962
https://msdn.microsoft.com/library/cc233855.aspx

Keybase proof

I hereby claim:

  • I am kevin-robertson on github.
  • I am kevinrobertson (https://keybase.io/kevinrobertson) on keybase.
  • I have a public key ASA79WtFVPQJBezNx-RRzxww02Vy7Bu_QolbsJv7rMnDVwo

To claim this, I am signing this object: