Page 1 of 3 123 LastLast
Results 1 to 15 of 40
  1. #1
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored

    Hacking Tutorial [How to build a hack]

    So, i see too many "How to make hacks", " Please help me" so, i decided to make a tutorial for newbies how to make their hack;

    Requirements to start making hacks:
    ---Programming Knowledge...
    ---Brain.exe...
    ---Visual Studio / a good C++ compiler...
    ---Optional is a C#/VB Compiler but you will need a CLR Injector...
    ---Math Knowledge...

    you MUST:
    -Already know how to make a DLL in C++
    -have C++ knowledge

    So lets Start
    ░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒ ▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█ ▓▒░
    CShell (short)
    CShell.Dll is the Main module that actually handles the Game Engine...
    Everything (Weapons, Player Data, etc) is stored by the CShell.dll in the operative memory, so the required pointers are inside CShell.dll, also points into that module...

    So, if you use a pointer like the Weapon Manager Pointer (WeaponMgr / WeaponPtr) you must use this formula:
    Code:
    C++:
    DWORD CShell = GetModuleHandle("CShell.dll");
    CShell + WeaponPtr;
    
    C#:
    uint CShell = GetModuleHandle("CShell.dll");
    CShell + WeaponPtr;
    1; Weapon Hacks

    What is this?
    Weapon hacks where you modify the weapon table, so you can edit each weapon's properties, like Damage, Range, Recoil, Reload....
    Keep in mind, that some properties are server sided like: Ammo count i nthe mag, and all ammo...
    Also some of them is patched like WeaponRange...
    ---------------------------------------
    To start making Weapon hacks, you MUST know, how crossfire handles weapons...
    The weapons are stored in array, but you have to find where it is in the memory...
    You could hear that "WeaponPtr" or "WeaponMgr"... That is the start address of the Pointer table, which pont to each weapon in the memory...
    How it looks like ?


    Each 4 bytes colored to the same color represents 1 number, which is a Memory Address...
    Our weapon is stored on that Memory Address...

    So, to edit the weapons, you must use this table to find them...
    The easiest way to do it, you need a loop...
    Code:
    for (int i = 0; i < 1000; i++)
    {
         CurrentWeapon = *(DWORD*)(CShell + WeaponPtr + (i * 4)); //i * 4 because each DWORD is 4 byte length...
         if (CurrentWeapon) //Check if this is a real pointer... If it equals with "0" it means an invalid pointer...
         {
          //Hacking
         }
    }
    But how it works ?
    if you read out a DWORD from (CShell + WeaponPtr + (4 * i)) you will gain a number...
    This number is a start location (in the memory) for the weapon...
    That means:
    Code:
    Weapon1 = *(DWORD*)(CShell + WeaponPtr + 0); //the first 4 bytes since DWORD is 4 byte length (0,1,2,3)
    Weapon2 = *(DWORD*)(CShell + WeaponPtr + 4); //the second 4 bytes for the second DWORD (4,5,6,7)
    Weapon 1 will be (example) 54;
    Weapon 2 is (example) 90;

    54 and 90 are also start addresses for a "struct"...
    From this point we use "Offsets" each offset represent the location of each item(value) INSIDE the struct...
    like:
    Code:
    (Address) + (Offset)
    54 + 4 is the Ammo...
    54 + 10 is the Damage...
    Since they are also inside the CShell you must use:
    *([data type]*)(CShell + Address + Offset);

    each value has their own data type... The most used is the "float" but you can find some "int", "byte" or even a string...

    So... If you has enough Brain.exe at this point you should understand how crossfire handles the weapons...
    So here is a full source (short) to explain this:
    Code:
    DWORD WeaponPtr = 0x424243;
    int Damage = 0x456;
    DWORD CShell = GetModuleHandle("CShell.dll");
    
    for (int i = 0; i < 1000; i++)
    {
        DWORD ActualWeapon = *(DWORD*)(CShell + WeaponPtr + (4 * i));
        if (CurrentWeapon)
        {
             *(float*)(ActualWeapon + Damage) = 1000;
        }
    }
    with the logic, you can make another weapon type hacks too...

    BasicPlayerInfo
    Basic plyer info contains data about the Characters, but global datas, like Crounch Speed, Walk Speed, and visibility as ghost...

    It is just a simple struct, don't require hard logic, as you learnt from the previous pahargraph:
    CShell + BasicPlayerInfo + [Offset];
    like
    Code:
    DWORD VasicPlayerInfo = 0x424243;
    int CharacterHiddenAlpha = 0x456; //Visibility as ghost
    DWORD CShell = GetModuleHandle("CShell.dll");
    
    DWORD BasicPlayerInfoPtr = CShell + BasicPlayerInfo;
    if (BasicPlayerInfoPtr) //if valid
    {
         *(float*)(BasicPlayerInfoPtr + CharacterHiddenAlpha) = 1;
    }
    BasicPlayerInfo
    This is a bit tricky part...
    PlayerPtr contains the data about the current game session...
    But remember: PlayerPtr is always "0" when you are NOT In-game (in menu, inventory, store, etc...)
    To reference for PlayerPtr you must use the "CShellPtr" or "ClientShell" we use several names for it...
    with the "PlayerPtr" offset, addy logs often contains them...
    so:
    Code:
    DWORD ClientShell = 0x42423432;
    int PlayerPtr = 0x30;
    int Gravity = 0x50;
    
    DWORD pPlayerPtr = *(DWORD*)(CShell + ClientShell + PlayerPtr);
    if (pPlayerPtr) //If not null = if you are in-game session
    {
        *(float*)(pPlayerPtr + Gravity) = 0;
    }
    Hack Logic:
    When you inject a hack, it will hold the main thread of crossfire, that means you must create a new thread, and then do your nasty things inside your own thread...
    That requires your own knowledge, how to start a new thread...
    Well that should be enough to start making your hacks...
    ░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒ ▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█▓▒░▒▓█ ▓▒░
    Last edited by Democritus; 02-05-2016 at 01:18 PM.







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

    bocayroi1 (06-21-2016),zFreeLove (12-14-2015)

  3. #2
    mamo007's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Behind You !
    Posts
    1,655
    Reputation
    216
    Thanks
    15,607
    My Mood
    Amazed
    Quote Originally Posted by rabir007 View Post

    EGYPTIANS DON'T, AND AGAIN: DON'T COMMENT WITH YOUR RETARDNESS "I C+P-ED WHAT ARE THOSE ERRORS" "IT DOESN'T WORK" "HOW TO PASTE IT" "HOW TO USE THE CODES"
    Respect for exceptions...

    Fix me if i made a mistake please...
    Well, Nice TUT ?
    [Source Code] Present Hooks Win 7/8 .. 8.1/10


    - removed youtube video as it had an outside link


  4. #3
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by mamo007 View Post


    Well, Nice TUT ?
    thats why i put:
    "Respect for exceptions..."
    I agree that there are pretty good codes from Egy, but a lot of retard also...







  5. #4
    I2espect's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    On Other Planet
    Posts
    641
    Reputation
    28
    Thanks
    870
    My Mood
    Devilish
    so playerptr must be in while (1) anyway thx i like that tut
    but the egy part no....
    Sry4bad english.

    btw could u make an explain for find pattern function ?

  6. #5
    zikox's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    568
    Reputation
    40
    Thanks
    1,022
    My Mood
    Cool
    good job

  7. #6
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by mamo007 View Post


    so why you insult me now ?!
    Not you... The stupid egyptians, not all of you...







  8. #7

  9. #8
    mamo007's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    Behind You !
    Posts
    1,655
    Reputation
    216
    Thanks
    15,607
    My Mood
    Amazed
    Quote Originally Posted by I2espect View Post
    can u answer me about the find pattern ?? @rabir007
    https://www.mpgh.net/forum/242-crossf...-patterns.html
    Google is your friend ^^
    [Source Code] Present Hooks Win 7/8 .. 8.1/10


    - removed youtube video as it had an outside link


  10. #9
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Quote Originally Posted by steveroseik View Post
    Why is The "CrossFire Hacks" Section Have In Every 5 Hacks 3 are made from Egyptians ?
    Because they c+p codes and get help from other egys ofc..

  11. #10
    steveroseik's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Earth
    Posts
    463
    Reputation
    50
    Thanks
    2,114
    Quote Originally Posted by Biesi View Post


    Because they c+p codes and get help from other egys ofc..
    So Does @mamo007 and @ramo C+P Codes ??





    Since 10th Of September 2013



    Facebook : Steve Roseiik
    Twitter : Steveroseik
    Kik : steveroseik
    Instagram : steveroseik

  12. #11
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Quote Originally Posted by steveroseik View Post
    So Does @mamo007 and @ramo C+P Codes ??
    No but they are spoonfeeding the others.

  13. #12
    olwayy's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    >Any"Where<
    Posts
    146
    Reputation
    10
    Thanks
    1,040
    My Mood
    Aggressive
    Quote Originally Posted by Biesi View Post


    No but they are spoonfeeding the others.
    %100000 right
    [IMG]https://i210.photobucke*****m/albums/bb266/Alalee/mpghLogoSteel-1.png[/IMG]

  14. #13
    I2espect's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Location
    On Other Planet
    Posts
    641
    Reputation
    28
    Thanks
    870
    My Mood
    Devilish

    Talking

    Quote Originally Posted by Biesi View Post


    No but they are spoonfeeding the others.
    not all egy are leeching from others !!! -_-
    ps : @mamo007 i already searched and fount that one ..
    My q. Is about the result of find pattern is it the offset 0x?? Or the full address : cshell+etc... ?
    Got it

  15. #14
    6ixth's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    3,033
    Reputation
    661
    Thanks
    19,904
    Very nice..

  16. #15
    rabir007's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    Behind you...
    Posts
    2,323
    Reputation
    148
    Thanks
    1,925
    My Mood
    Bored
    Quote Originally Posted by I2espect View Post
    can u answer me about the find pattern ?? @rabir007
    Maybe i'll make another tut fr that...







Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 9
    Last Post: 03-02-2013, 06:32 AM
  2. [Tutorial] How to work Speed Hack in Combat Arms, with MPGH Pub.
    By Emokashi in forum Combat Arms Hacks & Cheats
    Replies: 12
    Last Post: 10-28-2008, 02:35 PM
  3. Replies: 8
    Last Post: 07-09-2007, 03:15 PM
  4. {Tutorial} How to make a hack with VB
    By ltkort213 in forum WarRock - International Hacks
    Replies: 31
    Last Post: 06-10-2007, 03:15 PM
  5. [Tutorial]How to find some Hacks
    By mental81 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 04-06-2007, 10:50 AM