Jump to content

Hack doesn't work when it's enabled, but does when it's disabled.


Ted2

8 posts in this topic

Recommended Posts

Hi,

I'm making a hack but I got into a weird problem.

I made a patcher using a template from here, hacking the game using the 'new mshook way by shmoo'.

 

Whenever I turn the hack ON in settings, the hack aint working. (int)

Whenever I turn it OFF, it works perfectly fine. (int)

 

BUT when i turn a boolean function, 'isCheater'  ON, it does work. 

 

I've checked my tweak.xm, but it's fine.

 

I'm confused as f**k xD

 

Anyone got a solution?

2 minutes ago, DiDA said:

Can you post your Tweak.xm here?

Yes sorry..

 

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

//tweak.xm by Chrizk0//
//template by DiDA//

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

//make up any function relevant to your symbols.//

int (*orig_Cash)(void *self);

//*static included before any function to obfuscate while decreasing size in compilation.*//

static int Cash(void *self) {
    if(GetPrefBool(@"key1"))
    {
        return 987654321;
    }
    else
    {
        return orig_Cash(self);
    }
}

static bool Cheat(void *self) {
    if(GetPrefBool(@"key2"))
    {
        return FALSE;
    }
    else
    {
        return orig_Cheat(self);
    }
}




//define your symbols with mshookfunction.//


__attribute__((constructor)) void DylibMain(){

 
MSHookFunction(MSFindSymbol(NULL, "__Z16Player_AwardCashP7SPlayeri"),(void*)Cash, (void**)&orig_Cash);

MSHookFunction(MSFindSymbol(NULL, "__Z22SceneManager_IsCheaterP13SSceneManager"),(void*)Cheat, (void**)&orig_Cheat);
}
%end 

 

MSHookFunction(MSFindSymbol(NULL, "__Z16Player_AwardCashP7SPlayeri"),(void**)&orig_Cash, (void*)Cash);

MSHookFunction(MSFindSymbol(NULL, "__Z22SceneManager_IsCheaterP13SSceneManager"),(void**)&orig_Cheat, (void*)Cheat);

 

maybe works

7 minutes ago, cz1993 said:

MSHookFunction(MSFindSymbol(NULL, "__Z16Player_AwardCashP7SPlayeri"),(void**)&orig_Cash, (void*)Cash);

MSHookFunction(MSFindSymbol(NULL, "__Z22SceneManager_IsCheaterP13SSceneManager"),(void**)&orig_Cheat, (void*)Cheat);

 

maybe works

Got a bucn of errors lol.

 

/var/mobile/kimk/theos/include/substrate.h:310:20: note: candidate function
      [with Type_ = void] not viable: no known conversion from 'void **' to
      'const char *' for 2nd argument
static inline void MSHookFunction(MSImageRef image, const char *name, Ty...
                   ^
/var/mobile/kimk/theos/include/substrate.h:284:20: note: candidate template
      ignored: deduced conflicting types for parameter 'Type_'
      ('void' vs. 'void *')
static inline void MSHookFunction(Type_ *symbol, Type_ *replace, Type_ *...
                   ^
/var/mobile/kimk/theos/include/substrate.h:303:20: note: candidate template
      ignored: could not match 'type-parameter-0-0 *' against 'void'
static inline void MSHookFunction(const char *name, Type_ *replace, Type...
                   ^
/var/mobile/kimk/theos/include/substrate.h:293:20: note: candidate function
      template not viable: requires 2 arguments, but 3 were provided
static inline void MSHookFunction(Type_ *symbol, Type_ *replace) {

 

lol..  do that..

 

static int Cash(void *self) {
    if(GetPrefBool(@"key1"))
    {
        return orig_Cash(self);
    }
    else
    {
        return 987654321;
    }
}

static bool Cheat(void *self) {
    if(GetPrefBool(@"key2"))
    {
        return orig_Cheat(self);
    }
    else
    {
        return FALSE;
    }
}
18 minutes ago, cz1993 said:

lol..  do that..

 


static int Cash(void *self) {
    if(GetPrefBool(@"key1"))
    {
        return orig_Cash(self);
    }
    else
    {
        return 987654321;
    }
}

static bool Cheat(void *self) {
    if(GetPrefBool(@"key2"))
    {
        return orig_Cheat(self);
    }
    else
    {
        return FALSE;
    }
}

hero <3 works, I love you!

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?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
      - Moves Freeze
      - Booster


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 3 replies
    • Match Villains v1.21.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Match Villains By Good Job Games Bilisim Yazilim ve Pazarlama AS
      Bundle ID: com.goodjobgames.matchvillains
      iTunes Store Link: https://apps.apple.com/us/app/match-villains/id6479752688?uo=4
       

      🚀 Hack Features

      - Coins
      - Lives
      - Moves Freeze
      - Booster


      🍏 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/
      • 4 replies
    • Sonic Forces: Run Battle Game v5.5.0 +2 Cheats
      Modded/Hacked App: Sonic Forces - Racing Battle By Sega America
      Bundle ID: com.sega.sonic2017ios
      iTunes Store Link: https://apps.apple.com/us/app/sonic-forces-racing-battle/id1262362476?uo=4


      Hack Features:
      - god mode
      - no loss of rings


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 472 replies
    • Modded/Hacked App: Puzzles & Passports: Match 3 By Big Fish Games, Inc
      Bundle ID: com.bigfishgames.tc.match3.puzzles.ios
      iTunes Store Link: https://apps.apple.com/us/app/puzzles-passports-match-3/id6468675988?uo=4

       

       

      Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      Hack Features

      - Auto Win [ Just Hit Target ]

      - Stars

      - Lives Inf

      - Moves

      - Booster 


      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/
        • Winner
      • 5 replies
    • Puzzles & Passports: Match 3 v1.28.4 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Puzzles & Passports: Match 3 By Big Fish Games, Inc
      Bundle ID: com.bigfishgames.tc.match3.puzzles.ios
      iTunes Store Link: https://apps.apple.com/us/app/puzzles-passports-match-3/id6468675988?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

      - Auto Win [ Just Hit Target ]

      - Stars

      - Lives Inf

      - Moves

      - Booster 


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 3 replies
    • Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?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

      - ADS NO [ Rewards Free ]

      - Avatar Unlocked

      - Frame Unlocked

      - Currency Max [ Earns Some - Disable After Hack ]

      - Resources Max [ Earns Some - Disable After Hack ]

      - Silver Coins [ Earn Some ]

      - Auto Win Wave [ Challenge & Adventure ]

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Like
      • 12 replies
    • Plant Survivor:Bang Bang v2.9.4 [ +10 Cheats ] Currency Max
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4

       

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Avatar Unlocked

      - Frame Unlocked

      - Currency Max [ Earns Some - Disable After Hack ]

      - Resources Max [ Earns Some - Disable After Hack ]

      - Silver Coins [ Earn Some ]

      - Auto Win Wave [ Challenge & Adventure ]

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 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/
        • Thanks
        • Winner
        • Like
      • 14 replies
    • Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?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

      - Silver Coins

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 4 replies
    • Plant Survivor:Bang Bang v2.9.4 [ +4 Cheats ] DMG
      Modded/Hacked App: Plant Survivor:Bang Bang By HONGKONG FANGQU NETWORK CO., LIMITED
      Bundle ID: com.fanqu.b5
      iTunes Store Link: https://apps.apple.com/us/app/plant-survivor-bang-bang/id6737405420?uo=4

       

       

      🔧 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Cydia, Sileo or Zebra).

       

      🚀 Hack Features

      - Silver Coins

      - HP [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DMG [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested

      - DEF [ Just Up Plants & Marge On Board Then Work ] Pvp Not Tested


      🍏 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/
        • Agree
        • Thanks
        • Like
      • 4 replies
    • Biters & Bullets v0.6.0 +9 Jailed Cheats [God Mode]
      Modded/Hacked App: Biters & Bullets By Frojo Apps AB
      Bundle ID: com.frojo.biters
      iTunes Store Link: https://apps.apple.com/us/app/biters-bullets/id6554008255?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 Currency/Keys
      - God Mode
      - OHK
      - Never Reload
      - Wipe Everything
      - End Game
      - Set Attack Speed
      - Set Critical Chance
      - Set Damage

       

      ⬇️ iOS Hack Download IPA Link


      • 0 replies
    • Biters & Bullets v0.6.0 +9 [God Mode]
      Modded/Hacked App: Biters & Bullets By Frojo Apps AB
      Bundle ID: com.frojo.biters
      iTunes Store Link: https://apps.apple.com/us/app/biters-bullets/id6554008255?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

      - Infinite Currency/Keys
      - God Mode
      - OHK
      - Never Reload
      - Wipe Everything
      - End Game
      - Set Attack Speed
      - Set Critical Chance
      - Set Damage

       

      ⬇️ iOS Hack Download Link


      • 0 replies
    • Modded/Hacked App: Stick Cricket Clash By Stick Sports Ltd
      Bundle ID: com.sticksports.stickcricketclash
      iTunes Store Link: https://apps.apple.com/us/app/stick-cricket-clash/id6444344271?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:
      - Currency Freeze
      - Score [ Win All Match ]
      - Ads Reward 


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Like
      • 6 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