A litte source?

Posts 17 of 7 · Page 1 of 1
A litte source?
Hello everybody,

I've learned C++. But I don't understand the code on this forum.

Is that a nice guy could give me an example source code?

You would be nice!

Thanks a lot,

Izanagi

PS : Bad section. Move this thread in the European version please
I have my this code but it's buggy

#include <windows.h>
#include <stdio.h>
#define LTClientEXE 0x48B6B0
#define GameStatus 0x37839E54
#define HShieldBypass_1 0x0000A048
#define HShieldBypass_2 0x0009A8C2
#define HShieldBypass_3 0x0007B7A0
#define HShieldBypass_4 0x00009FB0
#define HShieldBypass_5 0x0003CF8E
#define HShieldBypass_6 0x0003A39F
#define HShieldBypass_7 0x0003C446
#define HShieldBypass_8 0x0003D004



INT EditMemory(VOID *lpMem, VOID *lpSrc, size_t len)
{
DWORD flNewProtect = PAGE_READWRITE, lpflOldProtect;
unsigned char *pDst = (unsigned char *)lpMem, *pSrc = (unsigned char *)lpSrc;

if(VirtualProtect(lpMem, len, flNewProtect, &lpflOldProtect))
{
while(len-- > 0) *pDst++ = *pSrc++;
return 0;
}
return 1;
}

DWORD WINAPI BypassThread(LPVOID)
{
DWORD dwEhSvc = 0;
do
{
Sleep(100);
dwEhSvc = (DWORD)GetModuleHandleA("EhSvc.dll");
} while(!dwEhSvc);

BYTE HSB1[1] = {0x74};
BYTE HSB2[1] = {0xD2};
BYTE HSB3[3] = {0xC2, 0x04, 0x00};
BYTE HSB4[1] = {0x31};
BYTE HSB5[2] = {0x90, 0x90};



EditMemory((PVOID)(dwEhSvc + HShieldBypass_1), (PVOID)"\x74", 1);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_2), (PVOID)"\xD2", 1);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_3), (PVOID)"\xC2\x04\x00", 3);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_4), (PVOID)"\xC2\x04\x00", 3);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_5), (PVOID)"\x31", 1);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_6), (PVOID)"\x31", 1);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_7), (PVOID)"\x31", 1);
EditMemory((PVOID)(dwEhSvc + HShieldBypass_8), (PVOID)"\x90\x90", 2);

return NULL;
}

void _stdcall SetConsoleVariable(const char* Command)
{
__asm
{
push Command
mov eax, 0x485FF0
call eax
}
}
BOOL IsGameReadyForHook(void)
{
if(GetModuleHandleA("d3d9.dll") != NULL
&& GetModuleHandleA("ClientFX.fxd") != NULL
&& GetModuleHandleA("CShell.dll") != NULL)
return true;

return false;

}
void main()
{
while(true)
{
SetConsoleVariable("SkelModelStencil 1");
}
}
DWORD WINAPI HackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, HackThread, NULL, NULL, NULL);
}
return TRUE;
}
You don't need any Hackshield bypass for this to work, you do however need to hook some D3D function, present for instance.

Also for your information if you haven't noticed it, you aren't even calling your bypass from anywhere in the code from what I can see so I'm not sure how you expect it to work. + there's a lot of other weird stuff going on, like defining the new console unwrapped addie but then using an old one in your PTC. Look at that base I linked instead and work from that, will be heaps easier.
How work the f*cking S2S?



Thank you!
Quote Originally Posted by izanagi1 View Post
How work the f*cking S2S?



Thank you!
Nobody here is going to spoonfeed you, if you knew at least one bit of C++ then you'd know what's going on.
I'm still learning C++ myself, and no coder here knows everything there is to C++. Teaching yourself is the best thing to do, rather than asking others for help.

Learn C++
Quote Originally Posted by Genesis View Post


Nobody here is going to spoonfeed you, if you knew at least one bit of C++ then you'd know what's going on.
I'm still learning C++ myself, and no coder here knows everything there is to C++. Teaching yourself is the best thing to do, rather than asking others for help.

Learn C++
Well asking others for help isn't a bad thing, Infact learning with others can keep you focused and you can pick up on each others errors and improve each others code(I work with necrosyz Myself), BUT It's bad when you ask them to spoon feed you, and sadly.... that's why we have no real coders developing anymore.... they all expect it to be spoon fed to them, that's why when someone releases a undetected hook or something along those lines there's suddenly a "boom" in releases.
Posts 17 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?