Exclamationproblem with my first hack

Posts 1–10 of 10 · Page 1 of 1
problem with my first hack
#include <windows.h>
#include <iostream>

using namespace std;

void __cdecl PushToConsole(char* szVal ) {
DWORD d**Shell = (DWORD)GetModuleHandleA("CShell.dll");
if( d**Shell != NULL )
{
DWORD *LTClient = ( DWORD* )( (d**Shell + 0x2E7F9C) );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push szVal;
call CONoff;
add esp, 4;
}
}
}

DWORD WINAPI hello(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(120);
}

bool PlayerGlow = true;
bool nosky = true;
bool Nosmoke = true;
bool antiflash = true;

for(; {
__asm pushad;

if(GetAsyncKeyState(VK_F2)&1) {
WhitePlayers = !WhitePlayers;
}
if(GetAsyncKeyState(VK_F3)&1) {
nosky = !nosky;
}
if(GetAsyncKeyState(VK_F4)&1) {
Nosmoke = !Nosmoke;
}
if(GetAsyncKeyState(VK_F5)&1) {
antiflash = !antiflash;
}
if (WhitePlayers) {
PushToConsole("TextureModels 1");
}
else {
PushToConsole("TextureModels 0");
}
if (antiflash) {
PushToConsole("DrawFlat 1");
}
else {
PushToConsole("Drawflash 0");
}
if (nosky) {
PushToConsole("DrawSky 1");
}
else {
PushToConsole("DrawSky 0");
}
if (Nosmoke) {
PushToConsole("DrawParticles 1");
}
else {
PushToConsole("DrawParticles 0");
}
Sleep(120);
__asm popad;
}

}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "josecarlos", "Hack Injetado", 0);
CreateThread(NULL, NULL,hello, NULL, NULL, NULL);
}
return TRUE;
}
Code:
#include <Windows.h>
#define FastKnife1 0xA60
#define FastKnife2 0xAA8
#define KnifeOHK1  0xBF8
#define KnifeOHK2  0xC04 
#define IsKnife (i == 5 || i == 35 || i == 74 || i == 120 || i == 132 || i == 176 || i == 177 || i == 178 || i == 182 || i == 195 || i == 196 || i == 197 || i == 198 || i == 199 || i == 223 || i == 224 || i == 225 || i == 226 || i == 227 || i == 228 || i == 244 || i == 302 || i == 303 || i == 304 || i == 305 || i == 306 || i == 307 || i == 318 || i == 345 || i == 346 || i == 376 || i == 404 || i == 405 || i == 406 || i == 407 || i == 408 || i == 409 || i == 437 || i == 455 || i == 456 || i == 457 || i == 517 || i == 518 || i == 548 || i == 576) 
//Credit to derh.acker  for knife define :)
DWORD WINAPI Base(void)
{
while(1)
{
if(GetModuleHandleA("CShell.dll") && GetModuleHandleA("ClientFx.fxd"))
{
Sleep(100);
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD Weapon = *(DWORD*) (CShell + 0xB5D5F8);

int KnifesHack = true;


if (Weapon!=NULL)
		 {
			 if(KnifesHack){
         if(Weapon) {
                 for(int i=0; i<700; i++)  {
                          DWORD wep = *(DWORD*)(Weapon +(4*i));
                          if(wep) {
                                   for(int y=0; y<10; y++) {
									   if(IsKnife){
                                            *(float*)(wep + FastKnife1+y*4) =2.8;
                                            *(float*)(wep + FastKnife2+y*4) =2.8;
                                            *(float*)(wep + KnifeOHK1+y*4) = 999.9;
                                            *(float*)(wep + KnifeOHK2+y*4) = 999.9;
									   }
											} 
								
                 }
         }
}
}
	 }

memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);           
DWORD Basic  = *(DWORD*)( CShell  + 0xAF64C8);
			if(Basic)
			{
				*(float*)(Basic + 0x88) = 300;
				*(float*)(Basic + 0x8C) = 300;
				*(float*)(Basic + 0x90) = 300;
			}
}
}
}
DWORD WINAPI MemoryHook(LPVOID)
{
_asm {
   PUSH 0;
   PUSH 0;
   CALL Base;
   PUSH 0;
   PUSH 0;
   PUSH 0;
  }
}
BOOL APIENTRY DllMain( HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved )
{
if (ul_reason_for_call == DLL_PROCESS_ATTACH)
{
CreateThread(0,0,(LPTHREAD_START_ROUTINE)MemoryHook,0,0,0);
}
return TRUE;
is
-WallHack
- Speed Knife
- Knife 360°
- See Ghosts

Credits: Trader_6939
I think the Hotkeys wont work, plus the LTCLient is wrong, there are alot of errors
me cod no error 100%
I'm talking about is PTC stuff.
You will get SendError.
Create thread is patched you gotta use timer
Quote Originally Posted by Jeovante View Post
Create thread is patched you gotta use timer
It isn't patched
Quote Originally Posted by derh.acker View Post
It isn't patched
well it will work but not with auto inject dll
CreateThread work fine!!! and in this base is no hook waht you post @josecarlos.s only dllmain
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?