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

    • Gravewalker: Roguelike RPG v1.3 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Gravewalker: Roguelike RPG By Space Node Co., Ltd.
      Bundle ID: com.ckmin.gravewalker
      App Store Link: https://apps.apple.com/us/app/gravewalker-roguelike-rpg/id6789180274?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      Note:- Breakable Cheat / When Use Then Game Crash But Works / Disable After
      • 0 replies
    • Gravewalker: Roguelike RPG v1.3 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Gravewalker: Roguelike RPG By Space Node Co., Ltd.
      Bundle ID: com.ckmin.gravewalker
      App Store Link: https://apps.apple.com/us/app/gravewalker-roguelike-rpg/id6789180274?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      Note:- Breakable Cheat / When Use Then Game Crash But Works / Disable After
      • 1 reply
    • Doom Convoy v1.0 [ +7 Jailed ] Currency Max
      Modded/Hacked App: Doom Convoy By FUBU GAMES OYUN YAZILIM VE BILGI TEKNOLOJILERI TICARET LIMITED SIRKETI
      Bundle ID: com.fubugames.doomdefender
      App Store Link: https://apps.apple.com/us/app/doom-convoy/id6759977040?uo=4

      🤩 Hack Features

      - Coins Max
      - Mini Gun / Ammo Freeze
      - Mini Gun / Ammo Max Use
      - Rocket / Ammo Freeze
      - Rocket / Ammo Max Use
      - Flame Gun / Ammo Freeze
      - Flame Gun / Ammo Max Use
      • 1 reply
    • Doom Convoy v1.0 [ +7 Cheats ] Currency Max
      Modded/Hacked App: Doom Convoy By FUBU GAMES OYUN YAZILIM VE BILGI TEKNOLOJILERI TICARET LIMITED SIRKETI
      Bundle ID: com.fubugames.doomdefender
      App Store Link: https://apps.apple.com/us/app/doom-convoy/id6759977040?uo=4

      🤩 Hack Features

      - Coins Max
      - Mini Gun / Ammo Freeze
      - Mini Gun / Ammo Max Use
      - Rocket / Ammo Freeze
      - Rocket / Ammo Max Use
      - Flame Gun / Ammo Freeze
      - Flame Gun / Ammo Max Use
      • 1 reply
    • Animal Hunt: PvP Clash v1.0 [ +1 Jailed ] Enough Currency
      Modded/Hacked App: Animal Hunt: PvP Clash By Creative Distrix
      Bundle ID: com.cd.sniper.hunting.shooter
      App Store Link: https://apps.apple.com/us/app/animal-hunt-pvp-clash/id6761612123?uo=4

      🤩 Hack Features

      - Enough Currency
      • 2 replies
    • Animal Hunt: PvP Clash v1.0 [ +1 Cheats ] Enough Currency
      Modded/Hacked App: Animal Hunt: PvP Clash By Creative Distrix
      Bundle ID: com.cd.sniper.hunting.shooter
      App Store Link: https://apps.apple.com/us/app/animal-hunt-pvp-clash/id6761612123?uo=4

      🤩 Hack Features

      - Enough Currency
      • 1 reply
    • Animal Hunting Sniper PvP Game v3.6 [ +1 APK MOD ] Enough Currency
      Mod APK Game Name: Animal Hunting Sniper PvP Game
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.cd.sniper.shooter.animal.hunting&hl=en

      🤩 Hack Features

      - Enough Currency
      • 0 replies
    • Too Many Zombies v1.1.11 [ +2 APK MOD ] ATK Max
      Mod APK Game Name: Too Many Zombies
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.boomcat.zombiedefense.aos.global

      🤩 Hack Features

      - Immortal
      - ATK Max
      • 1 reply
    • Dream Master v1.0.5 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Dream Master! By 远翔 张
      Bundle ID: com.dream.master
      App Store Link: https://apps.apple.com/us/app/dream-master/id6749934992?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Spin
      - Build Cost
      - Star Enough
      • 2 replies
    • Dream Master v1.0.5 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Dream Master! By 远翔 张
      Bundle ID: com.dream.master
      App Store Link: https://apps.apple.com/us/app/dream-master/id6749934992?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Spin
      - Build Cost
      - Star Enough
      • 0 replies
    • Window Meow v1.0.7161 [ +24 APK MOD ] Currency Max
      Mod APK Game Name: Window Meow
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.skywalkgames.wildcat&hl=en

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Yarn
      - Unlimited Sunlight
      - Unlimited Food +11
      - Unlimited Water +5
      - Unlimited Warm Milk
      - Unlimited Music
      - Unlimited Rabbit Fur
      - Unlimited Fur Glove
      - Unlimited Tri Brush
      - Unlimited Stripe Ball
      - Unlimited Mouse Wand
      - Coins Freeze
      - Yarn Freeze
      - Sunlight Freeze
      - Food Freeze +11
      - Water Freeze +5
      - Warm Milk Freeze
      - Music Freeze
      - Rabbit Fur Freeze
      - Fur Glove Freeze
      - Tri Brush Freeze
      - Stripe Ball Freeze
      - Mouse Wand Freeze
      • 1 reply
    • Tower Defense PvP Tower Royale v1.8.16 [ +2 Jailed ] Max Elixir
      Modded/Hacked App: Tower Defense PvP:Tower Royale By Lightweight Inc
      Bundle ID: kr.lightweight.randomtower
      App Store Link: https://apps.apple.com/us/app/tower-defense-pvp-tower-royale/id1579639395?uo=4

      🤩 Hack Features

      - Max Elixir
      - Merge All Dice
      • 4 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