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? 

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

    • Heroes Crew: Strategy Defense v1.4.25 [+13 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 140 replies
    • Heroes Crew: Strategy Defense v1.4.25 [+13 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 55 replies
    • Happy Citizens - Mayor Sim v1.3.9 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4


      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
      • 5 replies
    • Happy Citizens - Mayor Sim v1.3.9 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Happy Citizens - Mayor Sim By MIYA TECH LIMITED
      Bundle ID: com.miyagames.happycitizen.ios
      App Store Link: https://apps.apple.com/ca/app/happy-citizens-mayor-sim/id6745251520?uo=4

       
      🤩 Hack Features

      - Gems
      - Cash
      - Energy
      - Water
      • 10 replies
    • Shiba Story Go! RPG Idle Game v1.1.236 [ +12 Jailed ] Always Win
      Modded/Hacked App: Shiba Story Go! RPG Idle Game By Proof of Play, Inc.
      Bundle ID: com.proofofplay.shibastorygo
      App Store Link: https://apps.apple.com/ph/app/shiba-story-go-rpg-idle-game/id6749783343?uo=4 

      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys+3

      - Enhance Items

      - Pet Egg

      - Chest Max [ Server Error Show Some Time But Works ]

      - Fast Travel Energy Cost 1

      - Enemy Easy Kill [ Both Of Linked ] Server Error Show Some Time

      - Alway My Turn

      - HP [ Enemy Easy Kill + Alway My Turn ] Disable Then Use This Feature

      - ATK

      - DEF
      • 8 replies
    • Shiba Story Go! RPG Idle Game v1.1.236 [ +12 Cheats ] Always Win
      Modded/Hacked App: Shiba Story Go! RPG Idle Game By Proof of Play, Inc.
      Bundle ID: com.proofofplay.shibastorygo
      App Store Link: https://apps.apple.com/ph/app/shiba-story-go-rpg-idle-game/id6749783343?uo=4

      🤩 Hack Features

      - Gems

      - Gold

      - Energy

      - Keys+3

      - Enhance Items

      - Pet Egg

      - Chest Max [ Server Error Show Some Time But Works ]

      - Fast Travel Energy Cost 1

      - Enemy Easy Kill [ Both Of Linked ] Server Error Show Some Time

      - Alway My Turn

      - HP [ Enemy Easy Kill + Alway My Turn ] Disable Then Use This Feature

      - ATK

      - DEF
      • 9 replies
    • Arcane Arena: Tower Defense TD v1.010 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Arcane Arena: Tower Defense TD By Panteon Yazilim Oyun Egitim Teknolojileri ve Hizmetleri Sanayi Ticaret Anonim Sirketi
      Bundle ID: com.panteon.arcanearena
      App Store Link: https://apps.apple.com/ca/app/arcane-arena-tower-defense-td/id6746447166?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Currency
      - Unlimited Resource
      • 17 replies
    • Arcane Arena: Tower Defense TD v1.010 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Arcane Arena: Tower Defense TD By Panteon Yazilim Oyun Egitim Teknolojileri ve Hizmetleri Sanayi Ticaret Anonim Sirketi
      Bundle ID: com.panteon.arcanearena
      App Store Link: https://apps.apple.com/ca/app/arcane-arena-tower-defense-td/id6746447166?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Currency
      - Unlimited Resources
      • 8 replies
    • Darkest Hero! v0.0.60 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 6 replies
    • Darkest Hero! v0.0.60 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 4 replies
    • ACECRAFT v1.3.81 [+5 Jailed Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4


       

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
      • 50 replies
    • ACECRAFT v1.3.81 [+5 Cheats]
      Modded/Hacked App: ACECRAFT By VIZTA PTE. LTD.
      Bundle ID: com.vizta.wefly
      App Store Link: https://apps.apple.com/ca/app/acecraft/id6499112583?uo=4



      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - High Energy Gain (Ultimate Skill)
      - Exp Gain Multiplier
      - Attack Multiplier
      • 25 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