Jump to content

Hooking function cause crash


Go to solution Solved by AlyssaX64,

8 posts in this topic

Recommended Posts

Posted


So im hooking to the update function, but everytime when it execute it crashes. Any idea?

void(*old_Update)(void *instance);
void Update(void *instance) {

    bool isHeroTurn = *(bool*)((uint64_t)instance + 0x2B);

    if (isHeroTurn) {
      //do smth
    }
 
    old_Update(instance);
}

void setup() {
  MSHookFunction((void*)getRealOffset(0x1B9D454),(void*)Update,(void**)&old_Update);
}

[Token(Token = "0x60006D9")]
[Address(RVA = "0x1B9D454", Offset = "0x1B9D454", VA = "0x1B9D454")]
private void Update()
{
}
[NonSerialized]
[Token(Token = "0x40004D1")]
[FieldOffset(Offset = "0x2B")]
public bool isHeroesTurn;

 

Posted

Make sure you set targeted it if using UnityFramework

Posted (edited)
7 hours ago, Laxus said:

Make sure you set targeted it if using UnityFramework

Already done, keep crash idk why, like only on this one, when i hook other updates, it doesn't crash

7 hours ago, Puddin said:

What jailbreak you using?

palera1n rotful

Updated by batchh
Posted
2 hours ago, batchh said:

Already done, keep crash idk why, like only on this one, when i hook other updates, it doesn't crash

palera1n rotful

Try this

void(*old_Update)(void *instance);
void Update(void *instance) {

    bool isHeroTurn = *(bool*)((uint64_t)instance + 0x2B);

   if([switches isSwitchOn:NSSENCRYPT("Switch Name Goes Here")]) {
    *(bool*)((uint64_t)instance + 0x2B) = true;
    }
 
    old_Update(instance);
}

void setup() {
  MSHookFunction((void*)getRealOffset(0x1B9D454),(void*)Update,(void**)&old_Update);
}

 

Posted
5 hours ago, AlyssaX64 said:

Try this

void(*old_Update)(void *instance);
void Update(void *instance) {

    bool isHeroTurn = *(bool*)((uint64_t)instance + 0x2B);

   if([switches isSwitchOn:NSSENCRYPT("Switch Name Goes Here")]) {
    *(bool*)((uint64_t)instance + 0x2B) = true;
    }
 
    old_Update(instance);
}

void setup() {
  MSHookFunction((void*)getRealOffset(0x1B9D454),(void*)Update,(void**)&old_Update);
}

 

Still crashing :c

Posted
6 hours ago, AlyssaX64 said:

Try this

void(*old_Update)(void *instance);
void Update(void *instance) {

    bool isHeroTurn = *(bool*)((uint64_t)instance + 0x2B);

   if([switches isSwitchOn:NSSENCRYPT("Switch Name Goes Here")]) {
    *(bool*)((uint64_t)instance + 0x2B) = true;
    }
 
    old_Update(instance);
}

void setup() {
  MSHookFunction((void*)getRealOffset(0x1B9D454),(void*)Update,(void**)&old_Update);
}

 

Can i DM you if possible? 

  • Solution
Posted
Just now, batchh said:

Can i DM you if possible? 

Sure!!!

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

    • Pal Go: Tower Defense TD v0.3.73 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 46 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 71 replies
    • Derailed: Survival Adventure v1.8.0 [+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
      • 8 replies
    • Derailed: Survival Adventure v1.8.0 [+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
      • 7 replies
    • Life in Adventure v1.2.30 [+3 Jailed Cheats]
      Modded/Hacked App: Life in Adventure By sangil kim
      Bundle ID: com.StudioWheel.Bard
      iTunes Store Link: https://apps.apple.com/us/app/life-in-adventure/id1551617649?uo=4



      🚀 Hack Features

      - Add Gems (Do not Add More Than 900. If your Gem > 1000 You'll get ban)
      - Guild Subscription Activeted
      - Never Die
        • Like
      • 17 replies
    • Life in Adventure v1.2.30 [+3 Cheats]
      Modded/Hacked App: Life in Adventure By sangil kim
      Bundle ID: com.StudioWheel.Bard
      App Store Link: https://apps.apple.com/us/app/life-in-adventure/id1551617649?uo=4



      🤩 Hack Features

      - Add Gems (Do not Add More Than 900. If your Gem > 1000 You'll get ban)
      - Guild Subscription Activeted
      - Never Die
      • 6 replies
    • Bounce Defense v1.3.5 [+5 Jailed Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 11 replies
    • Bounce Defense v1.3.5 [+5 Cheats]
      Modded/Hacked App: Bounce Defense By Voodoo
      Bundle ID: com.minigamelab.bouncedefense
      App Store Link: https://apps.apple.com/us/app/bounce-defense/id6740627201?uo=4



      🤩 Hack Features

      - Add Currency
      - Add Battle Currency (Enable inside battle)
      - Never Die
      - Unlock All Towers
      - Unlimited Tower Cards
      • 8 replies
    • Galaxy Defense: Fortress TD v0.8.9 [+2 Cheats]
      Modded/Hacked App: Galaxy Defense: Fortress TD By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.galaxydefense
      App Store Link: https://apps.apple.com/us/app/galaxy-defense-fortress-td/id6740189002?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Activate SVIP
       
      • 25 replies
    • Galaxy Defense: Fortress TD v0.8.9 [+2 Jailed Cheats]
      Modded/Hacked App: Galaxy Defense: Fortress TD By CYBERJOY LIMITED
      Bundle ID: com.cyberjoy.galaxydefense
      App Store Link: https://apps.apple.com/us/app/galaxy-defense-fortress-td/id6740189002?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Activate SVIP
      • 5 replies
    • Run! Goddess v1.0.17 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
      • 76 replies
    • Run! Goddess v1.0.17 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
      • 68 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