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

    • Merge & Blast: Dream Island v2.38.0 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4


      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 29 replies
    • Merge & Blast: Dream Island v2.38.0 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Merge & Blast: Dream Island By Dreamo, Inc.
      Bundle ID: com.dreamo.woodyblast
      iTunes Store Link: https://apps.apple.com/us/app/merge-blast-dream-island/id1668748189?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Coin + Moves [ Disable After Get ]




      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 38 replies
    • Dream Resort - Match 3 Games v1.8.9 [ +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/
      • 41 replies
    • Dream Resort - Match 3 Games v1.8.9 [ +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/
      • 38 replies
    • Adventure Bay - Farm Games v1.58.15 [ +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
      • 54 replies
    • Adventure Bay - Farm Games v1.58.15 [ +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
      • 67 replies
    • Basketball Star Rising v1.6.0 [ +2 Cheats ] Gems Max
      Modded/Hacked App: Basketball Star Rising By 军 赵
      Bundle ID: com.casual.basketball
      App Store Link: https://apps.apple.com/us/app/basketball-star-rising/id1562071554?uo=4
       

      🤩 Hack Features

      - ADS NO
      - Gems
      • 11 replies
    • Basketball Star Rising v1.6.0 [ +2 Jailed ] Gems Max
      Modded/Hacked App: Basketball Star Rising By 军 赵
      Bundle ID: com.casual.basketball
      App Store Link: https://apps.apple.com/us/app/basketball-star-rising/id1562071554?uo=4
       

      🤩 Hack Features

      - ADS NO
      - Gems
      • 25 replies
    • Soccer Dynasty: Club Manager v1.0.51 [ +15 Cheats ] Currency Max
      Modded/Hacked App: Soccer Dynasty: Club Manager By KONG SOFTWARE JOINT STOCK COMPANY
      Bundle ID: com.kongsoftware.kickpfm
      App Store Link: https://apps.apple.com/us/app/soccer-dynasty-club-manager/id6465972774?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gold

      - Cash

      - Energy

      - Standard Scout

      - Silver Scout

      - Gold Scout

      - Platinum Scout

      - Tactic Book

      - Chemistry Point

      - FW Exp

      - MF Exp

      - DF Exp

      - GK Exp

      - Ticket [ Buy With Gold ]

      Note:- Don"t Abuse Hack Incase Banned
      • 17 replies
    • Soccer Dynasty: Club Manager v1.0.51 [ +15 Jailed ] Currency Max
      Modded/Hacked App: Soccer Dynasty: Club Manager By KONG SOFTWARE JOINT STOCK COMPANY
      Bundle ID: com.kongsoftware.kickpfm
      App Store Link: https://apps.apple.com/us/app/soccer-dynasty-club-manager/id6465972774?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gold

      - Cash

      - Energy

      - Standard Scout

      - Silver Scout

      - Gold Scout

      - Platinum Scout

      - Tactic Book

      - Chemistry Point

      - FW Exp

      - MF Exp

      - DF Exp

      - GK Exp

      - Ticket [ Buy With Gold ]

      Note:- Don"t Abuse Hack Incase Banned
      • 28 replies
    • Survivor Kingdoms v3.51 [ +11 Jailed ] Easy Win
      Modded/Hacked App: Survivor Kingdoms By Gamee Joint Stock Company
      Bundle ID: com.gamee.kingdoms.survivor.io
      iTunes Store Link: https://apps.apple.com/us/app/survivor-kingdoms/id6444824577?uo=4

       

      🚀 Hack Features

      - IAP Free [ Buy Anything ]

      - Health

      - Damage

      - Skill CD Slow

      - Skill CD Fast [ Maybe Game Slow ]

      - Skill Size Big

      - Shooting Speed Fast

      - Movement Speed

      - Auto Revive Unlimited [ Never Die ]

      - Ultimate Power CD

      - Avatar & Frame 


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 89 replies
    • Survivor Kingdoms v3.51 [ +11 Cheats ] Easy Win
      Modded/Hacked App: Survivor Kingdoms By Gamee Joint Stock Company
      Bundle ID: com.gamee.kingdoms.survivor.io
      iTunes Store Link: https://apps.apple.com/us/app/survivor-kingdoms/id6444824577?uo=4


      Hack Features:
      - IAP Free [ Buy Anything ]

      - Health

      - Damage

      - Skill CD Slow

      - Skill CD Fast [ Maybe Game Slow ]

      - Skill Size Big

      - Shooting Speed Fast

      - Movement Speed

      - Auto Revive Unlimited [ Never Die ]

      - Ultimate Power CD

      - Avatar & Frame 


      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/
      • 67 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