Skip to content

Instantly share code, notes, and snippets.

@ckrueger1979
ckrueger1979 / sccmdecryptpoc.cs
Created July 5, 2022 06:18 — forked from xpn/sccmdecryptpoc.cs
SCCM Account Password Decryption POC
// Twitter thread: https://twitter.com/_xpn_/status/1543682652066258946 (was a bit bored ;)
// Needs to be run on the SCCM server containing the "Microsoft Systems Management Server" CSP for it to work.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace SCCMDecryptPOC
{
internal class Program
#
# New-IsoFile: simple PowerShell function to create iso file from a directory
#
# This is heavily simplified code inspired from:
# https://blog.apps.id.au/powershell-tools-create-an-iso/
# http://blogs.msdn.com/b/opticalstorage/archive/2010/08/13/writing-optical-discs-using-imapi-2-in-powershell.aspx
# http://tools.start-automating.com/Install-ExportISOCommand/
# http://stackoverflow.com/a/9802807/223837
function New-IsoFile