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

    • World Conqueror 4 v2.7.2 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: World Conqueror 4 By 悦 张
      Bundle ID: com.zhangyue.wc4
      iTunes Store Link: https://apps.apple.com/us/app/world-conqueror-4/id1258468290?uo=4


      Hack Features:
      - Unlimited Gold -> Earn or spend some.
      - Unlimited Medals -> Earn or spend some.
      - Unlimited Energy -> Earn or spend some.
      - Unlimited Industry Points -> Earn or spend some.
      - Unlimited Technology Points -> Earn or spend some.


      Jailbreak required hack(s): [Mod Menu Hack] World Conqueror 4 v2.5.0 +5 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 53 replies
    • World Conqueror 4 v2.7.2 +5 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: World Conqueror 4 By 悦 张
      Bundle ID: com.zhangyue.wc4
      iTunes Store Link: https://apps.apple.com/us/app/world-conqueror-4/id1258468290?uo=4


      Hack Features:
      - Unlimited Gold -> Earn or spend some.
      - Unlimited Medals -> Earn or spend some.
      - Unlimited Energy -> Earn or spend some.
      - Unlimited Industry Points -> Earn or spend some.
      - Unlimited Technology Points -> Earn or spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] World Conqueror 4 v2.5.0 +5 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 47 replies
    • RuPaul's Drag Race Superstar v1.18.2 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: RuPaul's Drag Race Superstar By Eastside Games
      Bundle ID: com.eastsidegames.dragrace
      iTunes Store Link: https://apps.apple.com/us/app/rupauls-drag-race-superstar/id1553517801


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] RuPaul's Drag Race Superstar ( All Versions ) +1++ Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 248 replies
    • RuPaul's Drag Race Superstar v1.18.2 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: RuPaul's Drag Race Superstar By Eastside Games
      Bundle ID: com.eastsidegames.dragrace
      iTunes Store Link: https://apps.apple.com/us/app/rupauls-drag-race-superstar/id1553517801

       
      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease. This feature will auto update itself once a new version of the app is released!


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 52 replies
    • Block Clashers v0.1 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Block Clashers By EpiCoro d.o.o.
      Bundle ID: com.epicoro.blockclashers
      App Store Link: https://apps.apple.com/us/app/block-clashers/id6747714561?uo=4
       

      🤩 Hack Features

      - Cash
      - Battle Coins

      • 1 reply
    • Block Clashers v0.1 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Block Clashers By EpiCoro d.o.o.
      Bundle ID: com.epicoro.blockclashers
      App Store Link: https://apps.apple.com/us/app/block-clashers/id6747714561?uo=4


      🤩 Hack Features

      - Cash
      - Battle Coins

      • 2 replies
    • Raising Reincarnated SwordMage v1.18 +2 Jailed Cheats
      Modded/Hacked App: Raising Reincarnated SwordMage By Lunosoft Inc.
      Bundle ID: com.lunosoft.swordsman
      App Store Link: https://apps.apple.com/us/app/raising-reincarnated-swordmage/id6745645696?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

      - Enemy HP Divide
      - Enemy Damage Divide

       

      ⬇️ 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
      • 10 replies
    • Raising Reincarnated SwordMage v1.18 +2 Cheats
      Modded/Hacked App: Raising Reincarnated SwordMage By Lunosoft Inc.
      Bundle ID: com.lunosoft.swordsman
      App Store Link: https://apps.apple.com/us/app/raising-reincarnated-swordmage/id6745645696?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

      - Enemy HP Divide
      - Enemy Damage Divide

       

      ⬇️ 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.
      • 11 replies
    • SHIN MEGAMI TENSEI D×2 v8.2.00 +2 Cheats
      Modded/Hacked App: SHIN MEGAMI TENSEI D×2 By SEGA CORPORATION
      Bundle ID: com.sega.d2megaten.en
      iTunes Store Link: https://apps.apple.com/us/app/shin-megami-tensei-d-%EF%BC%92/id1349725119?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing / or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - x dmg
      - x def


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file is downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy to Filza.
      STEP 3: If necessary, tap on the downloaded file and then, you will need to press on 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down 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
      • 34 replies
    • SHIN MEGAMI TENSEI D×2 v8.2.00 +2 Jailed Cheats
      Modded/Hacked App: SHIN MEGAMI TENSEI D×2 by SEGA CORPORATION
      Bundle ID: com.sega.d2megaten.en
      iTunes Store Link: https://itunes.apple.com/us/app/shin-megami-tensei-d-%EF%BC%92/id1349725119?mt=8&uo=4&at=1010lce4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - No Skill Cost
      • 37 replies
    • Tales of Brave doomsday battle v2.1.19 +3 Cheats
      Modded/Hacked App: Tales of Brave doomsday battle By Hakan Aksar
      Bundle ID: com.tianyou.tob
      iTunes Store Link: https://apps.apple.com/us/app/tales-of-brave-doomsday-battle/id6587553322?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
      - No Skills Cooldown
      - No ADS

       

      ⬇️ 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.
      • 14 replies
    • Tales of Brave doomsday battle v2.1.19 +3 Jailed Cheats
      Modded/Hacked App: Tales of Brave doomsday battle By Hakan Aksar
      Bundle ID: com.tianyou.tob
      iTunes Store Link: https://apps.apple.com/us/app/tales-of-brave-doomsday-battle/id6587553322?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
      - No Skills Cooldown
      - No ADS

       

      ⬇️ 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 when prompted, 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
      • 14 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