Skip to content

Instantly share code, notes, and snippets.

@mariodon
mariodon / pedump.cpp
Created September 22, 2018 23:23
Dump main module of an executable using WINAPI
void dumpModule() {
int i = 0x400000;
// Get memory info of exe module
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery((LPCVOID)i, &mbi, sizeof(mbi));
ofstream outfile;
HANDLE moduleHandle = GetModuleHandle(NULL);
if (moduleHandle) {
cout << "Opened main module" << endl;
@mariodon
mariodon / ufuid.md
Last active December 26, 2020 09:39
Lock Chinese Magic Card "UFUID"

[ CLIENT ]

client: RRG/Iceman/master/v4.9237-2613-gc828caff3 2020-12-19 23:43:12

compiled with MinGW-w64 10.2.0 OS:Windows (64b) ARCH:x86_64

hf 14a raw -k -a -b 7 40
hf 14a raw -k -a 43
hf 14a raw -k -a e0 00 39 f7