Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Main.h"
- #include "../RL/ReflectiveLoader.h"
- #define Me -691488123 //HWID goes here, use the HWID finder attached... ex. #define Me 1234567890
- #define Friend1 -691488123
- #define Friend2 -691488123
- #define Friend3 -691488123
- extern HINSTANCE hAppInstance;
- UCHAR szFileSys[255], szVolNameBuff[255];
- DWORD dwMFL, dwSysFlags;
- DWORD dwSerial;
- LPCTSTR szHD = "C:\\";
- //[enc_string_enable /]
- //[junk_enable /]
- DWORD WINAPI CheatEntry( LPVOID lpThreadParameter )
- {
- HMODULE hModule = (HMODULE)lpThreadParameter;
- if ( Engine::Initialize() )
- {
- return 0;
- }
- return 0;
- }
- BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
- {
- if (fdwReason == DLL_PROCESS_ATTACH)
- {
- DisableThreadLibraryCalls(hinstDLL);
- Client::BaseDir = CSX::Utils::GetHackWorkingDirectory().c_str();
- if (Client::BaseDir.size() < 1)
- {
- Client::BaseDir = CSX::Utils::GetModuleBaseDir(hinstDLL);
- }
- //HWID stuff...
- GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
- if (dwSerial == Me ||
- dwSerial == Friend1 ||
- dwSerial == Friend2 ||
- dwSerial == Friend3)
- {
- Sleep(100);
- }
- else
- {
- // when HWID rejected
- MessageBox(NULL, "HWID doesn't match!", "Indigo Pasterino", MB_OK);
- exit(0);
- return TRUE;
- }
- #if ENABLE_DEBUG_FILE == 1
- AllocConsole();
- AttachConsole(GetCurrentProcessId());
- freopen("CONIN$", "r", stdin);
- freopen("CONOUT$", "w", stdout);
- freopen("CONOUT$", "w", stderr);
- Client::LogFile = Client::BaseDir + "\\debug.log";
- DeleteFileA( Client::LogFile.c_str() );
- CSX::Log::LogFile = Client::LogFile;
- printf("Client::BaseDir = %s\nClient::LogFile = %s\n", Client::BaseDir.c_str(), Client::LogFile.c_str());
- CSX::Log::Add( "::Init::" );
- #endif
- CreateThread( 0 , 0 , CheatEntry , hinstDLL , 0 , 0 );
- }
- else if ( fdwReason == DLL_PROCESS_DETACH )
- {
- Engine::Shutdown();
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement