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

    • Alien Survivor: Survival Arena v1.38.1 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4
       

      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 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/
        • Informative
        • Agree
        • Winner
        • Like
      • 15 replies
    • Alien Survivor: Survival Arena v1.38.1 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Alien Survivor: Survival Arena By IMPONILOX LIMITED
      Bundle ID: world.playme.x
      iTunes Store Link: https://apps.apple.com/us/app/alien-survivor-survival-arena/id1669761844?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems [ Achievements Rewards Only One Get ]

      - Energy [ Just Buy ]

      - HP [ Just Equip & Unequip ]

      - ATK [ Just Equip & Unequip ]

      - DEF [ Just Equip & Unequip ]

      - Skill CD [ First Get Then Use ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Haha
        • Winner
        • Like
      • 26 replies
    • Legend of Survivors V1.2.8 [ +17 Jailed ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]


      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/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 48 replies
    • Legend of Survivors V1.2.8 [ +17 Cheats ] Currency Max
      Modded/Hacked App: Legend of Survivors By ABI GLOBAL LTD.
      Bundle ID: com.abi.legendofsurvivors
      iTunes Store Link: https://apps.apple.com/us/app/legend-of-survivors/id6489580730?uo=4


      Hack Features:
      - IAP Free [ Buy Anything - Gems Gold Ads Premium Packs ]

      - NO ADS

      - Gems 

      - Gold

      - Energy 

      - Material

      - Health Max [ Equip & Upgrade ]

      - Damage [ Equip & Upgrade ]

      - Skill Cooldown

      - EXP + Level [ Patrol Reward ]

      - Patrol Reward [ Claim Unlimited ]

      - Growth Pack Unlock

      - Growth Pack [ Claim Unlimited ]

      - Monthly card Pack Unlock

      - Monthly card Pack [ Claim Unlimited ]
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 132 replies
    • Kitchen Masters v15.0.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4


      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Agree
        • Thanks
        • Like
      • 6 replies
    • Kitchen Masters v15.0.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Kitchen Masters By Bigger Oyun Yazilim ve Pazarlama Anonim Sirketi
      Bundle ID: com.bigger.kitchenmasters
      iTunes Store Link: https://apps.apple.com/ph/app/kitchen-masters/id6474870266?uo=4
       

      🤩 Hack Features

      - Coins

      - Cash

      - Lives

      - Tile Cost 0
        • Haha
        • Like
      • 10 replies
    • Score Masters v2.2 [ +7 Jailed ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Informative
        • Like
      • 5 replies
    • Score Masters v2.2 [ +7 Cheats ] Always Win
      Modded/Hacked App: Score Masters By SKYLOFT YAZILIM BILISIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.bh.hypergoal
      iTunes Store Link: https://apps.apple.com/us/app/score-masters/id6473402760?uo=4


      🚀 Hack Features

      - Auto ADS Disable

      - Gems [ Mission Rewards ]

      - Coins [ Mission Rewards ]

      - Player Score 20 Max

      - Always Win Player

      - AI Score 0

      - AI Miss
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Adventure Bay - Farm Games v1.42.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
        • Thanks
        • Like
      • 19 replies
    • Adventure Bay - Farm Games v1.42.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
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 25 replies
    • Disney Solitaire v1.3.0 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 15 replies
    • Disney Solitaire v1.3.0 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 21 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