Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rubeus/lib/Crypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static string KerberosPasswordHash(Interop.KERB_ETYPE etype, string passw

byte[] output = new byte[pCSystem.KeySize];

int success = pCSystemHashPassword(passwordUnicode, saltUnicode, count, output);
int success = pCSystemHashPassword(ref passwordUnicode, ref saltUnicode, count, output);

if (status != 0)
throw new Win32Exception(status);
Expand Down
2 changes: 1 addition & 1 deletion Rubeus/lib/Interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ public class NetResource
public delegate int KERB_ECRYPT_Decrypt(IntPtr pContext, byte[] data, int dataSize, byte[] output, ref int outputSize);
public delegate int KERB_ECRYPT_Finish(ref IntPtr pContext);

public delegate int KERB_ECRYPT_HashPassword(UNICODE_STRING Password, UNICODE_STRING Salt, int count, byte[] output);
public delegate int KERB_ECRYPT_HashPassword(ref UNICODE_STRING Password, ref UNICODE_STRING Salt, int count, byte[] output);

//https://github.com/vletoux/MakeMeEnterpriseAdmin/blob/master/MakeMeEnterpriseAdmin.ps1#L1760-L1767
public delegate int KERB_CHECKSUM_Initialize(int unk0, out IntPtr pContext);
Expand Down