Page 1 of 5 123 ... LastLast
Results 1 to 15 of 66
  1. #1
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy

    [TuT]NOP'ing Memory Hacks

    Hey there MPGH, this is my little TUT for those 'new' coders who don't yet know how to NOP Memory hacks.

    Alright lets begin.


    1) If you are using Gellins base put the following before void cBase::Update (void)
    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) 
    { 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect )) 
    return FALSE; 
      
    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes\", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    }
    If you are using your own base, then put it before you put and of the Hack sources.

    *Where it says Addies, replace that text with what ever addies you are using.*
    **Where it says Bytes, add your bytes**


    2) Adding the Memory Hacks to;


    A Menu Hack

    Code:
    if( Menu.mOpt[25].nopt > 0 ){
    //No Recoil
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);			
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);			
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    }else{
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    A Hotkey Hack


    Code:
    Sleep(50);
    if(GetAsyncKeyState(VK_NUMPAD8)<0)
    //No Recoil
    {
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);			
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);			
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    }else{
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    }
    3)ENJOY


    CREDIT PLUS THANK ME
    Last edited by RageKnight; 06-27-2010 at 10:03 AM.

  2. The Following 19 Users Say Thank You to RageKnight For This Useful Post:

    ac1d_buRn (06-27-2010),Anubiset (07-10-2010),crazygamer53 (07-03-2010),cruizrisner (06-28-2010),Drake (07-29-2010),fvestrgenrl (07-30-2010),gabrielrrrr (07-04-2010),haloassasin (06-28-2010),HaX4LiFe! (07-16-2010),hgmf8124 (08-01-2010),kelechi96 (07-29-2010),MVH-_- (08-11-2010),mwb1234 (06-27-2010),ngh555 (06-28-2010),NOOBJr (07-29-2010),Solify (06-27-2010),Timboy67678 (09-26-2010),whatup777 (06-27-2010),§δú£$Bäñê96 (06-27-2010)

  3. #2
    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
    This but ehhh realy do you need to help the "coders"

  4. #3
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    z0mg good work, but teh n3wbs will still not be able to hack as good as us coders

  5. #4
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    Err, so true but, anyways, still can help people. And zmansquared posted the wrong one, so i decided to post mine

  6. #5
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Quote Originally Posted by mwb1234 View Post
    z0mg good work, but teh n3wbs will still not be able to hack as good as us coders
    Lol

    Nice RageKnight.

    BTW mwb I stole this source code from you hotkey base/yea
    I'll give credits dont worry.
    /me dont leech



    Edit: Without VirtualProtect wont this lag alot?
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  7. #6
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    Virtual Protect is there in the source. and if you mean with it, no it does not lag

  8. #7
    pimpinallovertheworld666's Avatar
    Join Date
    Jan 2009
    Gender
    female
    Posts
    972
    Reputation
    10
    Thanks
    93
    My Mood
    Fine
    OMGOSH, New coding I STILL don't understand! ^.^

  9. #8
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    WoW. Add me on msn, ill explain further

  10. #9
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Yeah sorry for that.

    And Zoom was saying you need the memoria function but I dont think thats true.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  11. #10
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    What do you mean?
    LOL
    When adding a hack to like a menu feature or something, you must have Memoria((LPVOID))______________________________

  12. #11
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Did you see this and decide to make a tutorial ?

    Anyway, don't copy+paste the function :
    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) 
    { 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect )) 
    return FALSE; 
      
    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes\", 6);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\", 3);
    Memoria((LPVOID) (Addies), "\bytes\bytes\bytes\bytes\bytes\bytes", 6);
    }
    You messed up or something... that might be the whole function except for the last few lines or you could have pasted over, either way you should fix for the C+P noobs.

  13. #12
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    I didnt mess up.
    I have this on mine and worked perfectly fine, i just didnt want to put addies and bytes and stuff.


    This is what i have in my base.

    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) 
    { 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect )) 
    return FALSE; 
      
    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
    			Memoria((LPVOID) (0x3740CEE9), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x3740CEF8), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x3740CEFD), "\x90\x90\x90\x90\x90\x90", 6);
    			Memoria((LPVOID) (0x3740CF09), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x37451DC4), "\x90\x90\x90\x90\x90\x90", 6);
    }

  14. #13
    whatup777's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    CA Source Code Section
    Posts
    4,025
    Reputation
    147
    Thanks
    351
    My Mood
    Dead
    Really, damn you mwb
    I just have memcpy

    Code:
    if( Menu.mOpt[11].nopt > 0)
    		{
    			byte NoRecoilOn1[3] = { 0x90, 0x90, 0x90 };
    			byte NoRecoilOn2[3] = { 0x90, 0x90, 0x90 };
    			byte NoRecoilOn3[6] = { 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
    			byte NoRecoilOn4[3] = { 0x90, 0x90, 0x90 };
    			VirtualProtect((LPVOID)NR1, 3, PAGE_READWRITE, &dwProtect);
    			VirtualProtect((LPVOID)NR2, 3, PAGE_READWRITE, &dwProtect);
    			VirtualProtect((LPVOID)NR3, 3, PAGE_READWRITE, &dwProtect);
    			VirtualProtect((LPVOID)NR4, 3, PAGE_READWRITE, &dwProtect);
    			memcpy((PVOID)NR1, (void*)NoRecoilOn1, sizeof(NoRecoilOn2));
    			memcpy((PVOID)NR2, (void*)NoRecoilOn2, sizeof(NoRecoilOn2));
    			memcpy((PVOID)NR3, (void*)NoRecoilOn3, sizeof(NoRecoilOn3));
    			memcpy((PVOID)NR4, (void*)NoRecoilOn4, sizeof(NoRecoilOn4));
    			VirtualProtect((LPVOID)NR1, 3, dwProtect, &dwProtect);
    			VirtualProtect((LPVOID)NR2, 3, dwProtect, &dwProtect);
    			VirtualProtect((LPVOID)NR3, 3, dwProtect, &dwProtect);
    			VirtualProtect((LPVOID)NR4, 3, dwProtect, &dwProtect);
    there's the on source for mwb's no recoil.
    Quotes I live by.


    A foolish person learns from his mistakes, I wise person learns from others.
    Quote Originally Posted by AVGN View Post



    mhm

    i live in texas

    i was at the grocery store with my son. He saw a mexican guy, and he said "Look daddy! a mower man!"

    he's 4 yrs old

  15. #14
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Quote Originally Posted by RageKnight View Post
    I didnt mess up.
    I have this on mine and worked perfectly fine, i just didnt want to put addies and bytes and stuff.


    This is what i have in my base.

    Code:
    bool Memoria( void * pDest, char * szPatch, size_t sSize ) 
    { 
    DWORD dwOrgProtect = NULL; 
    if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect )) 
    return FALSE; 
      
    memcpy( pDest, szPatch, sSize ); 
    VirtualProtect( pDest, sSize, dwOrgProtect, NULL ); 
    return TRUE; 
    			Memoria((LPVOID) (0x3740CEE9), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x3740CEF8), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x3740CEFD), "\x90\x90\x90\x90\x90\x90", 6);
    			Memoria((LPVOID) (0x3740CF09), "\x90\x90\x90", 3);
    			Memoria((LPVOID) (0x37451DC4), "\x90\x90\x90\x90\x90\x90", 6);
    }
    You put the function inside the function though. O.O
    Shouldn't that keep going forever...

    Like :

    Code:
    void infinite()
    {
    
        infinite();
    
    }
    
    int main()
    {
    
        infinite();
    
    }

  16. #15
    RageKnight's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    96
    Reputation
    10
    Thanks
    43
    My Mood
    Sleepy
    Oh, lol you mean that i put the memoria addies like no recoil and instant reload in the thing as well. no it doesnt go forever, i just put it there as well just in case i lost the codes xD


    Oh and mind adding me on msn?
    I wanna talk to you

Page 1 of 5 123 ... LastLast

Similar Threads

  1. [Tut]For Weapon&WP Hack
    By gonzo541 in forum WolfTeam Hacks
    Replies: 58
    Last Post: 10-24-2009, 09:43 PM
  2. [Tut] How to Speed Hack Unlimited [Tut] (Pffttt. No fake virusy cracks)
    By erikshadow in forum Combat Arms Hacks & Cheats
    Replies: 83
    Last Post: 01-01-2009, 09:21 AM
  3. [Tut] somewhat chams-effect "hack" [TESTED & WORKING 9/13/08]
    By stuck7126 in forum Combat Arms Hacks & Cheats
    Replies: 113
    Last Post: 09-21-2008, 10:54 AM
  4. tut on how to Hack on combat arms
    By sfproazn in forum Programming Tutorial Requests
    Replies: 7
    Last Post: 08-29-2008, 09:20 AM
  5. Replies: 11
    Last Post: 08-28-2007, 02:49 AM