Jump to content

19 posts in this topic

Recommended Posts

Posted

Example how I did mshook

 

 

 

#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];
}



int (*orig__ZN9Inventory3addEP12ItemInstance)(void *self, unsigned int i1);
int __ZN9Inventory3addEP12ItemInstance(void *self, unsigned int i1) {
if(GetPrefBool(@"kadd"))
{
return 64;
}
else
{
return orig__ZN9Inventory3addEP12ItemInstance(self,i1);
}
}

__attribute__((constructor)) void DylibMain() {
MSHookFunction(((void*)MSFindSymbol(NULL,"__ZN9Inventory3addEP12ItemInstance")),(void *)__ZN9Inventory3addEP12ItemInstance,(void**)&orig__ZN9Inventory3addEP12ItemInstance);
}
Posted

Example how I did mshook

 

 

 

#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];
}



int (*orig__ZN9Inventory3addEP12ItemInstance)(void *self, unsigned int i1);
int __ZN9Inventory3addEP12ItemInstance(void *self, unsigned int i1) {
if(GetPrefBool(@"kadd"))
{
return 64;
}
else
{
return orig__ZN9Inventory3addEP12ItemInstance(self,i1);
}
}

__attribute__((constructor)) void DylibMain() {
MSHookFunction(((void*)MSFindSymbol(NULL,"__ZN9Inventory3addEP12ItemInstance")),(void *)__ZN9Inventory3addEP12ItemInstance,(void**)&orig__ZN9Inventory3addEP12ItemInstance);
}

 

HEY I MISS U <3

Posted

Use %ctor if it's still not working

 

It still isn't working :(

 

How come it works on your device but not on mine :/

Posted

I don't know :/

:(

You should've stuck around more, maybe you could've helped me and evolved into a better hacker :p

Posted


#include <substrate.h>

 

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.goggwell.FruitNinja.plist"

 

inline bool GetPrefBool(NSString *key) {

return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

}

 

bool (*old_IsTimedGame)(void *self);

int (*old_WaveSpawnManager_SpawnBomb)(void *self);

int (*old_WaveManager_GetCriticalChance)(void *self);

int (*old_Components_Score_LifeLost)(void *self);

bool (*old_Components_Score_IsNewBest)(void *self);

int (*old_AIManager_Tournament_GetEntryFee)(void *self);

 

 

bool IsTimedGame(void *self) {

if(GetPrefBool(@"kTimed")) {

return FALSE;

} else {

return old_IsTimedGame(self);

}

}

 

int WaveSpawnManager_SpawnBomb(void *self) {

if(GetPrefBool(@"kBomb")) {

return 0;

} else {

return old_WaveSpawnManager_SpawnBomb(self);

}

}

 

int WaveManager_GetCriticalChance(void *self) {

if(GetPrefBool(@"kCrit")) {

return 100;

} else {

return old_WaveManager_GetCriticalChance(self);

}

}

 

int Components_Score_LifeLost(void *self) {

if(GetPrefBool(@"kLost")) {

return 0;

} else {

return old_Components_Score_LifeLost(self);

}

}

 

int Components_Score_IsNewBest(void *self) {

if(GetPrefBool(@"kBest")) {

return TRUE;

} else {

return old_Components_Score_IsNewBest(self);

}

}

 

int AIManager_Tournament_GetEntryFee(void *self) {

if(GetPrefBool(@"kFee")) {

return 0;

} else {

return old_AIManager_Tournament_GetEntryFee(self);

}

}

 

%ctor {

 

MSHookFunction((void*)MSFindSymbol(NULL,"__Z11IsTimedGamev"),(void*)IsTimedGame,(void**)&old_IsTimedGame);

MSHookFunction((void*)MSFindSymbol(NULL,"__ZN11WaveManager9SpawnBombEiP12SPAWNER_INFOi"),(void*)WaveSpawnManager_SpawnBomb,(void**)&old_WaveSpawnManager_SpawnBomb);

MSHookFunction((void*)MSFindSymbol(NULL,"__ZN11WaveManager17GetCriticalChanceEi"),(void*)WaveManager_GetCriticalChance,(void**)&old_WaveManager_GetCriticalChance);

MSHookFunction((void*)MSFindSymbol(NULL,"__ZN10Components5Score8LifeLostE8_Vector3IfEiP6Entity"),(void*)Components_Score_LifeLost,(void**)&old_Components_Score_LifeLost);

MSHookFunction((void*)MSFindSymbol(NULL,"__ZNK10Components5Score9IsNewBestEv"),(void*)Components_Score_IsNewBest,(void**)&old_Components_Score_IsNewBest);

MSHookFunction((void*)MSFindSymbol(NULL,"__ZN9AIManager10Tournament11GetEntryFeeERKN6Mortar11AsciiStringE"),(void*)AIManager_Tournament_GetEntryFee,(void**)&old_AIManager_Tournament_GetEntryFee);

 

}

Posted
#include <substrate.h>

#define PLIST_PATH @"/var/mobile/Library/Preferences/com.goggwell.FruitNinja.plist"

inline bool GetPrefBool(NSString *key) {
    return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

bool (*old_IsTimedGame)(void *self);
int (*old_WaveSpawnManager_SpawnBomb)(void *self);
int (*old_WaveManager_GetCriticalChance)(void *self);
int (*old_Components_Score_LifeLost)(void *self);
bool (*old_Components_Score_IsNewBest)(void *self);
int (*old_AIManager_Tournament_GetEntryFee)(void *self);


bool IsTimedGame(void *self) {
    if(GetPrefBool(@"kTimed")) {
        return FALSE;
    } else {
        return old_IsTimedGame(self);
    }
}

int WaveSpawnManager_SpawnBomb(void *self) {
    if(GetPrefBool(@"kBomb")) {
        return 0;
    } else {
        return old_WaveSpawnManager_SpawnBomb(self);
    }
}

int WaveManager_GetCriticalChance(void *self) {
    if(GetPrefBool(@"kCrit")) {
        return 100;
    } else {
        return old_WaveManager_GetCriticalChance(self);
    }
}

int Components_Score_LifeLost(void *self) {
    if(GetPrefBool(@"kLost")) {
        return 0;
    } else {
        return old_Components_Score_LifeLost(self);
    }
}

int Components_Score_IsNewBest(void *self) {
    if(GetPrefBool(@"kBest")) {
        return TRUE;
    } else {
        return old_Components_Score_IsNewBest(self);
    }
}

int AIManager_Tournament_GetEntryFee(void *self) {
    if(GetPrefBool(@"kFee")) {
        return 0;
    } else {
        return old_AIManager_Tournament_GetEntryFee(self);
    }
}

%ctor {

    MSHookFunction((void*)MSFindSymbol(NULL,"__Z11IsTimedGamev"),(void*)IsTimedGame,(void**)&old_IsTimedGame);
    MSHookFunction((void*)MSFindSymbol(NULL,"__ZN11WaveManager9SpawnBombEiP12SPAWNER_INFOi"),(void*)WaveSpawnManager_SpawnBomb,(void**)&old_WaveSpawnManager_SpawnBomb);
    MSHookFunction((void*)MSFindSymbol(NULL,"__ZN11WaveManager17GetCriticalChanceEi"),(void*)WaveManager_GetCriticalChance,(void**)&old_WaveManager_GetCriticalChance);
    MSHookFunction((void*)MSFindSymbol(NULL,"__ZN10Components5Score8LifeLostE8_Vector3IfEiP6Entity"),(void*)Components_Score_LifeLost,(void**)&old_Components_Score_LifeLost);
    MSHookFunction((void*)MSFindSymbol(NULL,"__ZNK10Components5Score9IsNewBestEv"),(void*)Components_Score_IsNewBest,(void**)&old_Components_Score_IsNewBest);
    MSHookFunction((void*)MSFindSymbol(NULL,"__ZN9AIManager10Tournament11GetEntryFeeERKN6Mortar11AsciiStringE"),(void*)AIManager_Tournament_GetEntryFee,(void**)&old_AIManager_Tournament_GetEntryFee);

}

Testing soon :D

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.4 +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
      • 46 replies
    • Dawn of Ages: Medieval Games v2.0.4 +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

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 26 replies
    • DC: Dark Legion™ v2.1.22 [+2 Cheats]
      Modded/Hacked App: DC: Dark Legion™ By FunPlus International AG
      Bundle ID: com.kingsgroup.dcdl
      App Store Link: https://apps.apple.com/us/app/dc-dark-legion/id6479020757?uo=4

       

      Important


      Doesn't work on PvP contents.

      There is a high chance of ban. Not responsible for any bans. Do not use on main account.

      1- Enable Activate Cheat

      2- Enable both multiplier

       

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      • 14 replies
    • DC: Dark Legion™  v2.1.22 [+2 Jailed Cheats]
      Modded/Hacked App: DC: Dark Legion™ By FunPlus International AG
      Bundle ID: com.kingsgroup.dcdl
      iTunes Store Link: https://apps.apple.com/us/app/dc-dark-legion/id6479020757?uo=4

      🤩 Hack Features
      - Damage Multiplier
      - Defense Multiplier
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 117 replies
    • Lands of Jail v1.0.13 [+1 Jailed Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)

        • Like
      • 11 replies
    • Lands of Jail v1.0.13 [+1 Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)
       
        • Agree
        • Thanks
        • Winner
      • 19 replies
    • Hammer & Steel: idle business v0.12 [+5 Jailed Cheats]
      Modded/Hacked App: Hammer & Steel: idle business By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: hammer.and.steel.business.game
      App Store Link: https://apps.apple.com/us/app/hammer-steel-idle-business/id6742078527?uo=4



      🤩 Hack Features

      - Free IAP
      - Add Gold
      - Add Ore (Use it after tutorial)
      - No Fatique 
      - No Satiety
      • 0 replies
    • Hammer & Steel: idle business v0.12 [+5 Cheats]
      Modded/Hacked App: Hammer & Steel: idle business By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: hammer.and.steel.business.game
      App Store Link: https://apps.apple.com/us/app/hammer-steel-idle-business/id6742078527?uo=4



      🤩 Hack Features

      - Free IAP
      - Add Gold
      - Add Ore (Use it after tutorial)
      - No Fatique 
      - No Satiety
      • 0 replies
    • Waldur: Monster Hunt v1.8 [+2 Jailed Cheats]
      Modded/Hacked App: Waldur: Medieval Defense Game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: waldur.tds.tactical.defense.war.strategy
      App Store Link: https://apps.apple.com/us/app/waldur-medieval-defense-game/id6739003797?uo=4

       

      🤩 Hack Features

      - Never Die
      - Add Currency


      • 3 replies
    • Waldur: Monster Hunt v1.8 [+2 Cheats]
      Modded/Hacked App: Waldur: Medieval Defense Game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: waldur.tds.tactical.defense.war.strategy
      App Store Link: https://apps.apple.com/us/app/waldur-medieval-defense-game/id6739003797?uo=4

       

      🤩 Hack Features

      - Never Die
      - Add Currency

        • Thanks
      • 3 replies
    • Go Go Werewolf! v1.3.4 [+3 Jailed Cheats]
      Modded/Hacked App: Go Go Werewolf! By Dejaime Antonio de Oliveira Neto
      Bundle ID: productions.artcode.ggw
      iTunes Store Link: https://apps.apple.com/us/app/go-go-werewolf/id6739493341?uo=4



      🤩 Hack Features

      - Never Die
      - Free Item Upgrade
      - Unlimited Coins (Enable and Finish Stage)
        • Thanks
      • 10 replies
    • Go Go Werewolf! v1.3.4 [+3 Cheats]
      Modded/Hacked App: Go Go Werewolf! By Dejaime Antonio de Oliveira Neto
      Bundle ID: productions.artcode.ggw
      iTunes Store Link: https://apps.apple.com/us/app/go-go-werewolf/id6739493341?uo=4


      🤩 Hack Features

      - Never Die
      - Free Item Upgrade
      - Unlimited Coins (Enable and Finish Stage)
      • 5 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