Jump to content

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


60 posts in this topic

Recommended Posts

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

let procs = h5frida.enumerate_processes();
if(!procs || !procs.length) throw "frida无法获取进程列表\n\nfrida can't get process list";

let pid = -1; //pid=-1, 使用自身进程来调用OC/C/C++函数, 也可以附加到其他APP进程来调用
//Use its own process to call OC/C/C++ functions, or attach to other APP processes to call

try {pid=h5gg.getProcList("UnityFramework")[0].pid;}catch(e){}

let found = false;
for(let i=0;i<procs.length;i++) {
    if(procs[i].pid==pid) {
        //if(procs[i].name!='Gadget') throw "免越狱测试请卸载frida-server的deb然后重启当前APP\nFor non-jailbreak tests, please uninstall the frida-server deb and restart the current APP";
        found = true;
    }
}

if(!found) throw "frida无法找到目标进程\n\nfrida cannot find the target process";

//检查目标APP进程是否在前台运行, 如果在后台暂停了, frida附加调用会卡住
//Check whether the target APP process is running in the foreground, if it is suspended in the background, frida will be blocked
while(pid>0) {
    let frontapp = h5frida.get_frontmost_application();
    if(frontapp && frontapp.pid == pid) break;
    
    alert("请将目标APP切换至前台运行, 再点击确定继续...\n"
            + "Please switch the target APP to the foreground to run, and then click OK to continue...");
}

 

Im on my device atm, couldn't paste it as code, but here is a raw code i found on an H5GG project that takes the PID. Tho i haven't read anything related to frida interceptor method (regarding H5GG)

Cool, let me give them a try. 
If I remember correctly, h5frida.enumerate_processes() return process within Frida only. I only see Gadget in it previously.

Below one could work, frontmost app should be the game

  • let frontapp = h5frida.get_frontmost_application();
  • frontapp.pid

This one, I am not so sure. 

  • h5gg.getProcList("UnityFramework")[0].pid

 

There is a version of h5gg works cross-process app, which is requires jailbroken. Hopefully, these commands does not need that version.

 

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

Maybe after there is a way to find an automated step to make the app thinks it's in debugging mod ! 

It's good that "normal" hook with c++ work PepeStop

Am….are we talking the same hook? You seems have special expectation on that word “normal”.

My “normal” just mean, we don’t need to patch and re-Sideload the app. Just directly hook on to the app under debugging state.

Posted
27 minutes ago, Happy Secret said:

Am….are we talking the same hook? You seems have special expectation on that word “normal”.

My “normal” just mean, we don’t need to patch and re-Sideload the app. Just directly hook on to the app under debugging state.

I mean c++ hook like on Ted2 mod menu.

34 minutes ago, Happy Secret said:

h5gg.getProcList("UnityFramework")[0].pid

try {pid=h5gg.getProcList("UnityFramework")[0].pid;}catch(e){}

var session = h5frida.attach(pid);
 

I saw this code on github for the second option. (getProcList), idk if it requires JB or not 

  • Like 1
Posted
2 hours ago, ꞋꞌꞋꞌꞋꞌꞋꞌ said:

I mean c++ hook like on Ted2 mod menu

Never use Ted2 mod menu. I don’t have a jailbroken device now. 
 

is it a simple deb that I can inject and try out? 

Posted

Test Result:

1. try {pid=h5gg.getProcList("UnityFramework")[0].pid;}catch(e){} - NOT WORK

2. let frontapp = h5frida.get_frontmost_application();

    frontapp.pid; - THIS WORK

But the hook seems not always work, sometime it cause game hang (not exit) on applying the hook.

Need some more study.

  • Like 1
Posted
48 minutes ago, Happy Secret said:

Test Result:

1. try {pid=h5gg.getProcList("UnityFramework")[0].pid;}catch(e){} - NOT WORK

2. let frontapp = h5frida.get_frontmost_application();

    frontapp.pid; - THIS WORK

But the hook seems not always work, sometime it cause game hang (not exit) on applying the hook.

Need some more study.

Mhhh so you mean H5GG hook is working some times if debugging is on ? 

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

