A hotkey hacked explained
Heres the grounds of this tutorial does this tutorial something not come clear to you
this tutorial is attended for people good at C++ and i mean theve made there own console game or D3D good otherwise your not ready and i will not spoonfeed your leechy self because you will never get anywhere with that!
ok so i guess let me right this up real quick
im using an outdated version of one of my hotkey bases
(omg you leech you stole bloods base! no just all hotkeys look a like lol)
[code]
#include <Windows.h>
#include <stdio.h>
void __cdecl PTC(char* Command )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
void* C_ll = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push Command;
call C_ll;
add esp, 4;
}
}
}
BOOL WINAPI Main (LPVOID)
{
bool boxes = false;
bool nosky = false;
bool worldframe = false;
bool playerframe = false;
bool nogun = false;
bool noWall = false;
bool nofog = false;
bool skele = false;
bool smoke = false;
while(1)
{
if(GetAsyncKeyState(VK_NUMPAD3)&1)
{
boxes = !boxes;
}
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
nogun = !nogun;
}
if(GetAsyncKeyState(VK_NUMPAD6)&1)
{
noWall = !noWall;
}
if(GetAsyncKeyState(VK_NUMPAD7)&1)
{
skele = !skele;
}
if(GetAsyncKeyState(VK_NUMPAD8)&1)
{
nofog = !nofog;
}
if(GetAsyncKeyState(VK_NUMPAD9)&1)
{
smoke = !smoke;
}
if(GetAsyncKeyState(VK_F1)&1)
{
MessageBoxA(0,"INSTRUCTIONS\nNUMPAD 1: no sky\nNUMPAD 2: player wire\nNUMPAD 3: Boxes\nNUMPAD 4: world wire\n NUMPAD 5: no gun\nNUMPAD 6: DISABLED\nNUMPAD 7: Skeleton\nNUMPAD 8: DISABLED\nNUMPAD 9: no smoke\n","TUTORIAL", 0);
}
if (boxes)
PushToConsole("ModelDebug_DrawBoxes 1");
else
PushToConsole("ModelDebug_DrawBoxes 0");
if (nosky){
PushToConsole("DrawSky 0");
}
else{
PushToConsole("DrawSky 1");
}
if (worldframe){
PushToConsole("WireFrame 1");
}
else{
PushToConsole("WireFrame 0");
}
if (playerframe)
PushToConsole("WireFrameModels 1");
else
PushToConsole("WireFrameModels 0");
if (nogun)
PushToConsole("DrawGuns 0");
else
PushToConsole("DrawGuns 1");
if (skele)
PushToConsole("ModelDebug_DrawSkeletons 1");
else
PushToConsole("ModelDebug_DrawSkeletons 0");
if(smoke){
PushToConsole("DrawParticles 0");
}
else{
PushToConsole("DrawParticles 1");
}
Sleep(100);
}
}
bool Ready(void)
{
if( GetModuleHandleA("CShell.dll")!= NULL){
return true;
}
else {
return false;
}
}
DWORD WINAPI ThreadofLeet(LPVOID)
{
while (!Ready())//while not ready
Sleep(250);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "TUT","TUT", 0);
CreateThread(NULL, NULL, ThreadofLeet, NULL, NULL, NULL);
}
return TRUE;
}
ok lets break this down
ok well first we got our includes wewt
now we have the all famous no skill ptc hack
ok well you see
now you guys of course should know what a Dword is and such but if you dont understand the module handle
pretty much the (DWORD) is converting in ways the Value of GetModuleHandle("CShell.dll") to a Double Word
and assigning that value to our Double word dw(double word)CShell
here we check to make sure that the hack correctly got the module handle of CShell if it is null then it failed
inline asm as im sure you all reconze here we just push the command and call the virtual function
make sure that CShell has loaded and is loaded correctly
the main DLL....
create the Main thread
this tutorial is attended for people good at C++ and i mean theve made there own console game or D3D good otherwise your not ready and i will not spoonfeed your leechy self because you will never get anywhere with that!
ok so i guess let me right this up real quick
im using an outdated version of one of my hotkey bases
(omg you leech you stole bloods base! no just all hotkeys look a like lol)
[code]
#include <Windows.h>
#include <stdio.h>
void __cdecl PTC(char* Command )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
void* C_ll = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push Command;
call C_ll;
add esp, 4;
}
}
}
BOOL WINAPI Main (LPVOID)
{
bool boxes = false;
bool nosky = false;
bool worldframe = false;
bool playerframe = false;
bool nogun = false;
bool noWall = false;
bool nofog = false;
bool skele = false;
bool smoke = false;
while(1)
{
if(GetAsyncKeyState(VK_NUMPAD3)&1)
{
boxes = !boxes;
}
if(GetAsyncKeyState(VK_NUMPAD1)&1)
{
nosky = !nosky;
}
if(GetAsyncKeyState(VK_NUMPAD4)&1)
{
worldframe = !worldframe;
}
if(GetAsyncKeyState(VK_NUMPAD2)&1)
{
playerframe = !playerframe;
}
if(GetAsyncKeyState(VK_NUMPAD5)&1)
{
nogun = !nogun;
}
if(GetAsyncKeyState(VK_NUMPAD6)&1)
{
noWall = !noWall;
}
if(GetAsyncKeyState(VK_NUMPAD7)&1)
{
skele = !skele;
}
if(GetAsyncKeyState(VK_NUMPAD8)&1)
{
nofog = !nofog;
}
if(GetAsyncKeyState(VK_NUMPAD9)&1)
{
smoke = !smoke;
}
if(GetAsyncKeyState(VK_F1)&1)
{
MessageBoxA(0,"INSTRUCTIONS\nNUMPAD 1: no sky\nNUMPAD 2: player wire\nNUMPAD 3: Boxes\nNUMPAD 4: world wire\n NUMPAD 5: no gun\nNUMPAD 6: DISABLED\nNUMPAD 7: Skeleton\nNUMPAD 8: DISABLED\nNUMPAD 9: no smoke\n","TUTORIAL", 0);
}
if (boxes)
PushToConsole("ModelDebug_DrawBoxes 1");
else
PushToConsole("ModelDebug_DrawBoxes 0");
if (nosky){
PushToConsole("DrawSky 0");
}
else{
PushToConsole("DrawSky 1");
}
if (worldframe){
PushToConsole("WireFrame 1");
}
else{
PushToConsole("WireFrame 0");
}
if (playerframe)
PushToConsole("WireFrameModels 1");
else
PushToConsole("WireFrameModels 0");
if (nogun)
PushToConsole("DrawGuns 0");
else
PushToConsole("DrawGuns 1");
if (skele)
PushToConsole("ModelDebug_DrawSkeletons 1");
else
PushToConsole("ModelDebug_DrawSkeletons 0");
if(smoke){
PushToConsole("DrawParticles 0");
}
else{
PushToConsole("DrawParticles 1");
}
Sleep(100);
}
}
bool Ready(void)
{
if( GetModuleHandleA("CShell.dll")!= NULL){
return true;
}
else {
return false;
}
}
DWORD WINAPI ThreadofLeet(LPVOID)
{
while (!Ready())//while not ready
Sleep(250);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "TUT","TUT", 0);
CreateThread(NULL, NULL, ThreadofLeet, NULL, NULL, NULL);
}
return TRUE;
}
ok lets break this down
ok well first we got our includes wewt
Code:
#include <windows.h> #include <stdio.h>
Code:
void __cdecl PTC(char* Command )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( (dwCShell + 0x28BCE0) );
void* C_ll = ( void* )*( DWORD* )( *LTClient + 0x1F8 );
_asm
{
push Command;
call C_ll;
add esp, 4;
}
}
}
Code:
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
pretty much the (DWORD) is converting in ways the Value of GetModuleHandle("CShell.dll") to a Double Word
and assigning that value to our Double word dw(double word)CShell
Code:
if( dwCShell != NULL )
Code:
_asm
{
push Command;
call C_ll;
add esp, 4;
}
}
Code:
bool Ready(void)
{
if( GetModuleHandleA("CShell.dll")!= NULL){
return true;
}
else {
return false;
}
}
Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
MessageBoxA(0, "TUT","TUT", 0);
CreateThread(NULL, NULL, ThreadofLeet, NULL, NULL, NULL);
}
return TRUE;
}
Code:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);


