Skip to content

Instantly share code, notes, and snippets.

View Scarjit's full-sized avatar

Ferdinand Linnenberg Scarjit

View GitHub Profile
@Scarjit
Scarjit / getduid.cs
Created May 7, 2022 21:38 — forked from Wack0/getduid.cs
clipc!GetOfflineDeviceUniqueID PoC.
using System;
using System.Runtime.InteropServices;
enum RETRIEVAL_METHOD {
ODUID_DEFAULT = 0,
ODUID_TPM_EK,
ODUID_UEFI_VARIABLE_TPM,
ODUID_UEFI_VARIABLE_RANDOMSEED,
ODUID_UEFI_DEV_LOCK_UNLOCK, // there is no code for this in clipsvc.dll, given the enum name, this could be Windows Phone only?
ODUID_XBOX_CONSOLE_ID, // this should never be seen, with xbox one a different function is called to get the console ID