Skip to content

Instantly share code, notes, and snippets.

@bstaint bstaint/dmcrack.cpp Secret
Last active Dec 10, 2017

Embed
What would you like to do?
#include <tchar.h>
#include <Windows.h>
#include "dmcrack.h"
int patch()
{
TCHAR addr[50] = { 0 };
auto patched = (BYTE *)GetModuleHandle(_T("dm.dll")) + 0x1063D0;
_stprintf(addr, _T("addr = 0x%x"), (DWORD)patched);
OutputDebugString(addr);
*patched = 1;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.