Jump to content

I need help with my hook please!!!


Go to solution Solved by AlyssaX64,

11 posts in this topic

Recommended Posts

Posted (edited)

I just started leaning hook. and i successfully hook a float method with no parameter with return value.

But Now i am trying to hook method with multiple parameters but it give me game crash i dont know what i am doing wrong and thats why i am help seeking help.
First let me share offsets of those method:
 

// BasePlayerController
// Token: 0x06002418 RID: 9240 RVA: 0x0000C02C File Offset: 0x0000A22C
[Token(Token = "0x6002418")]
[Address(RVA = "0xF3B4A8", Offset = "0xF3B4A8", VA = "0xF3B4A8")]
[IDTag(1)]
public bool FastChangeAnimatorStates(int layer, int stateHash, bool allowReplay = false, float normalizedTime = 0f)
{
    return default(bool);
}

// BasePlayerController
// Token: 0x060023FA RID: 9210 RVA: 0x00002066 File Offset: 0x00000266
[Token(Token = "0x60023FA")]
[Address(RVA = "0xF38F8C", Offset = "0xF38F8C", VA = "0xF38F8C", Slot = "9")]
protected virtual void LateUpdate()
{
}



i am using those above method and their offsets. here is my code:

bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);

    void (*old_lateUpdate)(void *myplayer);
    void lateUpdate(void *myplayer){
        if (myplayer != NULL){

            //test2 is a button for activating i am using batchh modmenu
            if (test2){
                FastChangeAnimatorStates(myplayer, 0, 531867845, true, 0.f);
            }
        }
        return old_lateUpdate(myplayer);
    }

 

this is in another file  where i add hook. again i am using batchh modmenu from here iosgods
 

  static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        //here add your hooks.

        HOOK(0xF38F8C, lateUpdate, old_lateUpdate);
   
    });


 please check if anything wrong with my code or idk.
 please any help is appreciated . thanks in advance

Updated by RehmanAfridi
  • Solution
Posted


 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(myplayer, 0, 531867845, true, 0.f);
            }
        }
         old_lateUpdate(_this);
    }

@RehmanAfridi try it like this!!!

Posted

The hook doesn’t have any problem, you can also try HOOK_DOPA if you are on rootless, also be sure the code is correct, try using Alyssa one

Posted
1 hour ago, batchh said:

The hook doesn’t have any problem, you can also try HOOK_DOPA if you are on rootless, also be sure the code is correct, try using Alyssa one

I have uncover jailbreak. iOS Version 14.3

2 hours ago, AlyssaX64 said:

try it like this!!!

let me try now

Posted (edited)
2 hours ago, AlyssaX64 said:
 FastChangeAnimatorStates(myplayer, 0, 531867845, true, 0.f);

@AlyssaX64 first parameter "myplayer" shouldnt this be _this  bcoz it give me error "use of undecleared identifier"? sorry i am still learning.  

Updated by RehmanAfridi
Posted
12 minutes ago, RehmanAfridi said:

@AlyssaX64 first parameter "myplayer" shouldnt this be _this  bcoz it give me error "use of undecleared identifier"? sorry i am still learning.  

i have used it like this and it worked thanks you
 

 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(_this, 0, 531867845, true, 0.f);
            }
         old_lateUpdate(_this);
    }

 

Posted
52 minutes ago, RehmanAfridi said:

i have used it like this and it worked thanks you
 

 void (*old_lateUpdate)(void *_this);
 void lateUpdate(void *_this){
   
      bool (*FastChangeAnimatorStates)(void *, int layer, int stateHash, bool allowReplay, float normalizedTime) = (bool (*)(void *, int, int, bool, float))getRealOffset(0xF3B4A8);
   

            if (test2){
                FastChangeAnimatorStates(_this, 0, 531867845, true, 0.f);
            }
         old_lateUpdate(_this);
    }

 

Doesn't matter if you use _this , _That or _myplayer . make sure it's same

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

    • Triple Fantasy v7.81.0 +2 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Triple Fantasy By Gameplete
      Bundle ID: com.Gameplete.CardFantasy
      iTunes Store Link: https://apps.apple.com/us/app/triple-fantasy/id1018725872?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      • 6 replies
    • Triple Fantasy v7.81.0 +2 Cheats [ Damage & Defence ]
      Modded/Hacked App: Triple Fantasy By Gameplete
      Bundle ID: com.Gameplete.CardFantasy
      iTunes Store Link: https://apps.apple.com/us/app/triple-fantasy/id1018725872?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      • 4 replies
    • Tiny Defense - Tower Defense v0.3.0 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4

       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
      • 6 replies
    • Tiny Defense - Tower Defense v0.3.0 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Tiny Defense - Tower Defense By jeongwoo park
      Bundle ID: com.bumbloo.tinydefense
      App Store Link: https://apps.apple.com/us/app/tiny-defense-tower-defense/id6520386369?uo=4
       

      🤩 Hack Features

      - Gems

      - Coins

      - Energy

      - Battle Coins

      - Fingerprint Box Coins

      - Premium Box

      - Common Box

      - ATK

      - ATK Speed

      Disable Currency After Hack
      • 1 reply
    • Cup Quest - Hero's Journey v1.3 [+3 Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
      • 2 replies
    • Cup Quest - Hero's Journey v1.3 [+3 Jailed Cheats]
      Modded/Hacked App: Cup Quest - Hero's Journey By DOGSTER TECHNOLOGIES PRIVATE LIMITED
      Bundle ID: com.felicity.cupquest
      App Store Link: https://apps.apple.com/us/app/cup-quest-heros-journey/id6742395137?uo=4



      🤩 Hack Features

      - One Hit Kill
      - Add Currency
      - Unlock Double Speed
      • 1 reply
    • Idle Dungeon Manager v1.7.6 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Idle Dungeon Manager By ColdFire Games GmbH
      Bundle ID: com.coldfiregames.dungeon.manager.tycoon.idle.game
      App Store Link: https://apps.apple.com/us/app/idle-dungeon-manager/id1538761888?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Currency

      - Resources

      - Stars

      - ATK HP SH [ Hero Up ] Tested Not
      • 0 replies
    • Idle Dungeon Manager v1.7.6 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Idle Dungeon Manager By ColdFire Games GmbH
      Bundle ID: com.coldfiregames.dungeon.manager.tycoon.idle.game
      App Store Link: https://apps.apple.com/us/app/idle-dungeon-manager/id1538761888?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Currency

      - Resources

      - Stars

      - ATK HP SH [ Hero Up ] Tested Not
      • 2 replies
    • Knights of Pen and Paper 3 v1.4.1 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 0 replies
    • Knights of Pen and Paper 3 v1.4.1 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 1 reply
    • Eternium Cheats v1.34.12 +11
      Modded/Hacked App: Eternium By Making Fun, Inc.
      Bundle ID: com.makingfun.mageandminions
      iTunes Store Link: https://apps.apple.com/us/app/eternium/id579931356?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - 5K Gems When Completed Stage
      - Infinite Gold
      - Infinite Cosmetic
      - Infinite Yellow Stone
      - Multiply Attack (Linked with Enemy)
      - No Skills Cooldown
      - No Consumable Cooldown
      - Multiply Attack Speed
      - Instant Regen Health
      - Always Crit
      - Material Drops (When you killed an Enemy it will drop materials for crafts)



      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194526-eternium-cheats-v13355-6/
      • 41 replies
    • June’s Journey: Hidden Objects v3.34.4 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
      • 42 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