Jump to content

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


1,490 posts in this topic

Recommended Posts

Updated (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Astra Squad +3 Cheats [ Unlimited Currencies ]
      Mod APK Game Name: Astra Squad By MEGAGIGA GAMES BILISIM A.S.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.astra.squad

       

      🤩 Hack Features

      - Currency Modifier -> Earn some. 
      - Tool Damage Multiplier
      - No Tool Level Requirement
      • 0 replies
    • Crunchyroll: Asdivine Saga +1 Jailed Cheat [ Full Game Unlocked ]
      Modded/Hacked App: Crunchyroll: Asdivine Saga By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.asdivinesaga
      App Store Link: https://apps.apple.com/us/app/crunchyroll-asdivine-saga/id6762117251?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
      • 0 replies
    • Idle Berserker legend of kali +3 Jailed Cheats
      Modded/Hacked App: 버서커 키우기 By A1GAMES Co,. Ltd.
      Bundle ID: com.a1gamesstudio.berserker
      App Store Link: https://apps.apple.com/kr/app/%EB%B2%84%EC%84%9C%EC%BB%A4-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746774731?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

      - Damage Multiplier
      - Defense Multiplier
      - Reward Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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. 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 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
      • 16 replies
    • Idle Berserker legend of kali +3 Cheats
      Modded/Hacked App: 버서커 키우기 By A1GAMES Co,. Ltd.
      Bundle ID: com.a1gamesstudio.berserker
      App Store Link: https://apps.apple.com/kr/app/%EB%B2%84%EC%84%9C%EC%BB%A4-%ED%82%A4%EC%9A%B0%EA%B8%B0/id6746774731?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

      - Damage Multiplier
      - Defense Multiplier
      - Reward Multiplier

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb 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 needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue 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

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 2 replies
    • Reactor 2: Nuclear Tycoon v1.0.0 [ +3 APK MOD ] Currency Max
      Mod APK Game Name: Reactor 2: Nuclear Tycoon
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.rsgapps.reactor.two&hl=en

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash

      Note:- Tut Skip For Cash
      • 0 replies
    • Reactor 2: Nuclear Tycoon v1.0.1 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Reactor 2: Nuclear Tycoon By Robert Grzybek
      Bundle ID: com.rsgapps.reactor.two
      App Store Link: https://apps.apple.com/us/app/reactor-2-nuclear-tycoon/id6761125316?uo=4

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash
      • 0 replies
    • Reactor 2: Nuclear Tycoon v1.0.1 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Reactor 2: Nuclear Tycoon By Robert Grzybek
      Bundle ID: com.rsgapps.reactor.two
      App Store Link: https://apps.apple.com/us/app/reactor-2-nuclear-tycoon/id6761125316?uo=4

      🤩 Hack Features

      - Radioactive Coins / Freeze
      - Unlimited Cash
      - Bank Capacity / Cash
      • 1 reply
    • Meow Knights: Idle RPG (Auto Update) Jailed Cheats +4
      Modded/Hacked App: Meow Knights: Idle RPG By MONSTER PLANET Corp.
      Bundle ID: com.MonsterPlanet.CatIdleRpg
      App Store Link: https://apps.apple.com/us/app/meow-knights-idle-rpg/id6760513582?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

      - God Mode
      - Multiply Attack
      - Free Store (not iAP)
      - PREMIUM

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/215640-meow-knights-idle-rpg-auto-update-jailed-cheats-4/
      • 5 replies
    • Empire Defense: Rome TD v1.0.5 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Empire Defense: Rome TD By Gokraft Games Ltd
      Bundle ID: com.gokraftgames.rome
      App Store Link: https://apps.apple.com/us/app/empire-defense-rome-td/id6760978980?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Meat
      • 0 replies
    • Empire Defense: Rome TD v1.0.5 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Empire Defense: Rome TD By Gokraft Games Ltd
      Bundle ID: com.gokraftgames.rome
      App Store Link: https://apps.apple.com/us/app/empire-defense-rome-td/id6760978980?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Meat
      • 1 reply
    • Ariana and the Elder Codex +1 Jailed Cheat [ Full Game Unlocked ]
      Modded/Hacked App: Ariana and the Elder Codex By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.arianaandtheeldercodex
      App Store Link: https://apps.apple.com/us/app/ariana-and-the-elder-codex/id6760456190?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
      • 3 replies
    • Lost Twins 2 +2 Mods [ Full Game Unlocked ]
      Mod APK Game Name: Lost Twins 2 By Playdew
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.playdew.losttwins2

       

      🤩 Hack Features

      - Unlock Full Game -> Head into Settings, tap on the J icon, then tap on the star icon.
      - Unlock x10 Coins -> Head into Settings, tap on the J icon, then tap on the speech bubble icon.
      • 0 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