Results 1 to 10 of 10
  1. #1
    josecarlos.s's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Posts
    9
    Reputation
    10
    Thanks
    0

    Exclamation 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;
    }

  2. #2
    [mi5's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    301
    Reputation
    10
    Thanks
    618
    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
    Last edited by Hero; 07-19-2012 at 01:26 AM. Reason: Added in Credits

  3. #3
    JusCaus's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    725
    Reputation
    23
    Thanks
    112
    My Mood
    Aggressive
    I think the Hotkeys wont work, plus the LTCLient is wrong, there are alot of errors
    [IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]

  4. #4
    [mi5's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    301
    Reputation
    10
    Thanks
    618
    me cod no error 100%

  5. #5
    JusCaus's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    725
    Reputation
    23
    Thanks
    112
    My Mood
    Aggressive
    I'm talking about is PTC stuff.
    [IMG]https://i1132.photobucke*****m/albums/m571/JusCausGraphix.jpg[/IMG]

  6. #6
    DaRk's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Location
    MPGH
    Posts
    1,910
    Reputation
    119
    Thanks
    3,986
    My Mood
    Asleep
    You will get SendError.

  7. #7
    Jeovante's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Berkely,CA,USA
    Posts
    1,240
    Reputation
    164
    Thanks
    3,679
    My Mood
    Aggressive
    Create thread is patched you gotta use timer

  8. #8
    derh.acker's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    localhost
    Posts
    826
    Reputation
    14
    Thanks
    616
    My Mood
    Angelic
    Quote Originally Posted by Jeovante View Post
    Create thread is patched you gotta use timer
    It isn't patched

  9. #9
    Jeovante's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Berkely,CA,USA
    Posts
    1,240
    Reputation
    164
    Thanks
    3,679
    My Mood
    Aggressive
    Quote Originally Posted by derh.acker View Post
    It isn't patched
    well it will work but not with auto inject dll

  10. #10
    -[I]fLuX's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    342
    Reputation
    112
    Thanks
    3,923
    My Mood
    Bored
    CreateThread work fine!!! and in this base is no hook waht you post @josecarlos.s only dllmain
    •Contributor: June, 29th 2013


    My Sources:
    Injector
    Memory Base
    D3D9 Hook
    Hooked Memory Base




Similar Threads

  1. My problem with MPGH pub hack
    By eatthosebeans in forum Combat Arms Hacks & Cheats
    Replies: 18
    Last Post: 12-27-2008, 02:54 PM
  2. READ THIS PLZ I NEED HELP SERIOUS PROBLEM WITH COMBAT ARMS HACK 12/22/08
    By Frenzy571 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 12-24-2008, 08:56 AM
  3. problem with the pub hack
    By sirh4xalot in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 12-14-2008, 06:40 PM
  4. Problems with combat arms hack
    By Rujo in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 10-29-2008, 03:40 PM
  5. Solve Problems with Vista and hacks
    By knappy in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-11-2008, 06:26 PM