Jump to content

MSHOOKMEMORY hack not working


Ibrahim 89

12 posts in this topic

Recommended Posts

Posted

Hey guys I tried hacking with MSHOOKMEMORY using this tutorial:

I created a bloody harry hack but after successfully compiling my project in theos and installing the .deb, the tweak fails to function in the game shows no affects.

Here my Makefile:

INSTALL_TARGET_PROCESSES = SpringBoard

include $(THEOS)/makefiles/common.mk

TWEAK_NAME_LIBRARIES = substrate

bloodyharry_FILES = Tweak.x
bloodyharry_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/tweak.mk

And here is my Tweak.xm:

#import <substrate.h>
#import <mach-o/dyld.h>

uint64_t realAddr(uint64_t offset) {
	return offset + _dyld_get_image_vmaddr_slide(0);
}

%ctor {

uint64_t offset = realAddr(0x10092DEE8);

const uint8_t data[] = {
	0x1F, 0x20, 0x03, 0xD5,
};

MSHookMemory((void *)offset, data, sizeof(data));

}

Can anyone tell me where am I going wrong and what should I do to make my hack work?? btw im on ios 12.1 unc0ver

Thanks in advance.

Posted

Since latest Unc0ver uses Substitute, I think MSHookMemory might not be needed any longer? Unless it was ported over to Unc0ver's Substitute.

I also think someone made a header ready with MSHookMemory support.

Posted

How can you so sure that offset is working shrug

Posted
13 hours ago, Laxus said:

How can you so sure that offset is working shrug

Cuz I tested with CustomLive offset patcher and it worked fine.

13 hours ago, DADi said:

Since latest Unc0ver uses Substitute, I think MSHookMemory might not be needed any longer? Unless it was ported over to Unc0ver's Substitute.

I also think someone made a header ready with MSHookMemory support.

Should I resort to vm_writedata to patch offsets?

Posted

Have you entered the correct bundle ID? Do a NSLog in the %ctor to see if it actually loads into the game or not

Posted
12 hours ago, Ted2 said:

Have you entered the correct bundle ID? Do a NSLog in the %ctor to see if it actually loads into the game or not

Yes. correct bundle ID entered and the UI shows in the app. Am I missing something in my include directory in theos since I only have the substrate.h   file??

Posted
8 hours ago, Ibrahim 89 said:

Yes. correct bundle ID entered and the UI shows in the app. Am I missing something in my include directory in theos since I only have the substrate.h   file??

No, if you were missing something it would throw errors.
Also, which UI shows in the app? 

You can try this, but I doubt this will work:

 

#include <substrate.h>
#include <mach-o/dyld.h>
#define ASLR_BIAS _dyld_get_image_vmaddr_slide(0)

uint64_t getRealOffset(uint64_t offset){
	return ASLR_BIAS + offset;
}

void inject(uint64_t offset, uint64_t hackedHex) {
    hackedHex = CFSwapInt32(hackedHex);        
    MSHookMemory((void *)getRealOffset(offset), (void *)&hackedHex, sizeof(hackedHex));
}

//Usage
%ctor {
    inject(0x10092DEE8, 0x1F2003D5);
}

 

Posted
14 hours ago, Ted2 said:

No, if you were missing something it would throw errors.
Also, which UI shows in the app? 

You can try this, but I doubt this will work:

 


#include <substrate.h>
#include <mach-o/dyld.h>
#define ASLR_BIAS _dyld_get_image_vmaddr_slide(0)

uint64_t getRealOffset(uint64_t offset){
	return ASLR_BIAS + offset;
}

void inject(uint64_t offset, uint64_t hackedHex) {
    hackedHex = CFSwapInt32(hackedHex);        
    MSHookMemory((void *)getRealOffset(offset), (void *)&hackedHex, sizeof(hackedHex));
}

//Usage
%ctor {
    inject(0x10092DEE8, 0x1F2003D5);
}

 

Nop still not working. It compiles fine but does not show any effect in the app however when I use the CustomLive Offset Patcher, the hack works(which freezes the ammo). My fault about the UI that was some other one, even using the UI crashes the app. Twice checked the Bundle ID.

Posted
2 hours ago, Ibrahim 89 said:

Nop still not working. It compiles fine but does not show any effect in the app however when I use the CustomLive Offset Patcher, the hack works(which freezes the ammo). My fault about the UI that was some other one, even using the UI crashes the app. Twice checked the Bundle ID.

Which jailbreak do you use? Also, UI as in Mod Menu?

Posted
7 hours ago, Ted2 said:

Which jailbreak do you use? Also, UI as in Mod Menu?

