Skip to content

Instantly share code, notes, and snippets.

@bstaint
Last active December 10, 2017 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bstaint/2b6d8701b6879e1e77c747bca5ad486e to your computer and use it in GitHub Desktop.
Save bstaint/2b6d8701b6879e1e77c747bca5ad486e to your computer and use it in GitHub Desktop.
#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