Jump to content

Struggles with MSHook New way


Go to solution Solved by Rook,

43 posts in this topic

Recommended Posts

Posted

oh yeah, it's actually the same almost

_bikeInfo_isAllWheel

_bikeInfo_isExtraChance

_bikeInfo_isGhost

_bikeInfo_isHog

_bikeInfo_isReverse

_bikeInfo_isReverse

 

 

Some example code:

 

 

float (*crosshairOld)(void *self);
 
%ctor{
if(GetPrefBool(@"key")) {
MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0x231DB8 + 1),(void*)crosshair,(void**)&crosshairOld);
//but you would replace what's above with your MSHook since you are hooking symbols and not offsets
}
}
 
  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

 

Some example code:

float (*crosshairOld)(void *self);
 
%ctor{
if(GetPrefBool(@"key")) {
MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0x231DB8 + 1),(void*)crosshair,(void**)&crosshairOld);
//but you would replace what's above with your MSHook since you are hooking symbols and not offsets
}
}
 

uhmm, I don't understand it xD, can you make an example with one of the functions I wanna use?

Posted

uhmm, I don't understand it xD, can you make an example with one of the functions I wanna use?

 

if you paste your tweak.xm here :p

Posted

if you paste your tweak.xm here :p

#include <substrate.h>

bool isGhost()
{
return true;
}

bool isHog()
{
return true;
}

bool isAllWheel()
{
return true;
}

bool isReverse()
{
return true;
}

bool isExtraChance()
{
return true;
}

bool isUnbreakable()
{
return true;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}
Posted

 

#include <substrate.h>

bool isGhost()
{
return true;
}

bool isHog()
{
return true;
}

bool isAllWheel()
{
return true;
}

bool isReverse()
{
return true;
}

bool isExtraChance()
{
return true;
}

bool isUnbreakable()
{
return true;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}

shmoo, on 21 Feb 2016 - 9:31 PM, said:
if you paste your tweak.xm here 
#include <substrate.h>

bool isGhost()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isHog()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isAllWheel()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isReverse()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isExtraChance()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isUnbreakable()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}

Have you made a patcher before?

Posted
shmoo, on 21 Feb 2016 - 9:31 PM, said:
if you paste your tweak.xm here 
#include <substrate.h>

bool isGhost()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isHog()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isAllWheel()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isReverse()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isExtraChance()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isUnbreakable()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}
Have you made a patcher before?

 

the code you just did, I've tried before. I'm getting a error: %orig found outside of hook or subs class.

 

and yes, I did. Why ?

Posted

the code you just did, I've tried before. I'm getting a error: %orig found outside of hook or subs class.

 

and yes, I did. Why ?

Try http://armconverter.com/ to make an mshook patcher

 

I don't usually make mshook patchers that was a guess :p

Posted

The online generator works fine. You're just probably doing it all wrong.

 

Always check your keys, your plist name, your bundle ID and the features itself.