I use the unc0ver jailbreak on ios 12.1 and the UI I created was in tweak, and when I insatlled the tweak the app crashed.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Ant Kingdom Wild RPG v5.0.0 [ +21 Cheats ] Currency Max
      Modded/Hacked App: Ant Kingdom: Wild RPG By Supercent Inc.
      Bundle ID: com.turbofasttools.antkingdom
      App Store Link: https://apps.apple.com/us/app/ant-kingdom-wild-rpg/id6748462417?uo=4

      🤩 Hack Features

      - Skip All Ads
      - Add All Currencies
      - Free Shopping / IAP NO
      - Unlimited Meat Storage
      - Max All Swarm Upgrades
      - Move Speed
      - Game Speed
      - Unlock All Areas
      - Instant Egg Hatch
      - Free Hatchery
      - Max Idle Farm
      - Max All Artifacts
      - Max All Teammates
      - Max Game Level
      - Freeze Enemies
      - Hunt Target One Hit Kill
      - Rival Battle Auto Win
      - One Hit Kill
      - Swarm Never Die
      - Never Die
        • Like
      • 0 replies
    • Ant Kingdom Wild RPG v5.0.0 [ +20 Jailed ] Currency Max
      Modded/Hacked App: Ant Kingdom: Wild RPG By Supercent Inc.
      Bundle ID: com.turbofasttools.antkingdom
      App Store Link: https://apps.apple.com/us/app/ant-kingdom-wild-rpg/id6748462417?uo=4

      🤩 Hack Features

      - Skip All Ads
      - Add All Currencies
      - Free Shopping / IAP NO
      - Unlimited Meat Storage
      - Max All Swarm Upgrades
      - Move Speed
      - Game Speed
      - Unlock All Areas
      - Instant Egg Hatch
      - Free Hatchery
      - Max Idle Farm
      - Max All Artifacts
      - Max All Teammates
      - Max Game Level
      - Freeze Enemies
      - Hunt Target One Hit Kill
      - Rival Battle Auto Win
      - One Hit Kill
      - Swarm Never Die
      - Never Die
      • 0 replies
    • Heli Monsters Giant Hunter v1.4.21 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Heli Monsters - Giant Hunter By SayGames LTD
      Bundle ID: com.heli.monsters
      App Store Link: https://apps.apple.com/us/app/heli-monsters-giant-hunter/id1636701778?uo=4

      🤩 Hack Features

      - Ads No
      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Heli Monsters Giant Hunter v1.4.21 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Heli Monsters - Giant Hunter By SayGames LTD
      Bundle ID: com.heli.monsters
      App Store Link: https://apps.apple.com/us/app/heli-monsters-giant-hunter/id1636701778?uo=4

      🤩 Hack Features

      - Ads No
      - Currency Max
      - Never Die
      - Damage Max
      • 0 replies
    • Tactical Misfits v0.2.0 [ +4 Cheats ] Never Die
      Modded/Hacked App: Tactical Misfits By Pursuit Games Inc
      Bundle ID: com.pursuitgames.tacticalmisfits
      App Store Link: https://apps.apple.com/us/app/tactical-misfits/id6803212208?uo=4

      🤩 Hack Features

      - Unlimited Mana
      - Unlimited Rerolls
      - Never Die
      - Max Damage
      • 0 replies
    • Tactical Misfits v0.2.0 [ +4 Jailed ] Never Die
      Modded/Hacked App: Tactical Misfits By Pursuit Games Inc
      Bundle ID: com.pursuitgames.tacticalmisfits
      App Store Link: https://apps.apple.com/us/app/tactical-misfits/id6803212208?uo=4

      🤩 Hack Features

      - Unlimited Mana
      - Unlimited Rerolls
      - Never Die
      - Max Damage
      • 0 replies
    • The Office Match +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Office Match By East Side Games Inc
      Bundle ID: com.eastsidegames.theofficematch
      App Store Link: https://apps.apple.com/ph/app/the-office-match/id6754114961?uo=4

       

      🤩 Hack Features

      - Currency Multiplier
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Lives
      - Freeze Moves
      - Auto Win
      -- No Ads
      • 0 replies
    • UnGodly [+5 Cheats]
      Modded/Hacked App: UnGodly By Azra Games Inc
      Bundle ID: com.azragames.ungodly
      App Store Link: https://apps.apple.com/us/app/ungodly/id6740617332?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Godmode
      - One Hit Kill 
      - No Ability Cooldown
      - No Ability Cost
      - No Stagger
       

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: 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 8: 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: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue 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

      - @KyosukeNanbu

      - @Batch

      📷 Cheat Video/Screenshots

      N/A
        • Winner
      • 6 replies
    • Dead Meridian v1.1.0 [ +4 Cheats ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Dead Meridian v1.1.0 [ +4 Jailed ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
        • Agree
      • 0 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