Jump to content

Help with multiple arguments on MSHooking


Go to solution Solved by AnotherLurker,

33 posts in this topic

Recommended Posts

Posted (edited)

So what should I do if this types appear?

 

- (void)function1:(int) function2:(int) function3:(int)

 

 

image.jpg

 

 

Will post pictures later.

 

Also, what should I do if there are other types of arguments?

 

- (bool) function:(?)

 

Can I even edit the (?)?

Updated by RockCreeper
  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Posted

So what should I do if this types appear?

- (void)function1:(int) function2:(int) function3:(int)

Will post pictures later.

Also, what should I do if there are other types of arguments?

- (bool) function:(?)

Can I even edit the (?)?

about the ? function you can skip it no need to return it

and about the multiple function you can return every function alone but you need to write it like this

-(void)function:(int)arg1 function:(int)arg2 function:(int)arg3
and the return

return whatever;
arg1 = whatever;
arg2 = whatever;
arg3 = whatever;
%orig(arg1, arg2, arg3)
hope this help ^_^
Posted (edited)

about the ? function you can skip it no need to return it

and about the multiple function you can return every function alone but you need to write it like this

-(void)function:(int)arg1 function:(int)arg2 function:(int)arg3
and the return

return whatever;
arg1 = whatever;
arg2 = whatever;
arg3 = whatever;
%orig(arg1, arg2, arg3)
hope this help ^_^

You can't modify values after you've already returned and ended the execution of the method. Here is the proper solution:

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   %orig(arg1ModifiedValue, arg2ModifiedValue, arg3ModifiedValue);
}
%end

Make sure to replace the "arg#ModifiedValues" with the integer values you want. :)

Updated by Dwayne Johnson
Posted

about the ? function you can skip it no need to return it

and about the multiple function you can return every function alone but you need to write it like this

-(void)function:(int)arg1 function:(int)arg2 function:(int)arg3
and the return
return whatever;
arg1 = whatever;
arg2 = whatever;
arg3 = whatever;
%orig(arg1, arg2, arg3)
hope this help ^_^

Trying to make it into a patcher... So could u give more tips? Ty

Posted

Trying to make it into a patcher... So could u give more tips? Ty

here this from my tweak.xm from Fragger patcher

%hook Score

-(bool)allowedLevel:(int)arg1 World:(int)arg2 {
if(GetPrefBool(@"key2")) {
return TRUE;
arg1 = 0;
arg2 = 0;
%orig(arg1, arg2);
}
return %orig;
}

%end
Posted

You can't modify values after you've already returned and ended the execution of the method. Here is the proper solution:

 

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   %orig(arg1ModifiedValue, arg2ModifiedValue, arg3ModifiedValue);
}
%end
Make sure to replace the "arg#ModifiedValues" with the integer values you want. :)

So

 

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   %orig(arg199999999, arg299999999, arg39999999);
}
%end
?
Posted (edited)

Trying to make it into a patcher... So could u give more tips? Ty

Here you go:

#define plistPath @"/var/mobile/Library/Preferences/YourPlist.plist"

BOOL GetPrefBool(NSString *key) { return [[NSDictionary dictionaryWithContentsOfFile:plistPath];

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   if (GetPrefBool(@"")) {
       %orig(arg1ModifiedValue, arg2ModifiedValue, arg3ModifiedValue);
   } else {
       %orig(); //return original implementation since prefs are not enabled
   }
}
%end
Updated by Dwayne Johnson
Posted

here this from my tweak.xm from Fragger patcher

%hook Score

-(bool)allowedLevel:(int)arg1 World:(int)arg2 {
if(GetPrefBool(@"key2")) {
return TRUE;
arg1 = 0;
arg2 = 0;
%orig(arg1, arg2);
}
return %orig;
}

%end

Going to test that.

Damn, how fast do you guys type...

 

Cant keep up with replies.

Posted

So

 

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   %orig(arg199999999, arg299999999, arg39999999);
}
%end

It's actually:

 

%orig(99999999, 99999999, 9999999);

 

Make sure the number is not set to above 2,147,483,647 at which point numbers exceeding that value are turned negative, if you want to use that value in Hacking, use this:

 

%orig(INT_MAX, INT_MAX, INT_MAX);

 

