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

    • Rust Riders: Idle Apocalypse v0.1.0 [+3 Jailed Cheats]
      Modded/Hacked App: Rust Riders: Idle Apocalypse By Andriy Pidvirnyy
      Bundle ID: com.lumamind.rustriders
      App Store Link: https://apps.apple.com/us/app/rust-riders-idle-apocalypse/id6742499714?uo=4



      🤩 Hack Features

      - Instant Break
      - Never Die
      - Add Resource
        • Informative
      • 1 reply
    • Rust Riders: Idle Apocalypse v0.1.0 [+3 Cheats]
      Modded/Hacked App: Rust Riders: Idle Apocalypse By Andriy Pidvirnyy
      Bundle ID: com.lumamind.rustriders
      App Store Link: https://apps.apple.com/us/app/rust-riders-idle-apocalypse/id6742499714?uo=4



      🤩 Hack Features

      - Instant Break
      - Never Die
      - Add Resource
        • Like
      • 0 replies
    • The Battle Cats v14.3.0 [ Cat Food + More ]
      Modded/Hacked App: The Battle Cats By ponos corporation
      Bundle ID: jp.co.ponos.battlecatsen
      App Store Link: https://apps.apple.com/us/app/the-battle-cats/id850057092?uo=4


      🤩 DIY Features

      - Cat Food

      - Cat EXP

      Booster - Energy & Other Things Same Method Use To Get Unlimited Everything
        • Like
      • 4 replies
    • Gunfire Ops - War shooter v1.0.9 [+3 Jailed Cheats]
      Modded/Hacked App: Gunfire Ops - War shooter By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.sniper.crisis.tactical.shooter
      App Store Link: https://apps.apple.com/us/app/gunfire-ops-war-shooter/id6476885406?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and switch page)
      - No Reload

        • Like
      • 1 reply
    • Gunfire Ops - War shooter v1.0.9 [+3 Cheats]
      Modded/Hacked App: Gunfire Ops - War shooter By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.sniper.crisis.tactical.shooter
      App Store Link: https://apps.apple.com/us/app/gunfire-ops-war-shooter/id6476885406?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and switch page)
      - No Reload
        • Like
      • 1 reply
    • Zombie Drift Survival Racing v1.3.1 [+6 Jailed Cheats]
      Modded/Hacked App: Zombie Drift Survival Racing By NOSURRENDER YAZILIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.nosurrenderstudio.rougelikesurvival
      App Store Link: https://apps.apple.com/us/app/zombie-drift-survival-racing/id6702024869?uo=4



      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - Debug Menu
      • 2 replies
    • Zombie Drift Survival Racing v1.3.1 [+6 Cheats]
      Modded/Hacked App: Zombie Drift Survival Racing By NOSURRENDER YAZILIM VE TICARET ANONIM SIRKETI
      Bundle ID: com.nosurrenderstudio.rougelikesurvival
      App Store Link: https://apps.apple.com/us/app/zombie-drift-survival-racing/id6702024869?uo=4

       

      🤩 Hack Features

      - Never Die
      - One Hit Kill
      - Debug Menu
       
        • Winner
      • 0 replies
    • Omega Royale - Tower Defense v1.4.0 [+2 Jailed Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4

       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Agree
        • Winner
        • Like
      • 32 replies
    • Omega Royale - Tower Defense v1.4.0 [+2 Cheats]
      Modded/Hacked App: Omega Royale - Tower Defense By Tower Pop Oy
      Bundle ID: com.towerpop.omegaroyale
      iTunes Store Link: https://apps.apple.com/us/app/omega-royale-tower-defense/id6447241072?uo=4


       

      🚀 Hack Features

      - Omega ViP Active
      - Always Can Cast Skill (Even when it's on cooldown)


      🍏 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 33 replies
    • Three Kingdoms All-Star : Idle v1.4 +3 Cheat
      Modded/Hacked App: Three Kingdoms All-Star : Idle By Highbrow
      Bundle ID: com.highbrow.games.tki
      iTunes Store Link: https://apps.apple.com/us/app/three-kingdoms-all-star-idle/id6737404289?uo=4

       


      🤩 Hack Features

      - No Skill Cooldown
        • Haha
        • Thanks
        • Winner
        • Like
      • 22 replies
    • Matchington Mansion Cheats v1.179.0 +5
      Modded/Hacked App: Matchington Mansion By Magic Tavern, Inc.
      Bundle ID: com.matchington.mansion
      iTunes Store Link: https://apps.apple.com/us/app/matchington-mansion/id1216575026?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Infinite Moves
      - Infinite Lives
      - Infinite Booster
      - Infinite Coin (Spend some/ Get some)
      - Infinite Stars (Complete task without needing Stars)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/75130-matchington-mansion-v11750-jailed-cheats-3/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/75127-matchington-mansion-cheats-v11770-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 795 replies
    • The Sims FreePlay Cheats v5.92.0 +5
      Modded/Hacked App: The Sims™ FreePlay By Electronic Arts
      Bundle ID: com.ea.sims3deluxe.ipad.inc
      iTunes Store Link: https://itunes.apple.com/us/app/the-sims-freeplay/id466965151?mt=8&uo=4&at=1010lce4


      Hack Features:
      - Infinite Simcash
      - Infinite SP
      - Infinite LSP
      - Max ViP Point
      - Unlock Everything


      Hack Download Link: https://iosgods.com/topic/72103-arm64-the-sims-freeplay-cheats-v5414-4-iosgods-exclusive/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,289 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