Jump to content

I need help on MsFunction


Go to solution Solved by Rook,

8 posts in this topic

Recommended Posts

Posted (edited)

I went to use my sister computer and found this function I search for craft and recipe and this what I found

 

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

bool (*old__ZN6PlayerCan14CraftRecipeER6Recipe) ();

bool $__ZN6Player14CanCraftRecipeER6Recipe()
{
return true;
}

bool (*old__ZN6Player7HasItemEiv) ();

bool $__ZN6Player7HasItemEiv() 
{
return true;
}

bool (*old__ZN6Player16DiscoveredRecipeER6Recipe) ();

bool $__ZN6Player16DiscoveredRecipeER6Recipe() 
{
return true;
}

bool (*old__ZN6Player20FoundCraftingStationEi) ();

bool $__ZN6Player20FoundCraftingStationEi()
{
return true;
}

bool (*old__ZN6Player21IsNearCraftingStationER6Recipe) ();

bool $__ZN6Player21IsNearCraftingStationER6Recipe()
{
return true;
}


__attribute__((constructor)) void DylibMain()
{
MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player14CanCraftRecipeER6Recipe")),(bool*)$__ZN6Player14CanCraftRecipeER6Recipe,(bool**)&old__ZN6Player14CanCraftRecipeER6Recipe);




MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player7HasItemEiv")),(bool*)$__ZN6Player7HasItemEiv,(bool**)&old__ZN6Player7HasItemEiv);



MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player16DiscoveredRecipeER6Recipe")),(bool*)$__ZN6Player16DiscoveredRecipeER6Recipe,(bool**)&old__ZN6Player16DiscoveredRecipeER6Recipe);


MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player20FoundCraftingStationEi")),(bool*)$__ZN6Player20FoundCraftingStationEi,(bool**)&old_ZN6Player20FoundCraftingStationEi);


MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player21IsNearCraftingStationER6Recipe")),(bool*)$__ZN6Player21IsNearCraftingStationER6Recipe(bool**)&old__ZN6Player21IsNearCraftingStationER6Recipe);
}

%hook AppDelegate
- (void)applicationDidBecomeActive:(id)non {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Credits:" message:@"Hack By Kenny808" delegate:nil cancelButtonTitle:@"Thank You!" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

%hook FlurryUtil
+ (BOOL)deviceIsJailbroken {
return false;
}
%end

%hook EveryplayCommon
+ (BOOL)isJailbroken {
return false;
}
%end
Iam still getting errors this game is terrarai and feature is freecraft I know this hack exist but I was just practicing

image.jpg

Updated by kenny808
  • Solution
Posted

I don't know if it works or not though... It just compiled without any errors. :MeGusta:
 

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

bool (*old__ZN6PlayerCanCraftRecipeER6Recipe) ();

bool $__ZN6PlayerCanCraftRecipeER6Recipe()
{
return true;
}

bool (*old__ZN6Player7HasItemEiv) ();

bool $__ZN6Player7HasItemEiv()
{
return true;
}

bool (*old__ZN6Player16DiscoveredRecipeER6Recipe) ();

bool $__ZN6Player16DiscoveredRecipeER6Recipe()
{
return true;
}

bool (*old__ZN6Player20FoundCraftingStationEi) ();

bool $__ZN6Player20FoundCraftingStationEi()
{
return true;
}

bool (*old__ZN6Player21IsNearCraftingStationER6Recipe) ();

bool $__ZN6Player21IsNearCraftingStationER6Recipe()
{
return true;
}


__attribute__((constructor)) void DylibMain()
{
MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6PlayerCanCraftRecipeER6Recipe")),(bool*)$__ZN6PlayerCanCraftRecipeER6Recipe,(bool**)&old__ZN6PlayerCanCraftRecipeER6Recipe);


MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player7HasItemEiv")),(bool*)$__ZN6Player7HasItemEiv,(bool**)&old__ZN6Player7HasItemEiv);


MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player16DiscoveredRecipeER6Recipe")),(bool*)$__ZN6Player16DiscoveredRecipeER6Recipe,(bool**)&old__ZN6Player16DiscoveredRecipeER6Recipe);

MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player20FoundCraftingStationEi")),(bool*)$__ZN6Player20FoundCraftingStationEi,(bool**)&old__ZN6Player20FoundCraftingStationEi);

MSHookFunction(((bool*)MSFindSymbol(NULL, "__ZN6Player21IsNearCraftingStationER6Recipe")),(bool*)$__ZN6Player21IsNearCraftingStationER6Recipe,(bool**)&old__ZN6Player21IsNearCraftingStationER6Recipe);
}

%hook AppDelegate
- (void)applicationDidBecomeActive:(id)non {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Credits:" message:@"Hack By Kenny808" delegate:nil cancelButtonTitle:@"Thank You!" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

%hook FlurryUtil
+ (BOOL)deviceIsJailbroken {
return false;
}
%end

%hook EveryplayCommon
+ (BOOL)isJailbroken {
return false;
}
%end

Make sure you have added

projectname_FRAMEWORKS = UIKit

in the Makefile.

Posted

Yeah it seems correct. Works for me too :p

Does it work on the game though?  :shifty:

Posted

Yea I compile it thanks i just fix some mistakes xD...

And the hack is working :)

Awesome! :D

Posted (edited)

Going to post on sinful since the hack exist here xD but thanks @@DiDA

 

/topic locked problem solve

Updated by kenny808
Posted

You're welcome @ :D

 

If you have any more questions, make a new support topic. :)

Guest
This topic is now closed to further replies.
  • Our picks

    • Legend TD: Epic Tower Defense v1.2.7 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Legend TD: Epic Tower Defense By Tu Do Anh
      Bundle ID: com.epic.towerdefense.td.legend
      App Store Link: https://apps.apple.com/us/app/legend-td-epic-tower-defense/id6753664870?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Stars
      - Unlimited Battle Items
      - Heroes Unlocked
      - Gun Unlocked
      - Unlimited Skill Point
      - Premium Pass Active
      - Premium Pass / Claim Unlimited
      - Free Pass / Claim Unlimited
      - Battle Cash / Sell Tower 
        • Agree
        • Winner
        • Like
      • 16 replies
    • Legend TD: Epic Tower Defense v1.2.7 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Legend TD: Epic Tower Defense By Tu Do Anh
      Bundle ID: com.epic.towerdefense.td.legend
      App Store Link: https://apps.apple.com/us/app/legend-td-epic-tower-defense/id6753664870?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gold
      - Unlimited Energy
      - Unlimited Stars
      - Unlimited Battle Items
      - Heroes Unlocked
      - Gun Unlocked
      - Unlimited Skill Point
      - Premium Pass Active
      - Premium Pass / Claim Unlimited
      - Free Pass / Claim Unlimited
      - Battle Cash / Sell Tower 
        • Agree
        • Haha
        • Winner
        • Like
      • 15 replies
    • Merge Beach : Gossip & Mystery v0.2.9 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Merge Beach : Gossip & Mystery By 1GRAM
      Bundle ID: com.ongram.merge.beach.gossip.mystery
      App Store Link: https://apps.apple.com/us/app/merge-beach-gossip-mystery/id6746242808?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      • 4 replies
    • Merge Beach : Gossip & Mystery v0.2.9 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Merge Beach : Gossip & Mystery By 1GRAM
      Bundle ID: com.ongram.merge.beach.gossip.mystery
      App Store Link: https://apps.apple.com/us/app/merge-beach-gossip-mystery/id6746242808?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coin
      - Unlimited Energy
        • Agree
        • Thanks
        • Like
      • 5 replies
    • Jewel Manor - Home Design Game v3.8.1 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Jewel Manor - Home Design By Hangzhou Mengku Technology Co., Ltd.
      Bundle ID: com.bigcool.puzzle.jewel
      App Store Link: https://apps.apple.com/us/app/jewel-manor-home-design/id1602231440?uo=4

       
      🤩 Hack Features

      - Coins [ Linked With Moves Disable After Hack ] Don't Use [ Moves Freeze ] After Hack [ Moves Freeze ] Use
      - Moves Freeze
      - Booster Freeze
        • Like
      • 7 replies
    • Jewel Manor - Home Design Game v3.8.1 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Jewel Manor - Home Design By Hangzhou Mengku Technology Co., Ltd.
      Bundle ID: com.bigcool.puzzle.jewel
      App Store Link: https://apps.apple.com/us/app/jewel-manor-home-design/id1602231440?uo=4


      🤩 Hack Features

      - Coins [ Linked With Moves Disable After Hack ] Don't Use [ Moves Freeze ] After Hack [ Moves Freeze ] Use
      - Moves Freeze
      - Booster Freeze
        • Like
      • 9 replies
    • Portal Survivor v1.0.0 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Portal Survivor By ESC Games Yazilim Anonim Sirketi
      Bundle ID: com.escape.portalsurvivor
      App Store Link: https://apps.apple.com/ph/app/portal-survivor/id6754314383?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Energy
      - Unlimited HP
        • Informative
        • Like
      • 3 replies
    • Portal Survivor v1.0.0 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Portal Survivor By ESC Games Yazilim Anonim Sirketi
      Bundle ID: com.escape.portalsurvivor
      App Store Link: https://apps.apple.com/ph/app/portal-survivor/id6754314383?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Energy
      - Unlimited HP
        • Informative
        • Like
      • 6 replies
    • Dice Lords v1.2.6 [ +5 Cheats ] Currency Max
      Modded/Hacked App: Dice Lords By Voodoo
      Bundle ID: com.oxvgames.dicelords
      App Store Link: https://apps.apple.com/us/app/dice-lords/id6743435206?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems Green
      - Unlimited Gems Red
      - Unlimited Coins
      - DMG / Roll Dice
        • Like
      • 10 replies
    • Dice Lords v1.2.6 [ +5 Jailed ] Currency Max
      Modded/Hacked App: Dice Lords By Voodoo
      Bundle ID: com.oxvgames.dicelords
      App Store Link: https://apps.apple.com/us/app/dice-lords/id6743435206?uo=4

      🤩 Hack Features

      - ADS NO / Rewards Free
      - Unlimited Gems Green
      - Unlimited Gems Red
      - Unlimited Coins
      - DMG / Roll Dice
        • Like
      • 8 replies
    • Legend of Survivors V1.3.6 [ +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
        • Haha
        • Thanks
        • Winner
        • Like
      • 76 replies
    • Legend of Survivors V1.3.6 [ +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
      • 147 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