Jump to content

[Tutorial] How to Hack with MSHook (new way)


1,445 posts in this topic

Recommended Posts

Hello everybody, this is shmoo with his first tutorial on hacking. I prefer this way over regular MS hacking and sub_x hacking because it is not too easy or too hard. This is an updated way of hacking with MSHook, meaning it is less tedious than the regular way. Assuming you already have everything installed (theos, an sdk, etc), that you know how to crack iOS games, know what bool's, int's, etc. are, and create a new project with NIC, we can begin. If you are just starting out hacking, start with regular MobileSubstrate, there are many tutorials on this forum.

I will be using Real Racing 3 for this tutorial.

First of all, you will need Clutch Beta (version 1.4.7-2) from the insanelyi repo. I use this because it won't give you the Trace/BPT trap error, and that it only packages the cracked binary, and nothing else. Now we can move on to actually doing it :p

Hidden Content

    Instructions:

    1. Load the binary into IDA Pro. (duh)

    2. Finding the thing to hack.

    Once it is loaded, you should see a functions window to your left. You can keep it there, or you can drag it next to "exports" for a better view.

    Right click and create a quick filter:

    DLXEbEx.png

    Now, search for the thing that you want to hack, no need to press enter. In my case, it will be money.

    avXaqQw.png

    You should get a lot of results, but this will vary on your game. Double click on the result that you think will be the correct one to hack.

    Here is the function:


    xPpuBoU.png

    And here it is when I double click on it.

    ZIxO7gE.png
     

    This will be the thing you want to hack. It is __ZN10Characters5Money8GetValueEv. You can click on it and do a ctrl + c to copy it.

    BL7v39F.png

    3. Putting everything together in your Tweak.xm

    In your Tweak.xm, copy and paste this template into it.



    %ctor{
    MSHookFunction(((void*)MSFindSymbol(NULL, "")),(void*), NULL);
    }

    Something you should know about this way of hacking with MSHook: you don't change the void's to anything else. Just keep them as void's no matter what.

     

    This way of hacking with MSHook will allow you to have much less text in your Tweak.xm, and you can also name the functions to what you want. Here is where everything will go:

    %ctor{
    MSHookFunction(((void*)MSFindSymbol(NULL, "the thing that you are hacking will go here")),(void*)your function name goes here, NULL);
    }

    The finished result of the template should look like this:



    %ctor{
    MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN10Characters5Money8GetValueEv")),(void*)getMoney, NULL);
    }

    That's not all, we have to override the thing that we are hacking. With this method, void's can be overridden like an int, bool, etc. So above the %ctor, put this:



    int getMoney()
    {
    return 9999;
    }

    VERY IMPORTANT: Above everything else in your Tweak.xm, put this:

    #include <substrate.h>

    Once you are done, your finished Tweak.xm should look like this:

    #include <substrate.h>
    
    int getMoney()
    {
    return 9999;
    }
    
    %ctor{
    MSHookFunction(((void*)MSFindSymbol(NULL, "__ZN10Characters5Money8GetValueEv")),(void*)getMoney, NULL);
    }

    And you are good to compile! Good luck :)

 

KNOWN PROBLEMS:

 

If you get an error like this:

 

bKp5LFq.jpg

 

Go to this thread: http://iosgods.com/topic/1986-use-of-undeclared-identifier-msfindsymbol/#entry23807 and use CosnotraLF's solution (you should see it right after you click the link, don't scroll down)

 

 

 

If you are following my tutorial and using Real Racing 3 just like I am, you need to add

ARCHS = armv7 arm64

at the top of your Makefile because it just occurred to me that Real Racing 3 has an arm64 portion of the code now, and if you don't add that, your hack will not work.

 

 

See how much simpler it is? Much cleaner also. This method of hacking can be as good as sub_x, also :snoop:

