Jump to content

H5GG Tricks to do Live (online) Code Patching for Non-Jailbroken Devices !


53 posts in this topic

Recommended Posts

Updated (edited)

UPDATE: You can achieve this with JIT from Sideloadly/Altstore/etc now


First and foremost this trick is not for everyone.

It is mostly for those casual hacker who will do some dynamic hacking with debugger, while won’t spend a lot of time in front of PC.

Casual, in a sense that he/she does not have a jailbroken device.

He/she would like to do some causal hacking with in travel or away from PC.

This Trick allow you to test your hack with H5GG in real-time.
YES, no need to repackage and re-sideload.

Requirements:

- Xcode
- Subway Surfers
 
Spoiler

First, please follow ꞋꞌꞋꞌꞋꞌꞋꞌ ’s tutorial (H5GG Full Tutorial [Offset Patching + Hooking] for Non-Jailbroken/Jailbreak Devices !) to get Subway Surfers with H5GG & h5frida sideloaded to your Non-Jailbroken device.


Below is a modify version of CodePatchOffsetWithBytes.js (see H5GG GitHub) for Subway Surfers 3.6.0 (Always can Jump hack)

h5gg.require(7.8);

var modules = h5gg.getRangesList("UnityFramework"); //module file name

var base = modules[0].start; //module base addr in runtime memory

var addr = Number(base) + 0x1B39598; //offset

patchBytes(addr,  "200080D2C0035FD6"); //bytes

/********************************************************/
//Usually only jailbroken devices can do this, but we have a trick
function patchBytes(addr, hex) {
    for(i = 0;i<hex.length/2;i++) {
        var item = parseInt(hex.substring(i*2, i*2+2), 16);
        h5gg.setValue(addr+i,item, "U8");
    }
}
/********************************************************/

This code is supposed only work with Jailbroken device.

Save it in your iOS device, reachable by iOS Files App.

Here is the Tricks.

  1. Run Subway Surfers on iOS device
  2. Connect your iOS device to your PC
  3. Open up Xcode, create a random project.
  4. Attach debugger to your iOS’s Subway Surfers process (Debug -> Attach to Process, be sure you are project runtime is pointing at your iOS device) 
  5. After the debugger attached to your game, go to your game and inject the script with H5GG by clicking “the Scripts” button, and click on “Load” to find your script.
  6. Boom, the hack is done.
     

Yes, if you do not have debugger on, the game will normally crash immediately due to invalid memory access (code section in memory is protected under non-jailbroken device, with one exception - when it is tagged as under debugging)

At this point, you may ask, does it mean we need to have debugger always turn on, for this hack. It is pretty useless.

The answer is NO. You can now try detach the debugger (Either disconnect your iOS device or Xcode -> Debug -> Detach)

Try your hack scripts again. Or change to any script that hack different offsets.

The game WON’T Crash. It is because the Debugging state of the App is very sticky. It won’t reset before your restart your App/Game.

In fact, you just need to attached and detach immediately. The debugging state is already registered.

So, Enjoy casual hacking with live code patching on non-jailbroken device.

note:

  1. I haven’t try if h5frida Interceptor work in this way. I will give it a try later. But I guess, likely not work. Or it mean we can do live hooking as well. Too good to be true.
  2. I guess ios-deploy might able to create the same Debugging state without Xcode as well. I haven't try as well.

 

Credits :

@tuancc the H5GG tool

 @ꞋꞌꞋꞌꞋꞌꞋꞌ for the tutorial on H5GG tutorial

Updated by Happy Secret
JIT update
  • Like 38
  • Winner 3
  • Thanks 2
  • Haha 1
  • Agree 2
Posted
4 hours ago, ꞋꞌꞋꞌꞋꞌꞋꞌ said:

Nice, that's pretty cool PepeStop

I never tried debug a game with xCode.

Nice tut, gonna link it on my tut :) 

Thanks for the support. 
 

if you are on Mac, Xcode is a pretty good option. Free and suppprt signing and Sideload with your our own Apple developer certificate.

 

Posted
8 hours ago, Happy Secret said:

Thanks for the support. 
 

if you are on Mac, Xcode is a pretty good option. Free and suppprt signing and Sideload with your our own Apple developer certificate.

 

Yeah but sadly i don't have a mac

  • Agree 1
Posted
4 minutes ago, ꞋꞌꞋꞌꞋꞌꞋꞌ said:

Yeah but sadly i don't have a mac

Frankly, I want a Windows PC as well. A lot app in Windows OS are not available in Mac. Take DnSpy as example, I tried pretty hard still can’t get it running with wine in Mac.

Posted
4 hours ago, Happy Secret said:

Frankly, I want a Windows PC as well. A lot app in Windows OS are not available in Mac. Take DnSpy as example, I tried pretty hard still can’t get it running with wine in Mac.

