Skip to content

Instantly share code, notes, and snippets.

View aloraman's full-sized avatar

Evgeniy Alexandrov aloraman

  • Saint-Petersburg, Russia
View GitHub Profile
@aloraman
aloraman / ApiSetCheck.cpp
Created January 24, 2026 17:39
Check process PEB for API-set DLLs on Windows 10+
//Mostly taken from here: https://stackoverflow.com/questions/14766019/exported-function-forwarded-to-itself
#include <windows.h>
#include <cassert>
#include <atlstr.h>
struct kHost
{
DWORD Flags;
DWORD ImportOffset;
DWORD ImportSize;
@aloraman
aloraman / EqualityComparerEx.cs
Created August 12, 2022 09:55
EqualityComparerEx type from Adalon.Mediolanum
// LICENSE: MIT
// Taken from Adalon.Mediolanum
// Not published yet
// Will be published under MIT license
// To use: replace ThrowHelper with other null check
// replace FrugalPairLocalList with other List collection
// Usage: EqualityComparerEx.Select((Foo f) => f.IntProperty).ChainWith(f=>f.StringProperty, StringComparer.OrdinalIgnoreCase)
using System;
using System.Collections.Generic;
@aloraman
aloraman / RdpSign.cs
Last active April 20, 2026 13:34
Single method implementation of RdpSign algorithm
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.Pkcs;
using System.Security.Cryptography.X509Certificates;
using System.Text;
public static class Gist
{
// Based on original RdpSign reverse engineering by Norbert Federa (https://github.com/nfedera/rdpsign).