Jump to content

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


60 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 47
  • Winner 4
  • Thanks 3
  • Haha 3
  • Agree 3
  • Informative 2
Posted

Nice, that's pretty cool PepeStop

I never tried debug a game with xCode.

Nice tut, gonna link it on my tut :) 

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

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

    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v6.2.5 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
      • 8,071 replies
    • Mushroom War: Evolution TD v1.16.2 [ +8 APK MOD ] Currency Max
      Mod APK Game Name: Mushroom War: Evolution TD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=rollingball.td.mushroom.warriors&hl=en

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food Speed
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
      • 1 reply
    • Mushroom War: Evolution TD v1.2.0 [ +8 Cheats ] Currency Max
      Modded/Hacked App: Mushroom War: Evolution TD By Hangzhou Rolling Technology Co., Ltd.
      Bundle ID: com.snowball.td.mushroom
      App Store Link: https://apps.apple.com/us/app/mushroom-war-evolution-td/id6761058966?uo=4

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
      • 1 reply
    • Mushroom War: Evolution TD v1.2.0 [ +8 Jailed ] Currency Max
      Modded/Hacked App: Mushroom War: Evolution TD By Hangzhou Rolling Technology Co., Ltd.
      Bundle ID: com.snowball.td.mushroom
      App Store Link: https://apps.apple.com/us/app/mushroom-war-evolution-td/id6761058966?uo=4

      🤩 Hack Features

      - ADS Skip Ticket Max / Rewards Free
      - Battle Food
      ::::::: VIP :::::::
      - AI Freeze
      - Unlimited Gems
      - Unlimited Coins
      - Base HP MAX
      - Base HP Freeze
      - Hero HP Freeze
      • 1 reply
    • Skull Hero : XP Farm RPG v0.0.1.6 [ +3 APK MOD ] ATK MAX
      Mod APK Game Name: Skull Hero : XP Farm RPG
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.horus.hero.xp.farm.rpg&hl=en

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
      • 0 replies
    • Skull Hero : XP Farm RPG v0.1.0 [ +3 Cheats ] ATK MAX
      Modded/Hacked App: Skull Hero : XP Farm RPG By HORUS ENTERTAINMENT LIMITED
      Bundle ID: com.horusent.hero.xp.farm.rpg
      App Store Link: https://apps.apple.com/us/app/skull-hero-xp-farm-rpg/id6775685404?uo=4

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
      • 1 reply
    • Skull Hero : XP Farm RPG v0.1.0 [ +3 Jailed ] ATK MAX
      Modded/Hacked App: Skull Hero : XP Farm RPG By HORUS ENTERTAINMENT LIMITED
      Bundle ID: com.horusent.hero.xp.farm.rpg
      App Store Link: https://apps.apple.com/us/app/skull-hero-xp-farm-rpg/id6775685404?uo=4

      🤩 Hack Features

      - ViP Active
      - Enough Gems
      - ATK MAX
      • 0 replies
    • Highway of the Dead v0.2.8 [ +5 APK MOD ] Currency Max
      Mod APK Game Name: Highway of the Dead
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.YsoCorp.HighwayoftheDead

      🤩 Hack Features

      - Currency Freeze
      - Currency Enough
      - Unlimited Coins
      - Unlimited EXP / Faster Level UP
      - ATK Max
      • 1 reply
    • Highway of the Dead v0.2.2 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Highway of the Dead By Yso Corp
      Bundle ID: com.YsoCorp.HighwayoftheDead
      App Store Link: https://apps.apple.com/us/app/highway-of-the-dead/id6759250268?uo=4

      🤩 Hack Features

      - Currency Freeze
      - Currency Enough
      - Unlimited Coins
      - Unlimited EXP / Faster Level UP
      - ATK Max
      • 0 replies
    • Highway of the Dead v0.2.2 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Highway of the Dead By Yso Corp
      Bundle ID: com.YsoCorp.HighwayoftheDead
      App Store Link: https://apps.apple.com/us/app/highway-of-the-dead/id6759250268?uo=4

      🤩 Hack Features

      - Currency Freeze
      - Currency Enough
      - Unlimited Coins
      - Unlimited EXP / Faster Level UP
      - ATK Max
      • 0 replies
    • Card Train v1.1.1 [ +7 APK MOD ] Currency Max
      Mod APK Game Name: Card Train
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.kazrahann.cardtrain&ref

      🤩 Hack Features

      - Enough Cube
      - Enough Gems
      - Unlimited Coins
      - Mana Freeze
      - HP Max
      - HP Freeze
      - ATK Max
      • 1 reply
    • Mini Soccer Star 2026 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mini Soccer Star 2026 By VIVA GAMES S.L.
      Bundle ID: com.touch2goal.soccer
      App Store Link: https://apps.apple.com/us/app/mini-soccer-star-2026/id1636072966?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Earn or spend some.
      - Unlimited Gems -> Earn or spend some.
      - Unlimited Energy -> Earn or spend some.
      - Unlimited Tokens -> Earn or spend some.
      - Unlimited Skip Tickets -> Earn or spend some.
      -- VIP
      -- No Ads
      • 213 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