-
Автор темы
- #1
Я дыбил не могу вырезать хвид из всяких паст.Знаю шо нужно менять Dllmain.cpp,только хз что
Пыжы памагити.
Вот пример сурса
Пыжы памагити.
Вот пример сурса
Код:
#define _CRT_SECURE_NO_WARNINGS
#include "DLLMain.h"
#include "Utilities.h"
#include "INJ/ReflectiveLoader.h"
#include "Offsets.h"
#include "Interfaces.h"
#include "Hooks.h"
#include "RenderManager.h"
#include "Hacks.h"
#include "Menu.h"
#include "AntiAntiAim.h"
#include "hitmarker.h"
#include "AntiLeak.h"
#include "Dumping.h"
#define me 1213810804
#define mvstyk -663775572
#define stiz 1922811539
float lineLBY;
float lineRealAngle;
float lineFakeAngle;
template <int XORSTART, int BUFLEN, int XREFKILLER>
class Xor
{
private:
Xor();
public:
char s[BUFLEN];
Xor(const char* xs);
~Xor()
{
for (int i = 0; i < BUFLEN; i++) s[i] = 0;
}
};
template <int XORSTART, int BUFLEN, int XREFKILLER>
Xor<XORSTART, BUFLEN, XREFKILLER>::Xor(const char* xs)
{
int xvalue = XORSTART;
int i = 0;
for (; i < (BUFLEN - 1); i++)
{
s[i] = xs[i - XREFKILLER] ^ xvalue;
xvalue += 1;
xvalue %= 256;
}
s[BUFLEN - 1] = (2 * 2 - 3) - 1;
}
extern HINSTANCE hAppInstance;
UCHAR szFileSys[255], szVolNameBuff[255];
DWORD dwMFL, dwSysFlags;
DWORD dwSerial;
LPCTSTR szHD = "C:\\";
bool ErasePEHeader(HMODULE hModule)
{
hModule = GetModuleHandle(NULL);
if ((DWORD)hModule == 0) return 0;
DWORD IMAGE_NT_HEADER = *(int*)((DWORD)hModule + 60);
for (int i = 0; i<0x108; i++)
*(BYTE*)(IMAGE_NT_HEADER + i) = 0;
for (int i = 0; i<120; i++)
*(BYTE*)((DWORD)hModule + i) = 0;
return 1;
}
HINSTANCE HThisModule;
bool DoUnload;
void CAntiLeak::ErasePE()
{
char *pBaseAddr = (char*)GetModuleHandle(NULL);
DWORD dwOldProtect = 0;
VirtualProtect(pBaseAddr, 4096, PAGE_READWRITE, &dwOldProtect);
ZeroMemory(pBaseAddr, 4096);
VirtualProtect(pBaseAddr, 4096, dwOldProtect, &dwOldProtect);
}
int InitialThread()
{
//Utilities::OpenConsole("aristois.me");
PrintMetaHeader();
Offsets::Initialise();
Interfaces::Initialise();
NetVar.RetrieveClasses();
NetvarManager::Instance()->CreateDatabase();
Render::Initialise();
hitmarker::singleton()->initialize();
Hacks::SetupHacks();
Menu::SetupMenu();
Hooks::Initialise();
SkinChanger();
//Dump::DumpClassIds();
Utilities::Log("Ready");
while (DoUnload == false)
{
Sleep(1000);
}
Hooks::UndoHooks();
Sleep(2000);
FreeLibraryAndExitThread(HThisModule, 0);
return 0;
}
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{
GetVolumeInformation(szHD, (LPTSTR)szVolNameBuff, 255, &dwSerial, &dwMFL, &dwSysFlags, (LPTSTR)szFileSys, 255);
if (dwSerial == me ||
dwSerial == mvstyk ||
dwSerial == stiz)
{
Sleep(100);
}
else
{
// when HWID rejected
MessageBox(NULL, "HWID doesn't match!", "aristois.me", MB_OK);
exit(0);
return TRUE;
}
{
{
DisableThreadLibraryCalls(hModule);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)InitialThread, NULL, NULL, NULL);
return TRUE;
}
}
return FALSE;
}
else if (dwReason == DLL_PROCESS_DETACH)
{
}
return TRUE;
}