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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • SAKAMOTO DAYS デンジャラスパズル v1.0.3 +2 Cheats
      Modded/Hacked App: SAKAMOTO DAYS デンジャラスパズル By GOODROID,Inc.
      Bundle ID: jp.co.goodroid.sakapuzz
      iTunes Store Link: https://apps.apple.com/jp/app/sakamoto-days-%E3%83%87%E3%83%B3%E3%82%B8%E3%83%A3%E3%83%A9%E3%82%B9%E3%83%91%E3%82%BA%E3%83%AB/id6737511323?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

      - Damage Multiplier
      - Never Die

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 2 replies
    • SAKAMOTO DAYS デンジャラスパズル v1.0.3 +2 Jailed Cheats
      Modded/Hacked App: SAKAMOTO DAYS デンジャラスパズル By GOODROID,Inc.
      Bundle ID: jp.co.goodroid.sakapuzz
      iTunes Store Link: https://apps.apple.com/jp/app/sakamoto-days-%E3%83%87%E3%83%B3%E3%82%B8%E3%83%A3%E3%83%A9%E3%82%B9%E3%83%91%E3%82%BA%E3%83%AB/id6737511323?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 1 reply
    • Defense Game: Merge Battle v1.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Defense Game: Merge Battle By Thang Nguyen Ngoc
      Bundle ID: com.silent.survival.game
      iTunes Store Link: https://apps.apple.com/us/app/defense-game-merge-battle/id6742192332?uo=4

       

      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Coin/Energy
      - Always Can Use Special
      • 11 replies
    • Defense Game: Merge Battle v1.0.4 [+3 Cheats]
      Modded/Hacked App: Defense Game: Merge Battle By Thang Nguyen Ngoc
      Bundle ID: com.silent.survival.game
      iTunes Store Link: https://apps.apple.com/us/app/defense-game-merge-battle/id6742192332?uo=4



      🤩 Hack Features

      - Unlimited Currency
      - Unlimited Coin/Energy
      - Always Can Use Special
      • 7 replies
    • Pal Go: Tower Defense TD v0.3.45 [+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/
      • 30 replies
    • Pal Go: Tower Defense TD v0.3.45 [+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/
      • 52 replies
    • Exfil: Loot & Extract v3.0.2 Debug Menu [+10 Cheats]
      Modded/Hacked App: Exfil: Loot & Extract By Kwalee Ltd
      Bundle ID: com.eightsec.roguehero
      iTunes Store Link: https://apps.apple.com/us/app/exfil-loot-extract/id6448720577?uo=4


       

      🤩 Hack Features

      - Debug Menu (Enable and debug menu will appear)
       
      • 6 replies
    • Exfil: Loot & Extract v3.0.2 Debug Menu [+10 Jailed Cheats]
      Modded/Hacked App: Exfil: Loot & Extract By Kwalee Ltd
      Bundle ID: com.eightsec.roguehero
      iTunes Store Link: https://apps.apple.com/us/app/exfil-loot-extract/id6448720577?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and debug menu will appear)
      • 1 reply
    • [ Re:Dive KR ] 프린세스 커넥트! Re:Dive Cheats v10.7.1 +3
      Modded/Hacked App: 프린세스 커넥트! Re:Dive By Kakao Games Corp.
      Bundle ID: com.kakaogames.pcr
      iTunes Store Link: https://apps.apple.com/kr/app/%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-re-dive/id1452123050?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skill


      iOS Hack Download Link: https://iosgods.com/topic/148422-%ED%94%84%EB%A6%B0%EC%84%B8%EC%8A%A4-%EC%BB%A4%EB%84%A5%ED%8A%B8-redive-cheats-v403-3/
      • 111 replies
    • Lollipop 3: Match 3 Puzzles v25.0401.01 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4
       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 
      • 4 replies
    • Lollipop 3: Match 3 Puzzles v25.0401.01 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Lollipop 3: Match 3 Puzzles By Puzzle1Studio,inc.
      Bundle ID: com.puzzle1studio.ap.lollipopsweetheroesmatch3
      iTunes Store Link: https://apps.apple.com/us/app/lollipop-3-match-3-puzzles/id1634326372?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Coins

      - Lives

      - Booster

      - Moves

      - Auto Win 

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
      • 6 replies
    • Dream Resort - Match 3 Games v1.2.9 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 7 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