Jump to content

 Something great is coming! 🚀

Stay tuned for the big reveal happening here on iOSGods on the 17th of December!

The countdown has finished!

[Tutorial] How to make a MSHook Patcher


8 posts in this topic

Recommended Posts

Updated (edited)

Require:

- Theos

- Project with Preferences Bundle

- I'll be using mcpe mod sprint

- Knowledge of hacking :3

- knowledge of Preferences Bundle A Tutorial can be found here http://iosgods.com/topic/444-how-to-make-a-preference-bundle/

 

Instructions:

#import <CoreFoundation/CoreFoundation.h>
#import <substrate.h>
#import <Foundation/Foundation.h>

#define prefs @"/var/mobile/Library/Preferences/com.kenny808.mcpemods.plist"
inline bool GetPrefBool(NSString *key){
return [[[NSDictionary dictionaryWithContentsOfFile:prefs] valueForKey:key] boolValue];
}


%hook minecraftpeAppDelegate
- (void)applicationDidBecomeActive:(id)non {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"MCPE MODS:" message:@"Mods by Kenny808 Enjoy :)" delegate:nil cancelButtonTitle:@"Thank You!" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

float (*orig__ZN6Player23getWalkingSpeedModifierEv)(void *self, unsigned int i1);
float __ZN6Player23getWalkingSpeedModifierEv(void *self, unsigned int i1) {
if(GetPrefBool(@"kspeed"))
{
return 1.5f;
}
else
{
return orig__ZN6Player23getWalkingSpeedModifierEv(self,i1);
}
}
__attribute__((constructor)) void DylibMain()
{

MSHookFunction(((void*)MSFindSymbol(NULL,"__ZN6Player23getWalkingSpeedModifierEv")),(void *)__ZN6Player23getWalkingSpeedModifierEv,(void**)&orig__ZN6Player23getWalkingSpeedModifierEv);
}
1.image.jpg

Here a example...

 

2. then go to your resource folder and go to .plist file not the info.plist

And then type "kname" my is "kspeed" be sure the PSSwitchcell is false

image.jpg

 

 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>items</key>
  <array>
<dict>
      <key>cell</key>
      <string>PSSwitchCell</string>
      <key>default</key>
      <false/>
      <key>defaults</key>
      <string>com.kenny808.mcpemods</string>
      <key>key</key>
      <string>kspeed</string>
      <key>label</key>
      <string>Sprint Mod</string>
    </dict>
  </array>
  <key>title</key>
  <string>Mods</string>
</dict>
</plist> 
Then compile it :) Updated by kenny808
Posted

Nice Tutorial Kenny.

 

It'd be helpful for members if you could copy paste the Tweak.xm's content and add them in [code ] tags here on the forum. :p

Posted

Nice Tutorial Kenny.

 

It'd be helpful for members if you could copy paste the Tweak.xm's content and add them in [code ] tags here on the forum. :p

Ok...
Posted

@Kennyboy bro,receive errors every time.can you post your makefiles ?i think the Issue come from this.

Undefined symbols for architecture armv7:

  "_MSFindSymbol", referenced from:

      DylibMain() in Tweak.xm.4a464597.o

  "_MSHookFunction", referenced from:

      DylibMain() in Tweak.xm.4a464597.o

ld: symbol(s) not found for architecture armv7

 

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

    • Bluey's Quest for The Gold Pen v1.1.1 +3++ Debug Mode
      Modded/Hacked App: Bluey: Let's Play! By Budge Studios
      Bundle ID: com.budgestudios.BlueyBLU
      App Store Link: https://apps.apple.com/us/app/bluey-lets-play/id1669091583?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

      - Unlock full game
      - Debug mode
      - Unlimited currency
      • 4 replies
    • Zombie Roguebie: Shooting Game v1.2.2 Jailed Cheats +9
      Modded/Hacked App: Zombie Roguebie: Shooting Game By Metajoy Limited
      Bundle ID: com.boom.zombie.survival
      App Store Link: https://apps.apple.com/us/app/zombie-roguebie-shooting-game/id6752294198?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

      - Infinite Ammo
      - No Reload
      - High Pickup Range
      - Premium

      ViP
      - God Mode
      - High Damage
      - High Fire Rate
      - Freeze Currencies
      - Unlock All Guns

       

      Jailbroken Hack: https://iosgods.com/topic/203205-zombie-roguebie-shooting-game-cheats-v122-9/


      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/203204-zombie-roguebie-shooting-game-v122-jailed-cheats-9/
      • 3 replies
    • Jolly Match 3 - Puzzle Game v1.0.2199 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
      • 15 replies
    • Jolly Match 3 - Puzzle Game v1.0.2199 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
      • 16 replies
    • Hello Town: Merge & Succeed v3.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Hello Town By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.hellotown
      iTunes Store Link: https://apps.apple.com/us/app/hello-town/id6737850281?uo=4


      Hack Features

      - Diamonds
      - Gold
      - Energy Freeze



      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
    • Hello Town: Merge & Succeed v3.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Hello Town By Springcomes Co., Ltd.
      Bundle ID: com.spcomes.hellotown
      iTunes Store Link: https://apps.apple.com/us/app/hello-town/id6737850281?uo=4

       

      Hack Features

      - Diamonds
      - Gold
      - Energy Freeze



      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 29 replies
    • Mr Autofire v4.4.4 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:
      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 60 replies
    • Mr Autofire v4.4.4 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Mr Autofire By Lightheart Entertainment Oy
      Bundle ID: games.lightheart.mrautofire
      iTunes Store Link: https://apps.apple.com/us/app/mr-autofire/id1483457500?uo=4


      Hack Features:

      - N0 ADS [ Reward Free ]

      - Damage 

      - Health 

      - Pet Damage

      - Rome Clear [ 1 Wave Clear ]

      Level Rearwards 

      [ Gems - Silver - Pet Card - Hero Card - Guns Card ]
      • 29 replies
    • Adventure Bay - Farm Games v1.54.14 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4


      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 58 replies
    • Adventure Bay - Farm Games v1.54.14 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Adventure Bay - Farm Games By Gamegos Teknoloji A.S.
      Bundle ID: com.gamegos.adventure.bay.paradise.farm
      iTunes Store Link: https://apps.apple.com/us/app/adventure-bay-farm-games/id1578449819?uo=4
       

      🤩 Hack Features

      - Gems
      - Coins
      - Energy
      - Avatar Unlock
      • 47 replies
    • Dragon Wings: RPG Shoot em up v1.14.2 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4

       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
      • 33 replies
    • Dragon Wings: RPG Shoot em up v1.14.2 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Dragon Wings: RPG Shoot 'em up By Spirit Bomb Company Limited
      Bundle ID: rpg.arcade.space.shooter.dragon.wings
      App Store Link: https://apps.apple.com/us/app/dragon-wings-rpg-shoot-em-up/id6741735947?uo=4
       

      🤩 Hack Features

      - Super Card Active

      - Gems

      - Gold

      - Never Die

      - ATK 
      • 33 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