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

    • The Catapult 2: Castle defense v8.1.0 [ +13 Cheats ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 1 reply
    • The Catapult 2: Castle defense v8.1.0 [ +13 Jailed ] Add Currency
      Modded/Hacked App: The Catapult 2: Castle defense By BYV GAMES EOOD
      Bundle ID: com.byv.TheCatapult2
      App Store Link: https://apps.apple.com/us/app/the-catapult-2-castle-defense/id1449450263?uo=4

      🤩 Hack Features

      - Ads No
      - ViP Active
      - Double XP Active
      - Battle Pass Active
      - Unlock All Map
      - Unlock All Weapons
      - Play Any Level
      - Add Currency
      - Add Ticket
      - Aimbot
      - Aim Power
      - Never Die
      - Max Damage
      - Enemy Can't Attack
      • 2 replies
    • Arcane Breakout +4 Mods [ Damage & Defence ]
      Mod APK Game Name: Arcane Breakout By KEYSTORM HOLDINGS LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.game.arcanebreakout

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      • 1 reply
    • Dream Zone: My Fantasy Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Dream Zone: My Fantasy Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.dreamzone

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Love Sparks: Dating Sim +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sparks: Dating Sim By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.lovespark

       

      🤩 Hack Features

      - Unlimited Currencies -> Earn or spend some.
      -- VIP Enabled
      • 0 replies
    • Field Day +6 Mods [ Damage & Defence ]
      Mod APK Game Name: Field Day By BIT ODD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bitodd.vortex

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      • 1 reply
    • Love Sick: My Love Episode +2 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Love Sick: My Love Episode By SWAG MASHA
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.swagmasha.genres

       

      🤩 Hack Features

      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.
      • 0 replies
    • Field Day +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Field Day By BIT ODD oy
      Bundle ID: com.bitodd.vortex
      App Store Link: https://apps.apple.com/us/app/field-day/id6754967275?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Enemies
      - Move Speed Multiplier
      - Kill All Enemies
      • 1 reply
    • Love Sick: Stories & Choices +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Love Sick: Stories & Choices By SVEG MASHA, OOO
      Bundle ID: com.swagmasha.genres
      iTunes Store Link: https://apps.apple.com/us/app/love-sick-stories-choices/id1450264153?uo=4


      Hack Features:
      - Unlimited Keys -> Spend some.
      - Unlimited Diamonds -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Love Sick: Stories & Choices ( All Versions ) +2 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 79 replies
    • BOOM BOOM TD +4 Mods [ Damage & Defence ]
      Mod APK Game Name: BOOM BOOM TD By Gamezaaa
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yblbsea.gpgat

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      • 0 replies
    • Slime Hunter Idle Dx +7 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Slime Hunter Idle Dx By Gyeongtae Park
      Bundle ID: com.fingercat.slimehunterworldios
      App Store Link: https://apps.apple.com/us/app/slime-hunter-idle-dx/id6816451708?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Move Speed Multiplier
      - Kill All Enemies
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      • 2 replies
    • BOOM BOOM TD +4 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: BOOM BOOM TD By Cedar Technology HK Limited
      Bundle ID: com.yblbsea.iosgat
      App Store Link: https://apps.apple.com/th/app/boom-boom-td/id6780721388?uo=4

       

      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
      - Kill All Enemies
      • 1 reply
×
  • 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