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

    • Dawn of Ages: Medieval Games v2.0.7 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 8 replies
    • Disney Speedstorm v1.13.0 +1 Jailed Cheat [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Jailbreak required hack(s): [Mod Menu Hack] Disney Speedstorm v1.5.0 +2 Cheats [ Unlimited Nitro ] - 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/
      • 85 replies
    • Disney Speedstorm v1.13.0 +1 Cheat [ Unlimited Nitro ]
      Modded/Hacked App: Disney Speedstorm By Gameloft
      Bundle ID: com.gameloft.disneyspeedstorm
      iTunes Store Link: https://apps.apple.com/us/app/disney-speedstorm/id6449708682?uo=4


      Hack Features:
      - Unlimited Nitro -> Will not decrease.
      - Instant Nitro Max


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Disney Speedstorm v1.5.0 +2 Jailed Cheats [ Unlimited Nitro ] - 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/
      • 78 replies
    • Dawn of Ages: Medieval Games v2.0.7 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?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
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled

       

      ⬇️ 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

      - @Puddin
      - @Laxus

       

      📷 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
    • Earth Inc. Tycoon Idle Miner v5.3.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earth Inc. Tycoon Idle Miner By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.EarthInc
      iTunes Store Link: https://apps.apple.com/us/app/earth-inc-tycoon-idle-miner/id1582514877?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.


      Jailbreak required hack(s): [Mod Menu Hack] Earth Inc. v2.2.1 +3 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/
        • Like
      • 81 replies
    • Earth Inc. Tycoon Idle Miner v5.3.0 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Earth Inc. Tycoon Idle Miner By Treetop Crew Oy
      Bundle ID: com.TreetopCrew.EarthInc
      iTunes Store Link: https://apps.apple.com/us/app/earth-inc-tycoon-idle-miner/id1582514877?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:
      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Diamonds -> Will increase instead of decrease.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Earth Inc. v2.2.1 +3 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/
      • 49 replies
    • Slots Era - Slot Machines 777 v2.57.0 +100++ Jailed Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      Jailbreak required hack(s): https://iosgods.com/topic/172023-slots-era-slot-machines-777-v2200-100-cheat-srdebugger/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 177 replies
    • Slots Era - Slot Machines 777 v2.57.0 +100++ Cheats [ ULTIMATE HACK ]
      Modded/Hacked App: Slots Era - Slot Machines 777 By Murka Games Limited
      Bundle ID: com.murka.slotsera
      iTunes Store Link: https://apps.apple.com/us/app/slots-era-slot-machines-777/id1133138987
       

      Hack Features:
      - Debug Menu -> Head over to Settings and toggle the Privacy Policy button.


      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/
        • Winner
        • Like
      • 283 replies
    • Glow Fashion Idol v0.6.3 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Jailbreak required hack(s): [Mod Menu Hack] Glow Fashion Idol v0.3.3 +2 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/
      • 58 replies
    • Glow Fashion Idol v0.6.3 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Glow Fashion Idol By CRAZY LABS BY TABTALE , G.P.
      Bundle ID: com.crazylabs.fashionsquad
      iTunes Store Link: https://apps.apple.com/us/app/glow-fashion-idol/id6446197181?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Glow Fashion Idol v0.3.3 +2 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/
        • Like
      • 29 replies
    • Good Pizza, Great Pizza v5.32.0 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds
      - Unlimited Pizza Pass Claim -> Only works if you haven't claimed that reward yet.

      VIP
      - Unlimited Pizza Pass Tokens
      - Chef Pass Unlocked
      - Max Pizza Pass Level
      - Starter Bundle Unlocked
      - All Achievements Completed
      • 352 replies
    • Good Pizza, Great Pizza v5.32.0 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds
      - Unlimited Pizza Pass Claim -> Only works if you haven't claimed that reward yet. 

      VIP
      - Unlimited Pizza Pass Tokens 
      - Chef Pass Unlocked 
      - Max Pizza Pass Level 
      - Starter Bundle Unlocked 
      - All Achievements Completed
      • 184 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