Jump to content

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


1,450 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

    • PackMon Idle:Trainer Simulator v1.1.1 +3 Cheats
      Modded/Hacked App: PackMon Idle:Trainer Simulator By 3KM Inc.
      Bundle ID: com.threeKM.packMonsterIdle.app
      iTunes Store Link: https://apps.apple.com/us/app/packmon-idle-trainer-simulator/id6711349211?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multplier
      - Unlimited Currencies → Spend/Gain


      Non-Jailbroken & No Jailbreak required hack(s): 


      iOS Hack Download Link:

      Hidden Content

      Download Hack








      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 34 replies
    • PackMon Idle:Trainer Simulator v1.1.1 +3 Jailed Cheats
      Modded/Hacked App: PackMon Idle:Trainer Simulator By 3KM Inc.
      Bundle ID: com.threeKM.packMonsterIdle.app
      iTunes Store Link: https://apps.apple.com/us/app/packmon-idle-trainer-simulator/id6711349211?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Unlimited Currencies → Spend/Gain


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Agree
        • Thanks
        • Like
      • 36 replies
    • The Demonized: Idle RPG v3.8.1 +5 Jailed Cheats
      Modded/Hacked App: The Demonized: Idle RPG By Game Duo Co.,Ltd.
      Bundle ID: com.deepgames.release.becamethedevil
      iTunes Store Link: https://apps.apple.com/us/app/the-demonized-idle-rpg/id6477870177?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Dumb Enemies
      - Attack Speed Multiplier
      - Freeze Resources


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 143 replies
    • The Demonized: Idle RPG v3.8.1 +5 Cheats
      Modded/Hacked App: The Demonized: Idle RPG By Game Duo Co.,Ltd.
      Bundle ID: com.deepgames.release.becamethedevil
      iTunes Store Link: https://apps.apple.com/us/app/the-demonized-idle-rpg/id6477870177?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Dumb Enemies
      - Attack Speed Multiplier
      - Freeze Resources


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 162 replies
    • Take Off Bolts: Screw Puzzle v1.2.1 +1 [Freeze Timer]
      Modded/Hacked App: Take Off Bolts: Screw Puzzle By Topsmart Mobile Limited
      Bundle ID: ios.takeoffbolts.screw.puzzle
      iTunes Store Link: https://apps.apple.com/us/app/take-off-bolts-screw-puzzle/id6479238647?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Freeze Timer

       

      ⬇️ iOS Hack Download Link


      • 0 replies
    • Take Off Bolts: Screw Puzzle v1.2.1 +1 Jailed Cheats [Freeze Timer]
      Modded/Hacked App: Take Off Bolts: Screw Puzzle By Topsmart Mobile Limited
      Bundle ID: ios.takeoffbolts.screw.puzzle
      iTunes Store Link: https://apps.apple.com/us/app/take-off-bolts-screw-puzzle/id6479238647?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Freeze Timer

       

      ⬇️ iOS Hack Download IPA Link


      • 0 replies
    • Real Racing 3 Cheats v13.1.8 +4
      Modded/Hacked App: Real Racing 3 By Electronic Arts Inc.
      Bundle ID: com.ea.realracing3.inc
      iTunes Store Link: https://apps.apple.com/us/app/real-racing-3/id556164008?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Store
      - Freeze M$
      - Freeze R$
      - Freeze Gold

      Non-Jailbroken Hack: https://iosgods.com/topic/185163-real-racing-3-v1317-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/147926-real-racing-3-cheats-v1318-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 980 replies
    • Hero Assemble : Epic Idle RPG Cheats v1.10.04 +5
      Modded/Hacked App: Hero Assemble : Epic Idle RPG By cookapps
      Bundle ID: com.cookapps.heroassemble
      iTunes Store Link: https://apps.apple.com/us/app/hero-assemble-epic-idle-rpg/id6478940653?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Loot Multiplier
      - Jailbreak Detection Removed


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 142 replies
    • Angry Birds Dream Blast v1.81.0 Jailed Cheats +3
      Modded/Hacked App: Angry Birds Dream Blast By Rovio Entertainment Oyj
      Bundle ID: com.rovio.dream
      iTunes Store Link: https://apps.apple.com/us/app/angry-birds-dream-blast/id1432579280?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Infinite Moves
      - Infinite Lives
      - Infinite Boosters

      Jailbroken Version: https://iosgods.com/topic/149684-angry-birds-dream-blast-cheats-all-versions-3/


      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/149687-angry-birds-dream-blast-v1810-jailed-cheats-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 38 replies
    • Chef & Friends: Cooking Game Cheats v1.27.0 +1
      Modded/Hacked App: Chef & Friends: Cooking Game By MYTONA Ltd.
      Bundle ID: com.mytona.cheftales
      iTunes Store Link: https://apps.apple.com/us/app/chef-friends-cooking-game/id1586951898?uo=4


      Hack Features:
      - Infinite Currencies (Hats, Coins, Gems)

      NOTE: May bug out the game so better try on your throw away account first 


      iOS Hack Download Link: https://iosgods.com/topic/178904-chef-friends-cooking-game-cheats-v141-1/
        • Thanks
        • Winner
        • Like
      • 19 replies
    • Cat Snack Bar Cheats v1.0.163 +1
      Modded/Hacked App: Cat Snack Bar By treeplla Inc.
      Bundle ID: com.tree.idle.catsnackbar
      iTunes Store Link: https://apps.apple.com/us/app/cat-snack-bar/id6443895159?uo=4


      Hack Features:
      - Freeze Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170232-cat-snack-bar-v1036-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/170233-cat-snack-bar-cheats-v1036-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 71 replies
    • Cats & Soup Cheats v2.63.0 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/157486-cats-soup-v196-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v196-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 288 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