Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <cstdio>
- void MainLoop() {
- void *addyres = (void*)0x10003760;
- char command[] = "$a = 2";
- __asm {
- lea eax, command
- push eax
- call [addyres];
- pop ebx
- }
- return;
- }
- BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID lpReserved) {
- switch(reason) {
- case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hModule);
- CreateThread(
- NULL,
- 0,
- (unsigned long(__stdcall*)(void*))MainLoop,
- NULL,
- 0,
- NULL
- );
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment