Jump to content

1 post in this topic

Recommended Posts

Posted

Hooking string functions for libil2cpp games is a little different than hooking int or bool functions because unity uses a different type of string.

Create a header file e.g. Strings.h

#include "Includes/Utils.h"
typedef struct _monoString {
    void *klass;
    void *monitor;
    int length;
    char chars[1];

    int getLength() {
        return length;
    }

    char *getChars() {
        return chars;
    }
} monoString;

REOWW8M.png

Paste this code into it. This is a typedef so we can handle mono string types.

Now inside of your Main.cpp include this header

#include "Includes/Strings.h" // location relative to Main.cpp if its in a higher hiarchy use "../"

Now inside Main.cpp create your function pointers I put mine just below the My_Patches struct.

monoString *(*String_CreateString)(void *_this, const char *str);
void (*get_StringInstance);

d1jkQs4.png

 

Now inside your hackthread function assign your String_CreateString and get_StringInstance.

String_CreateString = (monoString*(*)(void *,const char *))getAbsoluteAddress(targetLibName, 0x1646CA0);
   get_StringInstance  = (void (*))getAbsoluteAddress(targetLibName,0x1646CA0);

To find the offsets Search in your dump.cs for a createstring method, which takes in only one variable called sbyte* value.

1vWFEJZ.png

put that offset in both get_StringInstance and String_CreateString.


now you can hook string functions.

here is a hook for function.

First we hook the update function in the playercontroller class.
then inside that class is a function Debug_MoveToPointImmediate which takes a monostring parameter.

void (*Debug_MoveToPointImmediate)(void *instance, monoString * PointID);
bool MoveToCastle = false;
bool MoveToHome = false;
void(* old_UpdateMap)(void * instance);
void UpdateMap(void*instance) {
    if(instance != NULL ) {
       if(MoveToCastle) {
           MoveToCastle = false;
           Debug_MoveToPointImmediate(instance,String_CreateString(get_StringInstance,"castle"));
       }
        if(MoveToHome) {
            MoveToHome = false;
            Debug_MoveToPointImmediate(instance,String_CreateString(get_StringInstance,"home"));
        }

    }
    old_UpdateMap(instance);
}

when passing the string into the parameter use String_CreateString(get_StringInstance,"string you want to pass")

now we assign the pointer function and hook the player update inside the hackthread.

A64HookFunction((void*)getAbsoluteAddress(targetLibName, 0x19DDDD4),  (void*)UpdateMap, (void**)&old_UpdateMap);
Debug_MoveToPointImmediate = (void (*)(void *,monoString *))getAbsoluteAddress(targetLibName, 0x19E07A4);

kqpDZP8.png

and your done. You can use the String_CreateString(get_StringInstance,"string you want to pass") in any function which takes a string. If its a string returning function you could use
return String_CreateString(get_StringInstance,"string you want to return").

connecting to a button is simple.

add the features :

oEsNtKb.png

add the cases:

ie8EPny.png

Because the function is in a update that is called 60 times per second, we set it to true when the button is clicked and then inside the update function set it to false once it is run. This is so it isn't called more than once. you would do this differently if it was a function you want to keep being called like a toggle function.

DONE.

  • Like 1

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

    • Miner Fighters ! v2.5.7 [ +12 Jailed ] Currency Max
      Modded/Hacked App: Miner Fighters ! By UNICO STUDIO LLC
      Bundle ID: com.unicostudio.minerfighters
      App Store Link: https://apps.apple.com/us/app/miner-fighters/id6752961543?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Red Gems
      - Unlimited Green Gems
      - Hero Cost Up / Earn Green Gems
      - Gold / No Need IN Battle For Trop
      - Trop Unlocked / IN Battle Only 
      - Trower HP
      - HP
      - ATK
      - DEF
      - Luck
      - Miner Gold
      • 4 replies
    • Miner Fighters ! v2.5.7 [ +12 Cheats ] Currency Max
      Modded/Hacked App: Miner Fighters ! By UNICO STUDIO LLC
      Bundle ID: com.unicostudio.minerfighters
      App Store Link: https://apps.apple.com/us/app/miner-fighters/id6752961543?uo=4

      🤩 Hack Features

      - Auto ADS OFF
      - Unlimited Red Gems
      - Unlimited Green Gems
      - Hero Cost Up / Earn Green Gems
      - Gold / No Need IN Battle For Trop
      - Trop Unlocked / IN Battle Only 
      - Trower HP
      - HP
      - ATK
      - DEF
      - Luck
      - Miner Gold
      • 3 replies
    • Land Builder v1.27.4 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Land Builder By SayGames LTD
      Bundle ID: com.game.perfectlands
      App Store Link: https://apps.apple.com/us/app/land-builder/id6443774303?uo=4 

      🤩 Hack Features

      - Gems
      - Gold
      - Skip
      • 4 replies
    • Land Builder v1.27.4  [ +3 Jailed ] Currency Max
      Modded/Hacked App: Land Builder By SayGames LTD
      Bundle ID: com.game.perfectlands
      App Store Link: https://apps.apple.com/us/app/land-builder/id6443774303?uo=4
       

      🤩 Hack Features

      - Gems
      - Gold
      - Skip
      • 10 replies
    • Fairy vs Devil v1.0.2 [ +2 Cheats ] Currency Max
      Modded/Hacked App: Fairy vs Devil By NADDIC GAMES Co Ltd.
      Bundle ID: com.maf.FairyGuardians
      App Store Link: https://apps.apple.com/us/app/fairy-vs-devil/id6753863880?uo=4

      🤩 Hack Features

      - Unlimited Currency / Before The Battle OFF
      - Unlimited Resources / Before The Battle OFF
      • 2 replies
    • Fairy vs Devil v1.0.2 [ +2 Jailed ] Currency Max
      Modded/Hacked App: Fairy vs Devil By NADDIC GAMES Co Ltd.
      Bundle ID: com.maf.FairyGuardians
      App Store Link: https://apps.apple.com/us/app/fairy-vs-devil/id6753863880?uo=4

      🤩 Hack Features

      - Unlimited Currency / Before The Battle OFF
      - Unlimited Resources / Before The Battle OFF
      • 1 reply
    • Cat Crunch - Match 3 Games v2.61 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Cat Crunch - Match 3 Games By Y factory
      Bundle ID: com.yfactorysoft.CatCrunch
      App Store Link: https://apps.apple.com/us/app/cat-crunch-match-3-games/id6471232053?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Booster.
      • 4 replies
    • Cat Crunch - Match 3 Games v2.61 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Cat Crunch - Match 3 Games By Y factory
      Bundle ID: com.yfactorysoft.CatCrunch
      App Store Link: https://apps.apple.com/us/app/cat-crunch-match-3-games/id6471232053?uo=4

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Stars
      - Unlimited Booster
      • 1 reply
    • Postknight 2 +4 Jailed Cheats
      Modded/Hacked App: Postknight 2 By Kurechii Sdn Bhd
      Bundle ID: com.kurechii.postknight2
      iTunes Store Link: https://apps.apple.com/us/app/postknight-2/id1497250814?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/Mac/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Never Die
      - Debug Menu → Settings > Click Privacy Policy [ Not All Options Work ]
      - Game Speed Multiplier


      Jailbreak required hack(s): 


      iOS Hack Download Link:

      Hidden Content
      React or reply to this topic to see the <a href='https://iosgods.com/topic/3762-info-how-to-unlockview-the-hidden-content-on-iosgods/?do=findComment&comment=78119'>hidden content & download link</a>.








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login & then your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: For free Apple Developer accounts, you will need to repeat this process every 7 days. Using a disposable Apple ID for this process is suggested but not required. Jailbroken iDevices can also use Sideloadly to install the IPA with AppSync. Filza & IPA Installer (or alternatives) from Cydia also work. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - Zahir


      Cheat Video/Screenshots:

      N/A
      • 133 replies
    • Darkest Hero! v0.0.86 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 17 replies
    • Darkest Hero! v0.0.86 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Darkest Hero! By MINIDRAGON LTD
      Bundle ID: com.minidragon.randomdungeon
      App Store Link: https://apps.apple.com/us/app/darkest-hero/id6746927122?uo=4

      🤩 Hack Features

      - Unlimited Gems / Earn
      - Unlimited Red Crystal / Earn
      - Unlimited Gold / Earn
      - Unlimited Keys / Earn
      • 13 replies
    • SLIME - ISEKAI Memories v3.0.35 +5 Jailed Cheats
      Modded/Hacked App: SLIME - ISEKAI Memories By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0402
      iTunes Store Link: https://apps.apple.com/us/app/slime-isekai-memories/id1577316192?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/Mac/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier
      - Always Our Turn
      - Instant Win
      - Unlimited Skills


      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/


      iOS Hack Download Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login & then your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: For free Apple Developer accounts, you will need to repeat this process every 7 days. Using a disposable Apple ID for this process is suggested but not required. Jailbroken iDevices can also use Sideloadly to install the IPA with AppSync. Filza & IPA Installer (or alternatives) from Cydia also work. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - Zahir


      Cheat Video/Screenshots:

      N/A
      • 392 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