Wrong section. Try posting in C++, then maybe I have a proper look. :\
Not solved:
Bytes like
const BYTE nop[3] = {0x90,0x90,0x90};
how do i get those? help me and ill give u a 90% complete source with boneshot unlimammo gm spectate vehicle invis and MUCH more
void unlimAmmo(){
DWORD dwProtect;
const BYTE nop[3] = {0x90,0x90,0x90};
VirtualProtect((void*)(ADR_UNLAMMO1), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO1, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO1), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO2), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO2, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO2), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO3, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, dwProtect, NULL);
}
THIS IS SOLVED:
Ok, my problem is that everytime i play for like 5mins i get detected so i have a bypass:
I think it is a EPIC fail so please help me correct it..
Btw: my hack
Bypass:void unlimAmmo(){
DWORD dwProtect;
const BYTE nop[3] = {0x90,0x90,0x90};
VirtualProtect((void*)(ADR_UNLAMMO1), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO1, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO1), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO2), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO2, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO2), 3, dwProtect, NULL);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, PAGE_EXECUTE_READWRITE, &dwProtect);
memcpy((void*)ADR_UNLAMMO3, &nop, 3);
VirtualProtect((void*)(ADR_UNLAMMO3), 3, dwProtect, NULL);
}
void __cdecl Bypass(void)
{
long EhSvc = (long)GetModuleHandleA("EhSvc.dll");
if(EhSvc!=0) {
int Memory1 =(EhSvc+0xB3DD4);
int Memory2 =(EhSvc+0xB3DD8);
int Memory3 =(EhSvc+0xB3DF8);
int Memory4 =(EhSvc+0xB6148);
int Memory5 =(EhSvc+0xB3860);
int Memory6 =(EhSvc+0xC0200);
int Memory7 =(EhSvc+0xC0340);
int Memory8 =(EhSvc+0xB35B4);
int Memory9 =(EhSvc+0xB009C);
int Memory10=(EhSvc+0xB726C);
int Memory11=(EhSvc+0xBCE40);
int Memory13=(EhSvc+0xB3DE4);
int Memory14=(EhSvc+0xB3DF4);
int Memory15=(EhSvc+0xB3E04);
int Memory16=(EhSvc+0xB35FC);
int Memory17=(EhSvc+0xC0B58);
int Memory18=(EhSvc+0xBBCC4);
int Memory19=(EhSvc+0xBBCB8);
int Memory20=(EhSvc+0xC0B3C);
int Memory21=(EhSvc+0xB337C);
int Memory22=(EhSvc+0xB34B4);
int Memory23=(EhSvc+0xB3400);
int Memory24=(EhSvc+0xB33D4);
int Memory25=(EhSvc+0xB3524);
int Memory26=(EhSvc+0xB3524);
DWORD oldprot;
VirtualProtect((void*)(Memory1),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory1) = 4;
VirtualProtect((void*)(Memory2),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory2) = 4;
VirtualProtect((void*)(Memory3),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory3) = 4;
VirtualProtect((void*)(Memory4),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory4) = 4;
VirtualProtect((void*)(Memory5),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory5) = 4;
VirtualProtect((void*)(Memory6),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory6) = 4;
VirtualProtect((void*)(Memory7),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory7) = 4;
VirtualProtect((void*)(Memory8),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory8) = 4;
VirtualProtect((void*)(Memory9),0x6,PAGE_EXECUTE_R EADWRITE,&oldprot);
*(DWORD*)(Memory9) = 4;
VirtualProtect((void*)(Memory10),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory10) = 4;
VirtualProtect((void*)(Memory11),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory11) = 4;
VirtualProtect((void*)(Memory13),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory13) = 4;
VirtualProtect((void*)(Memory14),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory14) = 4;
VirtualProtect((void*)(Memory15),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory15) = 4;
VirtualProtect((void*)(Memory16),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory16) = 4;
VirtualProtect((void*)(Memory17),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory17) = 4;
VirtualProtect((void*)(Memory18),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory18) = 4;
VirtualProtect((void*)(Memory19),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory19) = 4;
VirtualProtect((void*)(Memory20),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory20) = 4;
VirtualProtect((void*)(Memory21),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory21) = 4;
VirtualProtect((void*)(Memory22),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory22) = 4;
VirtualProtect((void*)(Memory23),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory23) = 4;
VirtualProtect((void*)(Memory24),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory24) = 4;
VirtualProtect((void*)(Memory25),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory25) = 4;
VirtualProtect((void*)(Memory26),0x6,PAGE_EXECUTE_ READWRITE,&oldprot);
*(DWORD*)(Memory26) = 4;
}
}
void Loop(void)
{
for(;{
DWORD EhSvc = (DWORD)GetModuleHandleA("EhSvc.dll");
if(EhSvc!=0)
{
Bypass();
}
Sleep(25);
}
}
EDIT: #include "LW.h"
is in it... and it build correctly 0 warnings 0 errors.
Last edited by tmha; 10-25-2009 at 02:53 PM. Reason: .
Wrong section. Try posting in C++, then maybe I have a proper look. :\
<o>
Seems a good bypass, depens were you call it in your hack?
Btw, why did you __cdecl void it?
void is enough...
I'm just going to move this to C++, this is more around their expertise.
Cool but wrong section
RESPECT LIST^^
[MPGH]Liz[Gmod]
[MPGH]Obama
[BANNED]fabz
[MPGH]Dave84311
[MPGH]arunforce
[MPGH]Czar
[BANNED]IHelper
[MPGH]Scruffy
[MPGH]SmokeyBear
And EVERY Single user here in MPGH .NET because mpgh is the best!!!
Click my habamon to Help him grow please!!
It would help if we knew what the game was protected by...
Goals In Life:
[X] Become an Advanced Member
[X]Release a tut on mpgh
[0]Post 300 posts
[X]Make a working hack
[X] Learn c++
Hehe probably its in the bytes i forgot to change the bytes any help for doing this? from boneshot or w/e?
Leeched & Fack off
Ah we-a blaze the fyah, make it bun dem!
Ah we-a blaze the fyah, make it bun dem!
Pixipixel_ (10-26-2009),XGelite (10-26-2009)
That's enough flaming. It's obvious you don't know exactly what the code does. I would ask your friend what it does, because as far as I can see its incomplete and is obviously leeched. I personally don't care whether it was your friend or not, same basic idea. No one can help you with random code snippets that make absolutely no sense.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Hell_Demon (10-26-2009),Matrix_NEO006 (10-26-2009)