Since I do it wrong, can you help with that online MSHook Patcher?

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

    • Hello Kitty My Dream Store v1.1.4 +5 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       

       
       

      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
      • 23 replies
    • Hello Kitty My Dream Store v1.1.4 +5 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hello Kitty My Dream Store By ACTGames Co., Ltd.
      Bundle ID: com.actgames.HelloKittyMDS
      iTunes Store Link: https://apps.apple.com/us/app/hello-kitty-my-dream-store/id6736896540?uo=4

       


      🤩 Hack Features

      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Diamonds
      - Unlimited Gacha Coins
      - Unlimited Stars
        • Like
      • 20 replies
    • Zombastic: Time to Survive v1.11.0 [ +1+++ Jailed ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 42 replies
    • Zombastic: Time to Survive v1.11.0 [ +1+++ Cheats ] Currency Max
      Modded/Hacked App: Zombastic: Time to Survive By Playmotional Limited
      Bundle ID: com.playmotional.survival
      iTunes Store Link: https://apps.apple.com/us/app/zombastic-time-to-survive/id6475173073?uo=4


      Hack Features:
      - Currency & Resources Unlimited [ Disable When Playing ] 





      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/
      • 45 replies
    • Dream Resort - Match 3 Games v1.5.3 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?uo=4
       

      🚀 Hack Features

      - Auto ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 18 replies
    • Dream Resort - Match 3 Games v1.5.3 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Dream Resort - Match 3 Games By F.O.G LIMITED
      Bundle ID: com.dream.resort.candy.match.mania.ios
      iTunes Store Link: https://apps.apple.com/us/app/dream-resort-match-3-games/id6737011572?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 ADS Disable

      - Coins

      - Diamonds

      - Lives Cost

      - Moves Freeze

      - Booster [ Buy Get Unlimited After use Then work ]

      - Auto win 


      🍏 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/
      • 19 replies
    • Chum Chum Blast v1.13.757 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Chum Chum Blast By Ritz Deli Games, Inc.
      Bundle ID: com.ritzdeligames.eraserblast
      iTunes Store Link: https://apps.apple.com/us/app/chum-chum-blast/id1497403262?uo=4


      🤩 Hack Features

      - Coins [ Win Match After Disable ]

      - Stars [ Win Match After Disable ]

      - Dice [ Win Match After Disable ]

      - Moves Inf

      - Lives Inf

      - ADS Ticket

      - Auto Win
      • 11 replies
    • Chum Chum Blast v1.13.757 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Chum Chum Blast By Ritz Deli Games, Inc.
      Bundle ID: com.ritzdeligames.eraserblast
      iTunes Store Link: https://apps.apple.com/us/app/chum-chum-blast/id1497403262?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match After Disable ]

      - Stars [ Win Match After Disable ]

      - Dice [ Win Match After Disable ]

      - Moves Inf

      - Lives Inf

      - ADS Ticket

      - Auto Win
      • 10 replies
    • Squad Alpha - Action Shooting v1.7.28 [ +20 Jailed ] Currency Max
      Modded/Hacked App: Squad Alpha - Action Shooting By SayGames LTD
      Bundle ID: com.game.missioncrit
      iTunes Store Link: https://apps.apple.com/us/app/squad-alpha-action-shooting/id1571487050?uo=4


      Hack Features:

      - ADS Free 

      - ViP Member [ Active ] 

      - ViP PoPup Disable 

      - Gems Unlimited [ Daily Offer ]

      - Elite Pass [ Active ]

      - Elite Pass+ [ Active ]

      - Elite Pass [ Claim Unlimited ]

      - Elite Pass+ [ Claim Unlimited ]

      - Free Pass [ Claim Unlimited ]

      - Elite Pass LvL Skip [ Price -9999 ] Increased Gems

      - Loot Box [ Price -9999 ] Increased Gems

      - Inventory Expand [ Price -9999 ] Increased Gems

      - Inventory Space [ First Open Inventory Then Enable Cheat Next + ADD Then Buy Get Max Space ]

      - Health Max

      - DMG Unlimited

      - Speed Movement

      - Ammo Max

      - No Reload

      - Enemy Freeze

      - Wall Hack [ Move Anywhere ]

      Note:- Don"t Abuse The Hack Maybe Banned I'M Not Responsible 

       
      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/
      • 28 replies
    • Squad Alpha - Action Shooting v1.7.28 [ +20 Cheats ] Currency Max
      Modded/Hacked App: Squad Alpha - Action Shooting By SayGames LTD
      Bundle ID: com.game.missioncrit
      iTunes Store Link: https://apps.apple.com/us/app/squad-alpha-action-shooting/id1571487050?uo=4

      Hack Features:
      - ADS Free 

      - ViP Member [ Active ] 

      - ViP PoPup Disable 

      - Gems Unlimited [ Daily Offer ]

      - Elite Pass [ Active ]

      - Elite Pass+ [ Active ]

      - Elite Pass [ Claim Unlimited ]

      - Elite Pass+ [ Claim Unlimited ]

      - Free Pass [ Claim Unlimited ]

      - Elite Pass LvL Skip [ Price -9999 ] Increased Gems

      - Loot Box [ Price -9999 ] Increased Gems

      - Inventory Expand [ Price -9999 ] Increased Gems

      - Inventory Space [ First Open Inventory Then Enable Cheat Next + ADD Then Buy Get Max Space ]

      - Health Max

      - DMG Unlimited

      - Speed Movement

      - Ammo Max

      - No Reload

      - Enemy Freeze

      - Wall Hack [ Move Anywhere ]

      Note:- Don"t Abuse The Hack Maybe Banned I'M Not Responsible 


      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/
      • 31 replies
    • Arena Heroes: Online RPG v1.12.30 [ +2 Cheats ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4
       

      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
      • 24 replies
    • Arena Heroes: Online RPG v1.12.30 [ +2 Jailed ] Skill CD
      Modded/Hacked App: Arena Heroes: Online RPG By INFUSION GAMES OU
      Bundle ID: com.infusiongames.fighting.rpg.adventure.multiplayer.wars.pvp.battles.arena.heroes
      iTunes Store Link: https://apps.apple.com/us/app/arena-heroes-online-rpg/id6448993010?uo=4


      🤩 Hack Features

      - DMG [ When Enemy Turn Disable ]
      - Skill CD



      DMG Not Tested With Dungeon & Arena 
      • 20 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