use IlSpy for macOS, it's working great, it's different then DnSpy but well at least you can decompile DLLs

Posted
6 hours ago, Happy Secret said:

Frankly, I want a Windows PC as well. A lot app in Windows OS are not available in Mac. Take DnSpy as example, I tried pretty hard still can’t get it running with wine in Mac.

IDA pro crack also, 😆

Posted
1 hour ago, namcyeon said:

IDA pro crack also, 😆

Haven’t try to do same thing with IDA. 

I use IDA normally for string search, static analysis using graphical view. 
I don’t even debug from IDA now. Completely don’t know how to debug on non-jailbroken device.

Posted
2 hours ago, ꞋꞌꞋꞌꞋꞌꞋꞌ said:

use IlSpy for macOS, it's working great, it's different then DnSpy but well at least you can decompile DLLs

Cool, thx. Not aware of that. 
Do you have a good source of it? I don’t familiar GitHub and how to build. It often take me long time.

Posted
11 minutes ago, Happy Secret said:

Haven’t try to do same thing with IDA. 

I use IDA normally for string search, static analysis using graphical view. 
I don’t even debug from IDA now. Completely don’t know how to debug on non-jailbroken device.

I think IDA is the best disassembler tool, i can decompile il2cpp, read the understandable code

UGrcZGk.png

To

