Skip to content

Instantly share code, notes, and snippets.

View keyboardancer's full-sized avatar

rceeeeeeeeeeeeee keyboardancer

View GitHub Profile
@xpn
xpn / LAPSDecrypt.cs
Last active October 21, 2025 14:17
Quick POC looking at how encryption works for LAPS (v2)
using System;
using System.Collections.Generic;
using System.DirectoryServices.Protocols;
using System.Globalization;
using System.Linq;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Security.Policy;
using System.Security.Principal;
using System.Text;