Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // dllmain.cpp : Defines the entry point for the DLL application.
- #include "pch.h"
- void vMain()
- {
- while (1)
- {
- if (GetModuleHandleA("menace.dll") != 0)
- {
- MessageBox(0, "DLL injected!", "Bidasci", MB_OK | MB_ICONERROR);
- *(char*)(GetModuleHandleA("menace.dll") + 0x8DD1B1E) = 0x74;
- break;
- }
- Sleep(1);
- }
- }
- BOOL WINAPI DllMain(HMODULE hModule, DWORD Reason, LPVOID Reserved)
- {
- if (Reason == DLL_PROCESS_ATTACH)
- {
- DisableThreadLibraryCalls(hModule);
- CreateThread(0, 0, (LPTHREAD_START_ROUTINE)vMain, hModule, 0, 0);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement