Skip to content

Instantly share code, notes, and snippets.

View wangwenx190's full-sized avatar
🥵
管人实在是太好看辣!!!

Yuhang Zhao wangwenx190

🥵
管人实在是太好看辣!!!
  • Earth Co.,Ltd.
  • Suzhou, Jiangsu, PRC
  • 18:45 (UTC +08:00)
View GitHub Profile
@alvinhochun
alvinhochun / cfguard-for-mingw-w64.md
Last active May 11, 2025 19:47
Control Flow Guard (CFG/CFGuard) for mingw-w64

Control Flow Guard (CFG/CFGuard) for mingw-w64

Control Flow Guard is a security mitigation that verifies the target address of indirect calls. It works by having the compiler insert a check at indirect call sites to verify the validity of the call target, and also the linker write the necessary data and flags into the PE/COFF image to enable the feature on Windows' end.

@mmozeiko
mmozeiko / ods.c
Created April 16, 2019 19:20
Example how to capture OutputDebugString on Windows
#include <windows.h>
#include <intrin.h>
#define Assert(x) do { if (!(x)) __debugbreak(); } while (0)
static struct
{
DWORD process_id;
char data[4096 - sizeof(DWORD)];
}* ods_buffer;