Je63274.png

  • Like 1

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

    • WAR OF THE VISIONS FFBE Cheats v11.3.6 +3 [ Multiply Damage & Defense ]
      Modded/Hacked App: FINAL FANTASY BE:WOTV By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbeww
      iTunes Store Link: https://apps.apple.com/us/app/final-fantasy-be-wotv/id1484937345?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/173485-final-fantasy-bewotv-v730-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/173483-war-of-the-visions-ffbe-cheats-v740-3-multiply-damage-defense/
      • 210 replies
    • SimCity BuildIt Cheats v1.63.0 +1 [ Freeze Currencies ]
      Modded/Hacked App: SimCity BuildIt By EA Swiss Sarl
      Bundle ID: com.ea.simcitymobile.bv
      iTunes Store Link: https://apps.apple.com/us/app/simcity-buildit/id913292932?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/124792-arm64-simcity-buildit-v1412-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157687-simcity-buildit-cheats-v1415-1/
      • 647 replies
    • PewDiePie's Tuber Simulator Cheats v2.48.0 +3
      Modded/Hacked App: PewDiePie's Tuber Simulator By Outerminds Inc.
      Bundle ID: com.outerminds.tubular
      iTunes Store Link: https://apps.apple.com/us/app/pewdiepies-tuber-simulator/id1093190533?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

      - Infinite Subscriber
      - Infinite Views
      - Infinite Bux

      NOTE: Please complete tutorial first before enabling the hacks otherwise it won't work

      NOTe 2: Please make a youtube video to get some views first (without hack) then before enable infinite views

       

      Non-Jailbroken Hack: https://iosgods.com/topic/86411-pewdiepies-tuber-simulator-v2450-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/86366-pewdiepies-tuber-simulator-cheats-v2460-3/
      • 1,143 replies
    • [ ArKnights TW ] 明日方舟 v26.3.21 - [ x Player Damage & More ]
      Modded/Hacked App: 明日方舟 By GRYPH FRONTIER PTE. LTD.
      Bundle ID: tw.txwy.ios.arknights
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F/id1490985322?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

      - x Player Damage - x1 - 1000
      - x Player Defense - x1 - 1000
      - x Player Attack Speed - x1 - 10
      - Frozen Enemies
      - Instant - Kill
      - Instant - Win
      - Unlimited Skills
      - No Deploy Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/129722-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129583-arknights-tw-%E6%98%8E%E6%97%A5%E6%96%B9%E8%88%9F-v26321-x-player-damage-more/
      • 455 replies
    • Cooking Diary Restaurant Game v2.38.1 Jailed Cheats +3
      Modded/Hacked App: Cooking Diary® Restaurant Game by MyTona Pte Ltd
      Bundle ID: com.mytonallc.cookingdiary
      iTunes Store Link: https://apps.apple.com/us/app/cooking-diary-restaurant-game/id1214763610?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies (Get some)
      - Freeze Boosters


      iOS Hack Download Link: https://iosgods.com/topic/110310-arm64-cooking-diary-restaurant-game-v1160-3/
      • 668 replies
    • Subway Surfers Cheats v3.44.0 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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 (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
      • 2,295 replies
    • DomiNation Asia By NEXON Company v12.1460.1461 - [ Currencies Freeze & More ]
      Modded/Hacked App: ドミネーションズ -文明創造- (DomiNations) By NEXON Company
      Bundle ID: com.nexon.dominations.asia
      iTunes Store Link: https://itunes.apple.com/jp/app/ドミネーションズ-文明創造-dominations/id1012778321


      Hack Features:
      - Unlimited Crowns/Food/Oil/Gold -> Resources will add instead of subtracting. Works with Crowns. Read note inside the feature for more information! This does not work for speeding up buildings.
      - All Achievements Unlocked 
      - Freeze Crowns/Food/Oil/Gold -> Freezes Resources so they do not decrease when used! This does not work for speeding up buildings.
      - No Citizen Cost 
      - 0 Cost to Speed Up Training Troops
      - 0 Cost to Speed Up Tactics
      - 0 Food Cost to Train Troops
      - 0 Food Cost to Upgrade Troops
      - No Timer to Upgrade Troops
      - 0 Food Cost to Train Spells
      - 0 General Train Cost
      - No General Train CoolDown
      - 0 Food Cost to Build Wonder
      - 0 Food Cost to Research Troops
      - 0 Food Cost to Upgrade Tactics
      - No Timer to Library Research
      - No Timer to Upgrade Spells
      - 0 Cost to Upgrade Buildings
      - 0 Workers Required to Upgrade
      - 0 Crown Cost For Peace

      This hack works on the latest x64 or ARM64 & ARM64e iDevices: iPhone 5s, 6, 6 Plus, 6s, 6s Plus, 7, 7 Plus, 8, 8 Plus, X, Xr, Xs, Xs Max, 11, 11 Pro, 11 Pro Max, 12, 12 Pro, 12 Pro Max, 12 Mini, 13, 13 Pro, 13 Pro Max, 13 Mini, 14, 14 Plus, 14 Pro, 14 Pro Max, SE, iPod Touch 6G, 7G, iPad Air, Air 2, iPad Pro & iPad Mini 2, 3, 4, 5, 6 and later.


      Global hack(s): https://iosgods.com/topic/50401-ultrahack-dominations-v6660661-40-cheats-iosgods-exclusive/?tab=comments#comment-1582742
      • 1,086 replies
    • Kingdom Towers v0.2.11 [+4 Jailed Cheats]
      Modded/Hacked App: Kingdom Towers By Martin Quinones
      Bundle ID: com.pizia.kingdomtowers
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-towers/id6699736128?uo=4



      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - One Hit Kill
      - Unlocked All Towers/Relics
      • 6 replies
    • Kingdom Towers v0.2.11 [+4 Cheats]
      Modded/Hacked App: Kingdom Towers By Martin Quinones
      Bundle ID: com.pizia.kingdomtowers
      iTunes Store Link: https://apps.apple.com/us/app/kingdom-towers/id6699736128?uo=4

       

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - One Hit Kill
      - Unlocked All Towers/Relics
      • 6 replies
    • Derailed: Survival Adventure v1.6.1 [+3 Jailed Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4



      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 3 replies
    • Derailed: Survival Adventure v1.6.1 [+3 Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4

       

      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 4 replies
    • (Colopl Rune Story Japan) 白猫プロジェクト v5.23.1 +6 Jailed Cheats
      Modded/Hacked App: 白猫プロジェクト By COLOPL, Inc.
      Bundle ID: jp.colopl.wcat
      iTunes Store Link: https://apps.apple.com/jp/app/%E7%99%BD%E7%8C%AB%E3%83%97%E3%83%AD%E3%82%B8%E3%82%A7%E3%82%AF%E3%83%88/id895687962?uo=4

       

      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.





      Hack Features:
      - Loot Multiplier - x1 - 100
      - Damage Multiplier
      - Never Die
      - Custom Damage
      - Unlimited SP
      - Move Speed Multiplier


      Jailbreak required hack(s): 


      Hack Download Link:

      Hidden Content
      React or reply to this topic to see the <a href='https://iosgods.com/topic/3762-info-how-to-unlockview-the-hidden-content-on-iosgods/?do=findComment&comment=78119'>hidden content & download link</a>.








      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.
      STEP 3: Download Cydia Impactor and extract the archive.
      STEP 4: Open/Run Cydia Impactor on your computer then connect your iOS Device and wait until your device name shows up on Cydia Impactor.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Cydia Impactor application.
      STEP 6: You will now be asked to enter your iTunes/Apple ID email login & then your password. Go ahead and enter the required information..
      STEP 7: Wait for Cydia Impactor to finish sideloading/installing the hacked IPA.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will now need to go to your Settings -> General -> Profiles & 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 instructions inside the hack's popup in-game.

      NOTE: For free Apple Developer accounts you will need to repeat this process every 7 days. Using a disposable Apple ID for this process is suggested but not required. Jailbroken iDevices can skip using Cydia Impactor and just install the IPA mod with AppSync & IPA Installer (or alternatives) from Cydia. If you have any questions or problems, read our Cydia Impactor topic and if you don't find a solution, 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:
      - @Zahir


      Cheat Video/Screenshots:

       
      • 480 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