Jump to content

[iOS 12 UPDATED!!] [NIC TEMPLATE] Mod Menu Theos Template! Easily Create Your Own iGMMs!


1,155 posts in this topic

Recommended Posts

Posted
//**************************************************//
//**This Header File is used in combination********//
//**with a dynamic Library and must be rewritten**//
//**if you want to use it for another purpose****//
//**********************************************//

//******************************************//
//**Credits: HackJack & Razzile(Kamizoom)**//
//****************************************//

//********************************************//
//**Usage: writeData(0xOFFSET, 0xDATA)*******//
//******************************************//

//importing and including files

#include <substrate.h>
#include <mach-o/dyld.h>
#include <mach/mach.h>
#include <dlfcn.h>

typedef void (*mshookmemory_ptr_t)(void *target, const void *data, size_t size);

/*
This Function checks if the Application has ASLR enabled.
It gets the mach_header of the Image at Index 0.
It then checks for the MH_PIE flag. If it is there, it returns TRUE.
Parameters: nil
Return: Wether it has ASLR or not
*/

bool hasASLR()
{

    const struct mach_header *mach;

    mach = _dyld_get_image_header(0);

    if (mach->flags & MH_PIE)
    {

        //has aslr enabled
        return true;
    }
    else
    {

        //has aslr disabled
        return false;
    }
}

/*
This Function gets the vmaddr slide of the Image at Index 0.
Parameters: nil
Return: the vmaddr slide
*/

uintptr_t get_slide()
{
    return _dyld_get_image_vmaddr_slide(0);
}

/*
This Function calculates the Address if ASLR is enabled or returns the normal offset.
Parameters: The Original Offset
Return: Either the Offset or the New calculated Offset if ASLR is enabled
*/

uintptr_t calculateAddress(uintptr_t offset)
{

    if (hasASLR())
    {

        uintptr_t slide = get_slide();

        return (slide + offset);
    }
    else
    {

        return offset;
    }
}
/*
This function calculates the size of the data passed as an argument. 
It returns 1 if 4 bytes and 0 if 2 bytes
Parameters: data to be written
Return: True = 4 bytes/higher or False = 2 bytes
*/

bool getType(unsigned int data)
{
    int a = data & 0xffff8000;
    int b = a + 0x00008000;

    int c = b & 0xffff7fff;
    return c;
}

/*
writeData(offset, data) writes the bytes of data to offset
this version is crafted to take use of MSHookMemory as 
mach_vm functions are causing problems with codesigning on iOS 12.
Hopefully this workaround is just temporary.
*/

bool writeData(uintptr_t offset, unsigned int data)
{
    mshookmemory_ptr_t MSHookMemory_ = (mshookmemory_ptr_t)MSFindSymbol(NULL, "_MSHookMemory");

    // MSHookMemory is supported, use that instead of vm_write
    if (MSHookMemory_)
    {
        if (getType(data))
        {
            data = CFSwapInt32(data);
            MSHookMemory_((void *)calculateAddress(offset), &data, 4);
        }
        else
        {
            data = CFSwapInt16(data);
            MSHookMemory_((void *)calculateAddress(offset), &data, 2);
        }
        return true;
    }
    else
    {
        kern_return_t err = KERN_SUCCESS;
        mach_port_t port = mach_task_self();
        vm_address_t address = calculateAddress(offset);

        //set memory protections to allow us writing code there

        err = vm_protect(port, (vm_address_t)address, sizeof(data), false, VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY);

        //check if the protection fails

        if (err != KERN_SUCCESS)
        {
            return false;
        }

        //write code to memory

        if (getType(data))
        {
            data = CFSwapInt32(data);
            err = vm_write(port, address, (vm_address_t)&data, sizeof(data));
        }
        else
        {
            data = (unsigned short)data;
            data = CFSwapInt16(data);
            err = vm_write(port, address, (vm_address_t)&data, sizeof(data));
        }
        if (err != KERN_SUCCESS)
        {
            return FALSE;
        }
        //set the protections back to normal so the app can access this address as usual

        err = vm_protect(port, (vm_address_t)address, sizeof(data), false, VM_PROT_READ | VM_PROT_EXECUTE);

        return TRUE;
    }
}

bool writeData(uintptr_t offset, void* data, size_t size) 
{
    mshookmemory_ptr_t MSHookMemory_ = (mshookmemory_ptr_t)MSFindSymbol(NULL, "_MSHookMemory");

    // MSHookMemory is supported, use that instead of vm_write
    if (MSHookMemory_)
    {
        MSHookMemory_((void *)calculateAddress(offset)), data, size);
        return true;
    }
    else 
    {
        kern_return_t err = KERN_SUCCESS;
        mach_port_t port = mach_task_self();
        vm_address_t address = calculateAddress(offset);

        //set memory protections to allow us writing code there

        err = vm_protect(port, (vm_address_t)address, size, false, VM_PROT_READ | VM_PROT_WRITE | VM_PROT_COPY);

        //check if the protection fails

        if (err != KERN_SUCCESS)
        {
            return false;
        }

        err = vm_write(port, address, (vm_address_t)data, size);

        if (err != KERN_SUCCESS)
        {
            return false;
        }

        err = vm_protect(port, (vm_address_t)address, size, false, VM_PROT_READ | VM_PROT_EXECUTE);

        return true;
    }
}
Guest
This topic is now closed to further replies.
  • Our picks

    • World Chef Cheats v3.1.0 +4
      Modded/Hacked App: World Chef By Socialpoint
      Bundle ID: worldchef
      iTunes Store Link: https://apps.apple.com/us/app/world-chef/id1010677881?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

      - Instant Cooking
      - Instant Eating
      - Free Missing Ingredients/Food Cost
      - Free Storage Upgrade Cost

       

      Non-Jailbroken Hack: https://iosgods.com/topic/163932-world-chef-v307-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/163904-world-chef-cheats-v307-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 62 replies
    • MuseDash Cheats v5.6.1 +3
      Modded/Hacked App: Muse Dash 喵斯快跑-跑酷游戏 By X.D. Network Inc.
      Bundle ID: com.xd.musedash
      iTunes Store Link: https://apps.apple.com/us/app/muse-dash-%E5%96%B5%E6%96%AF%E5%BF%AB%E8%B7%91-%E8%B7%91%E9%85%B7%E6%B8%B8%E6%88%8F/id1361473095?uo=4


      Hack Features:
      - All Songs Owned (It display Locked but you still can play it)
      - God Mode
      - Auto Dance

       
      Free Non-Jailbroken Hacks: https://iosgods.com/topic/88380-muse-dash-%E5%96%B5%E6%96%AF%E5%BF%AB%E8%B7%91-%E8%B7%91%E9%85%B7%E6%B8%B8%E6%88%8F-v153-jailed-cheats-2/

       
      Hack Download Link: https://iosgods.com/topic/71374-muse-dash-%E5%96%B5%E6%96%AF%E5%BF%AB%E8%B7%91-%E8%B7%91%E9%85%B7%E6%B8%B8%E6%88%8F-cheats-v153-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 339 replies
    • Adventure Chef v1.52.360 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Adventure Chef By Futurewave Games LLC
      Bundle ID: com.adventurechef
      App Store Link: https://apps.apple.com/us/app/adventure-chef/id6717580048?uo=4

       
      🤩 Hack Features

      - IAP FREE [ Buy Anything ] ADS
      - Gems
      - Cash
        • Like
      • 2 replies
    • Adventure Chef v1.52.360 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Adventure Chef By Futurewave Games LLC
      Bundle ID: com.adventurechef
      App Store Link: https://apps.apple.com/us/app/adventure-chef/id6717580048?uo=4


      🤩 Hack Features

      - IAP FREE [ Buy Anything ] ADS
      - Gems
      - Cash
        • Like
      • 4 replies
    • Only Grind: Loot & Fight v1.3.1 [ +11 Cheats ] Currency Max
      Modded/Hacked App: Only Grind: Loot & Fight By Chi Ngo
      Bundle ID: io.onlychads.onlygrind
      App Store Link: https://apps.apple.com/us/app/only-grind-loot-fight/id6499444042?uo=4

       
      🤩 Hack Features

      - IAP FREE [ Buy Anything ] ADS

      - Gems [ Earn Then Get ]

      - Success Rate Gems [ UP Then Get ]

      - Chest +5

      - Gold [ Sell Then Get ]

      - Gold [ Merge Gems Then Get ]

      - Gold [ Up Then Get ]

      - HP

      - DEF

      - ATK

      - Criti DMG
        • Like
      • 2 replies
    • Only Grind: Loot & Fight v1.3.1 [ +11 Jailed ] Currency Max
      Modded/Hacked App: Only Grind: Loot & Fight By Chi Ngo
      Bundle ID: io.onlychads.onlygrind
      App Store Link: https://apps.apple.com/us/app/only-grind-loot-fight/id6499444042?uo=4
       

      🤩 Hack Features

      - IAP FREE [ Buy Anything ] ADS

      - Gems [ Earn Then Get ]

      - Success Rate Gems [ UP Then Get ]

      - Chest +5

      - Gold [ Sell Then Get ]

      - Gold [ Merge Gems Then Get ]

      - Gold [ Up Then Get ]

      - HP

      - DEF

      - ATK

      - Criti DMG
        • Like
      • 0 replies
    • My Cafe — Restaurant game Cheats v2025081.1.761 +3
      Modded/Hacked App: My Cafe — Restaurant Game By Melsoft
      Bundle ID: com.Melesta.MyCafe
      iTunes Store Link: https://apps.apple.com/us/app/my-cafe-restaurant-game/id1068204657?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

      - Increase Game Speed
      - No Timer to Buy Energy
      - Custom Dice Value


      Notes:
      - DO NOT BUY VIP FOR OTHER FEATURES, IT HAS BEEN PATCHED AND NO LONGER WORK

       

      Non-Jailbroken Hack: https://iosgods.com/topic/134272-my-cafe-%E2%80%94-restaurant-game-v20250205684-3-cheats/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/130634-my-cafe-%E2%80%94-restaurant-game-cheats-v20250300691-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 659 replies
    • Simply Piano: Learn Piano Fast Modded v9.10.24 +1
      Modded/Hacked App: Simply Piano: Learn Piano Fast By Simply Ltd
      Bundle ID: com.joytunes.asla
      iTunes Store Link: https://apps.apple.com/us/app/simply-piano-learn-piano-fast/id1019442026?uo=4


      Hack Features:
      - PREMIUM
       

      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/68652-simply-piano-v975-jailed-mod-1/


      Hack Download Link: https://iosgods.com/topic/83369-simply-piano-learn-piano-fast-modded-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,542 replies
    • Magic Tiles 3: Piano Game Cheats v12.081.002 +5
      Modded/Hacked App: Magic Tiles 3 by AMANOTES JOINT STOCK COMPANY
      Bundle ID: com.amazingmusic.pianoidol
      iTunes Store Link: https://itunes.apple.com/us/app/magic-tiles-3/id1145692161?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Currencies
      - No Ads
      - Infinite Lives
      - All Songs Owned
      - ViP


      Hack Download Link: https://iosgods.com/topic/82441-arm64-magic-tiles-3-cheats-v67047-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,029 replies
    • Dungeon of Gods Cheats v1.6.3 +3
      Modded/Hacked App: Dungeon of Gods By SuperPlanet corp.
      Bundle ID: com.superplanet.goddungeon
      App Store Link: https://apps.apple.com/us/app/dungeon-of-gods/id1611319102?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

      - Multiply Attack
      - Multiply Defense
      - God Mode

       

      Non-Jailbroken Hack: https://app.iosgods.com/store/appdetails/5865-dungeon-of-gods-hack

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/157059-dungeon-of-gods-cheats-v163-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 265 replies
    • The Secret of Cat Island Cheats v1.5.3 +2
      Modded/Hacked App: The Secret of Cat Island By LikeItGames Co., Ltd.
      Bundle ID: com.likeitgames.iOSAfterRain2
      App Store Link: https://apps.apple.com/us/app/the-secret-of-cat-island/id1599990384?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

      - Free Currencies
      - Unlock All Skins

       

      Non-Jailbroken Hack: https://iosgods.com/topic/155394-the-secret-of-cat-island-v153-jailed-cheats-1/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/155392-the-secret-of-cat-island-cheats-v153-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 35 replies
    • Prison Empire Tycoon-Idle Game Cheats v4 +2
      Modded/Hacked App: Prison Empire Tycoon-Idle Game by Digital Things Sociedad Limitada
      Bundle ID: com.codigames.idle.prison.empire.manager.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/prison-empire-tycoon-idle-game/id1508490923?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - No Ads


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/128324-arm64-prison-empire-tycoon%EF%BC%8Didle-game-v102-jailed-cheats-2/

       
      iOS Hack Download Link: https://iosgods.com/topic/128322-arm64-prison-empire-tycoon%EF%BC%8Didle-game-cheats-all-versions-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,162 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