Updated by Guest
Link to comment
https://iosgods.com/topic/4295-tutorial-how-to-hack-with-mshook-new-way/
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Longleaf Valley: Merge & Match v1.26.34 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Longleaf Valley: Merge & Plant ( All Versions ) +1++ Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 25 replies
    • MIST: Horror Idle Survival RPG v1.5.1 +4 Jailed Cheats [ Damage Multiplier ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Like
      • 11 replies
    • MIST: Horror Idle Survival RPG v1.5.1 +4 Cheats [ Damage Multiplier ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 38 replies
    • Secret Puzzle Society v1.15.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Secret Puzzle Society By Wildlife Studios, Inc
      Bundle ID: com.arizonags.puzzlesocietyalpha
      iTunes Store Link: https://apps.apple.com/us/app/secret-puzzle-society/id6449197556?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Clues -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Auto Win -> Use a move.


      Jailbreak required hack(s): [Mod Menu Hack] Secret Puzzle Society v1.6.3 +4 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 6 replies
    • Secret Puzzle Society v1.15.1 +4 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Secret Puzzle Society By Wildlife Studios, Inc
      Bundle ID: com.arizonags.puzzlesocietyalpha
      iTunes Store Link: https://apps.apple.com/us/app/secret-puzzle-society/id6449197556?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Clues -> Earn or spend some.
      - Unlimited Lives -> Earn or spend some.
      - Auto Win -> Use a move.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Secret Puzzle Society v1.6.3 +4 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Like
      • 5 replies
    • Longleaf Valley: Merge & Match v1.26.34 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Longleaf Valley: Merge & Match By TreesPlease Games Ltd
      Bundle ID: com.treespleasegames.merge1
      iTunes Store Link: https://apps.apple.com/us/app/longleaf-valley-merge-match/id1573565989?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Longleaf Valley: Merge & Plant v1.10.48 +1++ Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 8 replies
    • Football Superstar 2: USA Ed. v1.0.19 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2: USA Ed. By Scott Baillie
      Bundle ID: com.lazyboydevelopments.usafootysuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2-usa-ed/id6449435265?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Jailbreak required hack(s): [Mod Menu Hack] Football Superstar 2: USA Ed. v1.0.18 +2 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 11 replies
    • Football Superstar 2: USA Ed. v1.0.19 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2: USA Ed. By Scott Baillie
      Bundle ID: com.lazyboydevelopments.usafootysuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2-usa-ed/id6449435265?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Football Superstar 2: USA Ed. v1.0.18 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Thanks
        • Like
      • 3 replies
    • Screw Jam v3.8.0 +20++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Screw Jam By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.quok.screwJam
      iTunes Store Link: https://apps.apple.com/us/app/screw-jam/id6471490579?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Contact Us button. To close out the menu, restart the game.


      Jailbreak required hack(s): [Mod Menu Hack] Screw Jam v2.1.0 +20++ Cheats [ Debug Menu ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Like
      • 19 replies
    • Football Superstar 2 v1.0.47 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2 By Lazy Boy Developments
      Bundle ID: com.lazyboydevelopments.footballsuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2/id1607289341
       

      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167872-football-superstar-2-v1011-1-jailed-cheat-free-i-ap/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 141 replies
    • Football Superstar 2 v1.0.47 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Football Superstar 2 By Lazy Boy Developments
      Bundle ID: com.lazyboydevelopments.footballsuperstar2
      iTunes Store Link: https://apps.apple.com/us/app/football-superstar-2/id1607289341
       

      Hack Features:
      - Unlimited Cash
      - Unlimited Exp


      Jailbreak required hack(s): https://iosgods.com/topic/168893-football-superstar-2-v1011-2-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 297 replies
    • Screw Jam v3.8.0 +20++ Cheats [ Debug Menu ]
      Modded/Hacked App: Screw Jam By Rollic Games Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.quok.screwJam
      iTunes Store Link: https://apps.apple.com/us/app/screw-jam/id6471490579?uo=4


      Hack Features:
      - Debug Menu -> Head into Settings and toggle the Contact Us button. To close out the menu, restart the game.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Screw Jam v2.1.0 +20++ Jailed Cheats [ Debug Menu ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Like
      • 16 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines