Skip to content

Instantly share code, notes, and snippets.

View mspi21's full-sized avatar
🦦

Milan mspi21

🦦
View GitHub Profile
@mspi21
mspi21 / Win32ListLdrModules.cpp
Last active August 9, 2025 22:29
List loaded modules without any API calls (32-bit PEs only).
#include <cstdio>
#include <windows.h>
#if !defined(_WIN32) || defined(_WIN64)
#error This snippet is only valid for x86 executables!
#endif
typedef struct _UNICODE_STRING {
unsigned __int16 Length;
unsigned __int16 MaximumLength;