Advertisement
NoisyBoyAM

Untitled

Feb 25th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. #include "Main.h"
  2. #include "../RL/ReflectiveLoader.h"
  3.  
  4. #define Me -691488123 //HWID goes here, use the HWID finder attached... ex. #define Me 1234567890
  5. #define Friend1 -691488123
  6. #define Friend2 -691488123
  7. #define Friend3 -691488123
  8.  
  9. extern HINSTANCE hAppInstance;
  10.  
  11. UCHAR szFileSys[255], szVolNameBuff[255];
  12. DWORD dwMFL, dwSysFlags;
  13. DWORD dwSerial;
  14. LPCTSTR szHD = "C:\\";
  15.  
  16.  
  17. //[enc_string_enable /]
  18. //[junk_enable /]
  19. DWORD WINAPI CheatEntry( LPVOID lpThreadParameter )
  20. {
  21. HMODULE hModule = (HMODULE)lpThreadParameter;
  22.  
  23. if ( Engine::Initialize() )
  24. {
  25. return 0;
  26. }
  27.  
  28. return 0;
  29. }
  30.  
  31. BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
  32. {
  33. if (fdwReason == DLL_PROCESS_ATTACH)
  34. {
  35. DisableThreadLibraryCalls(hinstDLL);
  36.  
  37. Client::BaseDir = CSX::Utils::GetHackWorkingDirectory().c_str();
  38.  
  39. if (Client::BaseDir.size() < 1)
  40. {
  41. Client::BaseDir = CSX::Utils::GetModuleBaseDir(hinstDLL);
  42. }
  43. //HWID stuff...
  44. GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
  45.  
  46. if (dwSerial == Me ||
  47. dwSerial == Friend1 ||
  48. dwSerial == Friend2 ||
  49. dwSerial == Friend3)
  50. {
  51. Sleep(100);
  52. }
  53. else
  54. {
  55. // when HWID rejected
  56. MessageBox(NULL, "HWID doesn't match!", "Indigo Pasterino", MB_OK);
  57. exit(0);
  58. return TRUE;
  59. }
  60.  
  61. #if ENABLE_DEBUG_FILE == 1
  62. AllocConsole();
  63. AttachConsole(GetCurrentProcessId());
  64. freopen("CONIN$", "r", stdin);
  65. freopen("CONOUT$", "w", stdout);
  66. freopen("CONOUT$", "w", stderr);
  67.  
  68. Client::LogFile = Client::BaseDir + "\\debug.log";
  69. DeleteFileA( Client::LogFile.c_str() );
  70. CSX::Log::LogFile = Client::LogFile;
  71. printf("Client::BaseDir = %s\nClient::LogFile = %s\n", Client::BaseDir.c_str(), Client::LogFile.c_str());
  72. CSX::Log::Add( "::Init::" );
  73.  
  74. #endif
  75.  
  76. CreateThread( 0 , 0 , CheatEntry , hinstDLL , 0 , 0 );
  77. }
  78. else if ( fdwReason == DLL_PROCESS_DETACH )
  79. {
  80. Engine::Shutdown();
  81. }
  82.  
  83. return TRUE;
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement