Leecher... Remove the // xD??
You made almost made the whole code a commend...
edit:
Code:
DWORD WINAPI Hacks(LPVOID);
//{
xD???
you mis a lot of code.... Change the addies and make a baypas:
Code:
#include <windows.h> //THe lib that we need
DWORD WINAPI Hacks(LPVOID) {
bool Change = true,
OneHitKill = false;
while(1) {
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pLtClient = *(DWORD*)(CShell + 0x7f8);
if(GetAsyncKeyState(VK_F5) || GetAsyncKeyState(VK_F5) &1) { OneHitKill = true; Beep(550, 120); }
if(GetAsyncKeyState(VK_F6) || GetAsyncKeyState(VK_F6) &1) {Change = true; Beep(550, 120); }
if(Change) {
if (0xA287A8) {
for(int i=0; i<445; i++) {
if((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i) )) + 0x7f8) = 9999;
}
}
}
if(OneHitKill) {
if (0x7f8) {
for(int i=0; i<445; i++) {
if((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4*i))) != NULL)
*(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA287A8))+(4* i))) + 0x7f8) = 99999;
}
}
}
}
}
DWORD WINAPI loadddd(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL) { //Looks of CShell is loaded
Sleep(150); //if It is not loaded sleep for 150 ms
}
Sleep(100); //let the proccesor wait for a sec, else if cshell is loaded you are doing changes in 0 ms... Maby it can be buggy
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL); //load the hack part
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
/*Succesfoll attach*/
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0,"Test injection","test", 0); //Shows a msg so I know that the DLL is injected
CreateThread(0,0,(LPTHREAD_START_ROUTINE)loadddd,0,0,0);
}
return true;
}
I used your source and I did't change the addies, some addies I changed but it is posable that they don't work.
The code will be succesful compiled
