PDA

View Full Version : Bypass in a D3D ?



olie122333
05-25-2008, 04:10 AM
Hi,

Im making a D3D, and have 5 bypass addresses which i need to NOP twice. I can do this in a function called H_Bypass, but where do i put the code ?


I have tried in BeginScene and EndScene, but both just exit War Rock ?



Here is my function for the NOP's:




void PBSNOPPBS998( void* pxAddress, int size )
{
unsigned long Protection;
BYTE IWriteNoFunctions[ ] = {0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90};
VirtualProtect((void*)pxAddress, size, PAGE_READWRITE, &Protection);
memcpy((void*)pxAddress, (const void*)IWriteNoFunctions, size);
VirtualProtect((void*)pxAddress, size, Protection, 0);
}



Here is the function bool code:



bool H_Bypass = true;

(I want the bypass to come on automatically!)

Here is the function code:



if(H_Bypass)
{
PBSNOPPBS998( ( void* )Bypass_Addie1, 2);
PBSNOPPBS998( ( void* )Bypass_Addie2, 2);
PBSNOPPBS998( ( void* )Bypass_Addie3, 2);
PBSNOPPBS998( ( void* )Bypass_Addie4, 2);
PBSNOPPBS998( ( void* )Bypass_Addie5, 2);
H_Bypass = !H_Bypass;
}

(I want to NOP the 5 addies, then stop the bypass so i don't NOP them again...)





(Addresses not posted aulthough i will sell them...) :p



Any help is much apprichiated,

Olie122333

ZeaS
05-25-2008, 04:20 AM
noping addys isn't a good idea but try to make a hotkey like

if GetAsyncKeyState(VK_NUMPAD1)&1){H_Bypass = !H_Bypass;}

and activate it ingame

olie122333
05-25-2008, 06:28 AM
why isn't NOP'ing addies a good idea ? it is the only way to make a bypass in a D3D, isn't it ?


and i wan't it to start automatically, like in the DXT VIP D3D... :(

masterboy
05-25-2008, 06:31 AM
Why don't u detour u d3d?Start with logging the strings and replace/patch the bad strings...

olie122333
05-26-2008, 05:41 AM
maybe i don't detour cause i don't know how... :(