Just make sure that the number hacked is permanent, and never exceeds that amount. :)

Posted

So

%hook ClassName
- (void)function:(int)arg1 function:(int)arg2 function:(int)arg3 {
   %orig(arg199999999, arg299999999, arg39999999);
}
%end
?
do what i said it's work for me

also you don't need to return all the functions like the pic you want to return argument 2 so write

arg2 = 9999;
%orig(arg2)
you can change the value :)

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 Dungeon: Roguelike Game +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Shadow Dungeon: Roguelike Game By Deviloper Limited
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.deviloper.shadow.dungeon

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Silver -> Will increase instead of decrease.
      • 0 replies
    • Darkslayer 2 +5 Jailed Cheats
      Modded/Hacked App: Darkslayer 2 By StudioBreeze
      Bundle ID: com.sb.darkslayersd
      App Store Link: https://apps.apple.com/kr/app/darkslayer-2/id6759081336?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
      - Defense Multiplier
      - Attack Speed Multiplier
      - Move Speed Multiplier
      - 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, 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
        • Agree
        • Haha
        • Winner
        • Like
      • 6 replies
    • Court Six: Volleyball Game v1.0 [ +3 Jailed ] AI Freeze
      Modded/Hacked App: Court Six: Volleyball Game By 67 Game Ideas LLC
      Bundle ID: com.ideas67.courtsix
      App Store Link: https://apps.apple.com/us/app/court-six-volleyball-game/id6816279264?uo=4

      🤩 Hack Features

      - ADD Gem
      - ADD Gold
      - AI Freeze
        • Informative
      • 2 replies
    • Court Six: Volleyball Game v1.0 [ +3 Cheats ] AI Freeze
      Modded/Hacked App: Court Six: Volleyball Game By 67 Game Ideas LLC
      Bundle ID: com.ideas67.courtsix
      App Store Link: https://apps.apple.com/us/app/court-six-volleyball-game/id6816279264?uo=4

      🤩 Hack Features

      - ADD Gem
      - ADD Gold
      - AI Freeze
      • 0 replies
    • Paper Heroes: Territory Battle +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Paper Heroes: Territory Battle By BIT.GAMES
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitgames.paperheroes

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Unlimited Currencies -> Will increase instead of decrease.
      - No Ads
      • 0 replies
    • Starguard: Evo Merge TD +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Starguard: Evo Merge TD By ONDI TECHNOLOGY JSC
      Bundle ID: com.ondi.space.defense
      App Store Link: https://apps.apple.com/us/app/starguard-evo-merge-td/id6758495997?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Battle Coins -> Will increase instead of decrease.
        • Like
      • 0 replies
    • Grow Hidden Master +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Grow Hidden Master By Gameduo
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.gameduo.kt

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      - No Ads
      • 0 replies
    • Path Walker: Roguelike RPG +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Path Walker: Roguelike RPG By EKGAMES
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=net.ekgames.pathwalker

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Currencies
      - Freeze Energy
      - No Ads
        • Like
      • 0 replies
    • Ultraman: Legend of Heroes 2 +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Ultraman: Legend of Heroes 2 By JoyMore GAME
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.joymore.atmlegend2

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      - No Skill Cooldown
        • Winner
      • 4 replies
    • Oops Ninja: Idle Shuriken RPG +5 Mods [ Damage & Defence ]
      Mod APK Game Name: Oops Ninja: Idle Shuriken RPG By pungpungApp
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pungpungstudi.ninjakiugi

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Unlimited Silver
      - No Ads
        • Agree
      • 2 replies
    • Age of Stickman: Evolution +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Age of Stickman: Evolution By Velocita Z
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.twh003.stickman.rpg.idle.game

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - One-Hit Kill
        • Agree
      • 0 replies
    • The Demonized: Idle RPG +7 Jailed Cheats
      Modded/Hacked App: The Demonized: Idle RPG By Game Duo Co.,Ltd.
      Bundle ID: com.deepgames.release.becamethedevil
      iTunes Store Link: https://apps.apple.com/us/app/the-demonized-idle-rpg/id6477870177?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Dumb Enemies
      - Attack Speed Multiplier
      - Freeze Resources


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: 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 9: 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. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. 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 down 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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 385 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