Mhhh so you mean H5GG hook is working some times if debugging is on ? 

I am not able to find out what causing the game hang yet. But I seem happened after I tried to clean up the script. It could also because I mess up the code.

Let me try a bit more today.

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

Mhhh so you mean H5GG hook is working some times if debugging is on ? 

Update:

1. It works every time on my iPad Pro (9.7) but not work on my iPad Pro 2nd Generation.

2. Both are on iPad OS 16.2

Completely no idea what happens. 
 

Luckily the live patching work across device. Just the Interceptor failed on one.

I guess it is the implementation of Interceptor causing problem. Because the statement simply hang and not returning, app’s console log show nothing. We just see the Interceptor call invoked, then nothing more in log and not progressing.

So, it is probably not invalid memory access stuff.


Looking for possible solutions.

  • Like 1
Posted
3 hours ago, Happy Secret said:

Update:

1. It works every time on my iPad Pro (9.7) but not work on my iPad Pro 2nd Generation.

2. Both are on iPad OS 16.2

Completely no idea what happens. 
 

Luckily the live patching work across device. Just the Interceptor failed on one.

I guess it is the implementation of Interceptor causing problem. Because the statement simply hang and not returning, app’s console log show nothing. We just see the Interceptor call invoked, then nothing more in log and not progressing.

So, it is probably not invalid memory access stuff.


Looking for possible solutions.

Mhhh okay okay thanks for testing :) 

Posted

Completely dead ended for live hook on non-jailbroken.

Tried 

1. Interceptor.replace instead of Interceptor.attach —FAILED on my IPad Pro 2nd Gen

2. Remove memory protection —FAILED on my IPad Pro 2nd Gen

 

For now, I will Iive with live patch first.
May be later see if H5GG would update embedded Frida version to latest. Then could give it a try.

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

    • The Catapult 2: Castle defense v8.1.0 [ +13 Cheats ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 1 reply
    • The Catapult 2: Castle defense v8.1.0 [ +13 Jailed ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 2 replies
    • Arcane Breakout +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Arcane Breakout By KEYSTORM HOLDINGS LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.game.arcanebreakout

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      • 1 reply
    • Dream Zone: My Fantasy Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Dream Zone: My Fantasy Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.dreamzone

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Love Sparks: Dating Sim +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sparks: Dating Sim By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.lovespark

       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- VIP Enabled
      • 0 replies
    • Field Day +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Field Day By BIT ODD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitodd.vortex

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
        • Winner
      • 1 reply
    • Love Sick: My Love Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sick: My Love Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.genres

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Field Day +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Field Day By BIT ODD oy
      Bundle ID: com.bitodd.vortex
      App Store Link: https://apps.apple.com/us/app/field-day/id6754967275?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
        • Winner
      • 1 reply
    • Love Sick: Stories & Choices +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Sick: Stories & Choices By SVEG MASHA, OOO
      Bundle ID: com.swagmasha.genres
      iTunes Store Link: https://apps.apple.com/us/app/love-sick-stories-choices/id1450264153?uo=4


      Hack Features:
      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Love Sick: Stories & Choices ( All Versions ) +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
        • Haha
        • Thanks
        • Winner
        • Like
      • 79 replies
    • BOOM BOOM TD +4 Mods [ Damage & Defence ]
      Mod APK Game Name: BOOM BOOM TD By Gamezaaa
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yblbsea.gpgat

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
        • Agree
      • 0 replies
    • Slime Hunter Idle Dx +7 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Slime Hunter Idle Dx By Gyeongtae Park
      Bundle ID: com.fingercat.slimehunterworldios
      App Store Link: https://apps.apple.com/us/app/slime-hunter-idle-dx/id6816451708?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Kill All Enemies
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
        • Like
      • 2 replies
    • BOOM BOOM TD +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: BOOM BOOM TD By Cedar Technology HK Limited
      Bundle ID: com.yblbsea.iosgat
      App Store Link: https://apps.apple.com/th/app/boom-boom-td/id6780721388?uo=4

       

      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
        • Thanks
      • 1 reply
×
  • 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