Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. #define ExampleHWID 1280458416
  2.  
  3.  
  4. extern HINSTANCE hAppInstance;
  5.  
  6. UCHAR szFileSys[255], szVolNameBuff[255];
  7. DWORD dwMFL, dwSysFlags;
  8. DWORD dwSerial;
  9. LPCTSTR szHD = "C:\\";
  10.  
  11. HINSTANCE HThisModule;
  12. bool DoUnload;
  13.  
  14.  
  15. int InitialThread()
  16. {
  17. #ifdef Aqqure_DEBUG
  18. Utilities::OpenConsole("Aqqurehook");
  19. #endif
  20. PrintMetaHeader();
  21.  
  22. Offsets::Initialise();
  23. Interfaces::Initialise();
  24. NetVar.RetrieveClasses();
  25. NetvarManager::Instance()->CreateDatabase();
  26. Render::Initialise();
  27. Hacks::SetupHacks();
  28. Menu::SetupMenu();
  29. Hooks::Initialise();
  30.  
  31. //Dump::DumpClassIds();
  32.  
  33.  
  34. Utilities::Log("Ready");
  35.  
  36. while (DoUnload == false)
  37. {
  38. Sleep(1000);
  39. }
  40.  
  41. Hooks::UndoHooks();
  42. Sleep(2000);
  43. FreeLibraryAndExitThread(HThisModule, 0);
  44.  
  45. return 0;
  46. }
  47.  
  48. BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
  49. {
  50. if (dwReason == DLL_PROCESS_ATTACH)
  51. {
  52. GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
  53.  
  54. if (dwSerial == ExampleHWID)
  55. {
  56. Sleep(100);
  57. }
  58. else
  59. {
  60. // when HWID rejected
  61. MessageBox(NULL, "HWID doesn't match u Fakkin noob!", "Aqqurehook", MB_OK);
  62. exit(0);
  63. return TRUE;
  64. }
  65.  
  66. {
  67. {
  68. DisableThreadLibraryCalls(hModule);
  69.  
  70. CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)InitialThread, NULL, NULL, NULL);
  71.  
  72. return TRUE;
  73. }
  74. }
  75. return FALSE;
  76. }
  77. else if (dwReason == DLL_PROCESS_DETACH)
  78. {
  79. }
  80. return TRUE;
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement