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

    • Goblin Miner: Idle Merger v3.7.1 [ +5 Cheats ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
      • 0 replies
    • Goblin Miner: Idle Merger v3.7.1 [ +5 Jailed ] Coins Unlimited
      Modded/Hacked App: Goblin Miner: Idle Merger By ProGamesLab LTD
      Bundle ID: com.goblins.idle.merge.game
      App Store Link: https://apps.apple.com/us/app/goblin-miner-idle-merger/id6751527945?uo=4

      🤩 Hack Features

      - Unlimited Coins / Mine Upgrade
      - Unlimited Goblin Drop / No Limite
      - Goblin LvL Higher / Easy To Skip Time Mine / First Drop Goblin Then Chose Higher LvL
      - Unlimited Magic Dust
      - Ruby Pass
      • 0 replies
    • Gear Truck! v1.0.23 [+3 Jailed Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
        • Winner
        • Like
      • 5 replies
    • Gear Truck! v1.0.23 [+3 Cheats]
      Modded/Hacked App: Gear Truck! By treeplla Inc.
      Bundle ID: com.tree.hybrid.geartank
      App Store Link: https://apps.apple.com/us/app/gear-truck/id6747216965?uo=4



      🤩 Hack Features

      - Never Die
      - High Wheel Speed Gain
      - One Hit Kill
       
        • Haha
        • Thanks
        • Winner
        • Like
      • 5 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4


      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 46 replies
    • Soul Huntress: Dungeon Crawler v1.1.4 [+3 Cheats]
      Modded/Hacked App: Soul Huntress: Dungeon Crawler By Panthera Joint Stock Company
      Bundle ID: com.pantheraplay.soulhuntress
      App Store Link: https://apps.apple.com/ph/app/soul-huntress-dungeon-crawler/id6743422594?uo=4



      🤩 Hack Features

      - Never Die
      - Unlimited Currency (Always Will Increase Spend)
      - Always Can Use Items (Even when has cooldown)
        • Agree
        • Thanks
        • Winner
        • Like
      • 47 replies
    • Cannon Heroes X v1.2.27 [+2 Jailed Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
        • Winner
        • Like
      • 10 replies
    • Cannon Heroes X v1.2.27 [+2 Cheats]
      Modded/Hacked App: Cannon Heroes X By Zego Global Pte Ltd
      Bundle ID: com.ig.cannon.heroes
      App Store Link: https://apps.apple.com/us/app/cannon-heroes-x/id6744356657?uo=4



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Debug Menu (Enable once then restart game. Enable again you'll see debug menu)
       
        • Winner
        • Like
      • 7 replies
    • Slay Quest v1.3.13 [+3 Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
        • Agree
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Slay Quest v1.3.13 [+3 Jailed Cheats]
      Modded/Hacked App: Slay Quest By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.slayquest
      App Store Link: https://apps.apple.com/us/app/slay-quest/id6670221918?uo=4

       

      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
        • Like
      • 6 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
        • Agree
        • Thanks
        • Winner
        • Like
      • 23 replies
    • Endless Wander - Roguelike RPG v3.0.4 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
        • Agree
        • Winner
        • Like
      • 17 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