Results 1 to 14 of 14
  1. #1
    @osma8's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    749
    Reputation
    26
    Thanks
    84

    Noob NOP'ing help !

    Hey watsup guys im trying to have a go at making a hack altho this hack crashes unfortunately :

    Code:
    #include <windows.h>
    #define dwpLTClient 0x377F4930
    #define RECOIL1 0x37465A60
    #define RECOIL2 0x37234EB9
    #define RECOIL3 0x37465A74
    #define RECOIL4 0x37465A77
    #define RECOIL5 0x37465A80
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    
    
    bool memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
    {
        DWORD dwOrgProtect = NULL;
        if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
            return FALSE;
    
        memcpy( pDest, szPatch, sSize );
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
        return TRUE;
    }
    
    
    
    void main()
    	{
        while (!IsGameReadyForHook()){
            Sleep(222);
    	}
        bool Recoil = false;
        
        while(true)
    {
    
    if(GetAsyncKeyState(VK_NUMPAD2) < 0){ // No Recoil, On Off
                if(Recoil){
    			memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
    			memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
    			memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
    			memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
    			memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
    				Recoil = false;
                } else {
                memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
                    Recoil = true;
    
                }
            }
    
    
          Sleep(100);  
    	}
    }
    
    
    DWORD WINAPI HackStart(LPVOID)
    {
    	while( !IsGameReadyForHook() )
    	Sleep(400);
    	main();
    
    	return 0;
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule,DWORD  dwReason,LPVOID lpReserved)
    {		DisableThreadLibraryCalls(hModule);
       if( dwReason == DLL_PROCESS_ATTACH )
        {
    		if( MessageBox(0, TEXT("    @osma8 first hack  \n\n\n  Do you want to use the hack?"), TEXT("Lol"), MB_YESNO)==IDYES){
            CreateThread(NULL, NULL, HackStart, NULL, NULL, NULL);
        }else{	
    	 MessageBox(0, TEXT("Hack Dis-Attached"), TEXT("MPGH.Net"), MB_ICONINFORMATION);
    			} 
        }
        return TRUE;
    }
    Anybody kno why its crashing?
    Last edited by @osma8; 11-03-2010 at 12:30 AM.

  2. #2
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by @osma8 View Post
    Hey watsup guys im trying to have a go at making a hack altho this hack crashes unfortunately :

    Code:
    #include <windows.h>
    #define dwpLTClient 0x377F4930
    #define RECOIL1 0x37465A60
    #define RECOIL2 0x37234EB9
    #define RECOIL3 0x37465A74
    #define RECOIL4 0x37465A77
    #define RECOIL5 0x37465A80
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll" ) != NULL
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL
    && GetModuleHandleA( "CShell.dll" ) != NULL )
    return true;
    return false;
    }
    
    
    bool memoria( void * pDest, char * szPatch, size_t sSize ) //Nopping Method
    {
        DWORD dwOrgProtect = NULL;
        if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
            return FALSE;
    
        memcpy( pDest, szPatch, sSize );
        VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
        return TRUE;
    }
    
    
    
    void main()
    	{
        while (!IsGameReadyForHook()){
            Sleep(222);
    	}
        bool Recoil = false;
        
        while(true)
    {
    
    if(GetAsyncKeyState(VK_NUMPAD2) < 0){ // No Recoil, On Off
                if(Recoil){
    			memoria((LPVOID)(RECOIL1), "\xD8\x66\x54", 3);
    			memoria((LPVOID)(RECOIL2), "\xD9\x46\x54", 3);
    			memoria((LPVOID)(RECOIL3), "\xD9\x5E\x54", 3);
    			memoria((LPVOID)(RECOIL4), "\xD9\x46\x48", 3);
    			memoria((LPVOID)(RECOIL5), "\xD9\x5E\x48", 3);
    				Recoil = false;
                } else {
                memoria((LPVOID)(RECOIL1), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL2), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL3), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL4), "\x90\x90\x90", 3);
                memoria((LPVOID)(RECOIL5), "\x90\x90\x90", 3);
                    Recoil = true;
    
                }
            }
    
    
          Sleep(100);  
    	}
    }
    
    
    DWORD WINAPI HackStart(LPVOID)
    {
    	while( !IsGameReadyForHook() )
    	Sleep(400);
    	main();
    
    	return 0;
    }
    
    
    BOOL APIENTRY DllMain( HMODULE hModule,DWORD  dwReason,LPVOID lpReserved)
    {		DisableThreadLibraryCalls(hModule);
       if( dwReason == DLL_PROCESS_ATTACH )
        {
    		if( MessageBox(0, TEXT("    @osma8 first hack  \n\n\n  Do you want to use the hack?"), TEXT("Lol"), MB_YESNO)==IDYES){
            CreateThread(NULL, NULL, HackStart, NULL, NULL, NULL);
        }else{	
    	 MessageBox(0, TEXT("Hack Dis-Attached"), TEXT("MPGH.Net"), MB_ICONINFORMATION);
    			} 
        }
        return TRUE;
    }
    Anybody kno why its crashing?

    Firstly, just looking through your code, you're doing a crazy loop.

    Basically this is what you're doing:

    Code:
    bool Recoil;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    
    Recoil = true;
    Recoil = false;
    Not exactly smart. Update and repost.

    Also, check your addresses while you're at it.

  3. #3
    @osma8's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    749
    Reputation
    26
    Thanks
    84
    Kk will update everything after CA maintanence

  4. #4
    confict's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    422
    Reputation
    3
    Thanks
    290
    My Mood
    Relaxed
    Quote Originally Posted by @osma8 View Post
    Kk will update everything after CA maintanence
    How long will the maintanence take ?
    I wanna test my own hack xD

    ITS MEH BITCHESSS !!!

  5. #5
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    read it wrong :P xD
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  6. #6
    @osma8's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    749
    Reputation
    26
    Thanks
    84
    Quote Originally Posted by kotentopf View Post
    read it wrong :P xD
    LOl saw what you said haha b4 u changed.

    Help me fix the code

  7. #7
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by @osma8 View Post
    LOl saw what you said haha b4 u changed.

    Help me fix the code
    Have you fixed your retarded loop yet? (Yes, it was retarded, because it achieved something in a very roundabout way. I'm not sure if you intended to do this or not, but I am looking at the final result).

  8. #8
    @osma8's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    749
    Reputation
    26
    Thanks
    84
    Quote Originally Posted by freedompeace View Post
    Have you fixed your retarded loop yet? (Yes, it was retarded, because it achieved something in a very roundabout way. I'm not sure if you intended to do this or not, but I am looking at the final result).
    Yes i have want to test it tho CA is down lolol.

  9. #9
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,003
    My Mood
    Flirty
    Code:
    bool recoil = false;
    
    if(GetAsyncKeyState(VK_NUMPAD1)<0) {
        recoil != recoil
    }
    
    if(recoil) {
          //Do no recoil
    }
    ;D

  10. #10
    seeplusplus's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Massachusetts
    Posts
    329
    Reputation
    8
    Thanks
    85
    Quote Originally Posted by ac1d_buRn View Post
    Code:
    bool recoil = false;
    
    if(GetAsyncKeyState(VK_NUMPAD1)<0) {
        recoil != recoil
    }
    
    if(recoil) {
          //Do no recoil
    }
    ;D

    Yah, do what ac1d_bUrn said, but make sure it's off before entering a game because of Nexon's Anti-Cheat system... Also you can use mine! https://www.mpgh.net/forum/207-combat...e-way-nop.html
    Goals:
    Green = Done
    Blue = Getting Somewhere
    Red = Not Done
    • Mouse Grid
    • PTC Method
    • Trigger Bot

    I'm trying to think of more stuff!

  11. #11
    @osma8's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    749
    Reputation
    26
    Thanks
    84
    Thanks guys lol

  12. #12
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    "#define dwpLTClient 0x377F4930"

    Just wondering why this defined? Also is that correct Address?

    Im converting this library to Delphi so I can can test it, I seen most comes from the template in an older post...

  13. #13
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Do it in ASM.. Its not that hard

  14. #14
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    805
    Reputation
    125
    Thanks
    1,794
    My Mood
    Doh
    That has nothing to do with my question, why is it defined when its not even used in the code, and I would like to know if thats the correct VA because from another post they say "377E7810" is the correct address, which then I converted to Delphi the 2 functions..

    TCP and Write bytes to address, Im not sure which works as im new to game hacking..

    but here are my 2 functions anyway in Delphi..

    Code:
    //PTC Method
    Procedure PushToConsole(command: string);
    var
      LTClient, CONoff: Dword;
    begin
      LTClient := $377E7810;
      CONoff := LTClient + $00000208;
      asm
        push command;
        call CONoff;
        add esp, $00000004;
      end;
    end;
    
    // Write Bytes to Address Method
    Function WriteIt(pAddress: Pointer; Bytes: Array of Byte): Boolean;
    var
      OldProtect: Cardinal;
    begin
      if not VirtualProtect(pAddress, SizeOf(Bytes), PAGE_EXECUTE_READWRITE,
        OldProtect) then
        Result := False;
      Move(Bytes, pAddress^, SizeOf(Bytes));
      VirtualProtect(pAddress, SizeOf(Bytes), OldProtect, OldProtect);
      Result := True;
    end;
    I haven't Tested it yet because the server is down.. Just want to know before I test if that LTClient is correct VA.

    And yes could convert this to Assembly as they are all just API calls, But I prefer Delphi for easy syntax and less work, Also writing it in Delphi will let me expand it...
    Last edited by Departure; 11-03-2010 at 12:19 PM. Reason: added Delphi code snippet

Similar Threads

  1. Noob Nedd HElp Find A HACK
    By QcYanPower in forum Combat Arms Help
    Replies: 1
    Last Post: 02-21-2010, 01:48 PM
  2. noobs need help!!
    By loidm in forum General
    Replies: 9
    Last Post: 11-25-2009, 04:29 PM
  3. im a noob plz help
    By smokedutch in forum Combat Arms Hacks & Cheats
    Replies: 1
    Last Post: 08-13-2009, 10:27 PM
  4. A NOOB NEEDS HELP!
    By Danthered in forum CrossFire Hacks & Cheats
    Replies: 4
    Last Post: 06-26-2009, 05:21 PM
  5. I am a noob plz help :)
    By ppl_killa99 in forum CrossFire Hacks & Cheats
    Replies: 4
    Last Post: 06-26-2009, 09:11 AM