Advertisement
Guest User

Untitled

a guest
Mar 31st, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. // dllmain.cpp : Defines the entry point for the DLL application.
  2. #include "pch.h"
  3.  
  4. void vMain()
  5. {
  6.     while (1)
  7.     {
  8.         if (GetModuleHandleA("menace.dll") != 0)
  9.         {
  10.             MessageBox(0, "DLL injected!", "Bidasci", MB_OK | MB_ICONERROR);
  11.             *(char*)(GetModuleHandleA("menace.dll") + 0x8DD1B1E) = 0x74;
  12.             break;
  13.         }
  14.         Sleep(1);
  15.     }
  16. }
  17.  
  18. BOOL WINAPI DllMain(HMODULE hModule, DWORD Reason, LPVOID Reserved)
  19. {
  20.     if (Reason == DLL_PROCESS_ATTACH)
  21.     {
  22.         DisableThreadLibraryCalls(hModule);
  23.         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)vMain, hModule, 0, 0);
  24.     }
  25.     return true;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement