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

    • Shadow Survival Vampire game v1.8.4 [ +5 Cheats ] OHK
      Modded/Hacked App: Shadow Survival: Vampire game By AlohaFactory
      Bundle ID: com.LiberalDust.DarkSurvival2
      iTunes Store Link: https://apps.apple.com/us/app/shadow-survival-vampire-game/id6467580965?uo=4


      Hack Features:
      - Anti-Cheat

      - Skill Cooldown

      - Damage

      - Good Mod [ Get Skill Between The Playing ]

      - Pickup Range
      • 38 replies
    • Shadow Survival Vampire game v1.8.4 [ +5 Jailed ] OHK
      Modded/Hacked App: Shadow Survival: Vampire game By AlohaFactory
      Bundle ID: com.LiberalDust.DarkSurvival2
      iTunes Store Link: https://apps.apple.com/us/app/shadow-survival-vampire-game/id6467580965?uo=4


      🚀 Hack Features

      - Anti-Cheat

      - Skill Cooldown

      - Damage

      - Good Mod [ Get Skill Between The Playing ]

      - Pickup Range
      • 16 replies
    • Match Heroes - RPG v4.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Match Heroes - RPG By Tapugo FZCO
      Bundle ID: com.tapugo.matchheroes
      App Store Link: https://apps.apple.com/ph/app/match-heroes-rpg/id6749947030?uo=4

      🤩 Hack Features

      - Unlimited Gold / Arena Rewards
      - Unlimited HP
      - Unlimited ATK
      - Unlimited DEF
      • 4 replies
    • Match Heroes - RPG v4.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Match Heroes - RPG By Tapugo FZCO
      Bundle ID: com.tapugo.matchheroes
      App Store Link: https://apps.apple.com/ph/app/match-heroes-rpg/id6749947030?uo=4

      🤩 Hack Features

      - Unlimited Gold / Arena Rewards
      - Unlimited HP
      - Unlimited ATK
      - Unlimited DEF
      • 2 replies
    • Darkest Hero! v0.1.4 [ +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
      • 24 replies
    • Darkest Hero! v0.1.4 [ +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
        • Like
      • 27 replies
    • Paradise Paws: Merge Animals v1.0.35 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Animal Sanctuary By Wildlife Studios, Inc
      Bundle ID: com.wildlifestudios.merge.animal.sanctuary
      App Store Link: https://apps.apple.com/us/app/animal-sanctuary/id6741805691?uo=4


      🤩 Hack Features

      - Gems

      - Coins

      - Heart

      - Spin

      - LvL

      - Exp

      - Fog Auto Remove [ Linked With LvL ]

      - Premum Lands Unlocked [ Just Tap ]

      - Store Free [ IAP Not ]

      Note:- Game Close After Currency Hack Don't Worry
      • 69 replies
    • Paradise Paws: Merge Animals v1.0.35 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Animal Sanctuary By Wildlife Studios, Inc
      Bundle ID: com.wildlifestudios.merge.animal.sanctuary
      App Store Link: https://apps.apple.com/us/app/animal-sanctuary/id6741805691?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Heart

      - Spin

      - LvL

      - Exp

      - Fog Auto Remove [ Linked With LvL ]

      - Premum Lands Unlocked [ Just Tap ]

      - Store Free [ IAP Not ]

      Note:- Game Close After Currency Hack Don't Worry
        • Agree
      • 48 replies
    • Starbrew Cafe: Mystical Merge v1.65.1 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Starbrew Cafe: Mystical Merge By Extra Dimension Games Inc.
      Bundle ID: games.extradimension.cafemerge
      App Store Link: https://apps.apple.com/us/app/starbrew-cafe-mystical-merge/id6456751444?uo=4

        

      🤩 Hack Features

      - Gems      --- In Store Buy Items [ Items Sale Price ] Show Free When You Buy Then Get Gems
      - Coins
      - Energy [ Buy Cost 0 ]
      - All Order Completed
      • 19 replies
    • Starbrew Cafe: Mystical Merge v1.65.1 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Starbrew Cafe: Mystical Merge By Extra Dimension Games Inc.
      Bundle ID: games.extradimension.cafemerge
      App Store Link: https://apps.apple.com/us/app/starbrew-cafe-mystical-merge/id6456751444?uo=4
       

      🤩 Hack Features

      - Gems  --- In Store Buy Items [ Items Sale Price ] Show Free When You Buy Then Get Gems
      - Coins
      - Energy [ Buy Cost 0 ]
      - All Order Completed
      • 21 replies
    • Star2 Random Defense(S2RD) v1.0.9 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Star2 Random Defense(S2RD) By Springcomes Co., Ltd.
      Bundle ID: com.gaimstudio.s2rd
      App Store Link: https://apps.apple.com/us/app/star2-random-defense-s2rd/id6739694467?uo=4

       

      🤩 Hack Features

      - Freeze Food
      - Freeze Silver
      - Freeze Essence
      - Freeze Either
      - Freeze Gold
      - Freeze Diamonds
      - Freeze Energy

      VIP
      - Unlimited Gold -> Will increase instead of decrease.
      - Unlimited Diamonds -> Will increase instead of decrease.
      - Unlimited Energy -> Will increase instead of decrease.
      • 14 replies
    • Epic Shaman Battle: 4P Defense v1.5.2 +2 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: Epic Shaman Battle: 4P Defense By Crater Co., Ltd.
      Bundle ID: com.percent.ios.p4defense
      iTunes Store Link: https://apps.apple.com/us/app/epic-shaman-battle-4p-defense/id6511224754?uo=4

       


      🤩 Hack Features

      - God Mode
      - Damage Multiplier
      • 44 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