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
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
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

    • Ball in! Pinball Defense v1.0.5 [ +5 APK MOD ] Currency Max
      Mod APK Game Name: Ball in! Pinball Defense
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.nep.tr.hybrid.pinballdefense&hl=en

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Card Exp
      - ATK MAX
        • Like
      • 0 replies
    • Ball in! Pinball Defense v1.0.5 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Ball in! Pinball Defense By Neptune Company
      Bundle ID: com.nep.tr.hybrid.pinballdefense
      App Store Link: https://apps.apple.com/us/app/ball-in-pinball-defense/id6767486424?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Card Exp
      - ATK MAX
      - Skill Active / 1 Hit
      • 0 replies
    • Ball in! Pinball Defense v1.0.5 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Ball in! Pinball Defense By Neptune Company
      Bundle ID: com.nep.tr.hybrid.pinballdefense
      App Store Link: https://apps.apple.com/us/app/ball-in-pinball-defense/id6767486424?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Card Exp
      - ATK MAX
      - Skill Active / 1 Hit
      • 0 replies
    • Brick Fight v2.1.7 [ +9 APK MOD ] Currency Max
      Mod APK Game Name: Brick Fight
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.yuyue.guardminingsite&hl=en

      🤩 Hack Features

      - Unlimited Skill Card Exp
      - Brick Freeze
      Talents Stats
      - ATK MAX
      - HP MAX
      - POWER MAX
        • Like
      • 0 replies
    • Brick Fight v2.1.7 [ +9 Cheats ] Currency Max
      Modded/Hacked App: Brick Fight By Voodoo
      Bundle ID: com.yuyue.guardminingsite
      App Store Link: https://apps.apple.com/us/app/brick-fight/id6738034364?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Keys +3
      - Unlimited Skill Card Exp
      - Brick Freeze
      Talents Stats
      - ATK MAX
      - HP MAX
      - POWER MAX
      • 1 reply
    • Brick Fight v2.1.7 [ +9 Jailed ] Currency Max
      Modded/Hacked App: Brick Fight By Voodoo
      Bundle ID: com.yuyue.guardminingsite
      App Store Link: https://apps.apple.com/us/app/brick-fight/id6738034364?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Keys +3
      - Unlimited Skill Card Exp
      - Brick Freeze
      Talents Stats
      - ATK MAX
      - HP MAX
      - POWER MAX
      • 1 reply
    • Lost Twins 2 +2 Jailed Cheats [ Full Game Unlocked ]
      Modded/Hacked App: Lost Twins 2 By PLAYDEW PRIVATE LIMITED
      Bundle ID: com.playdew.losttwins2
      App Store Link: https://apps.apple.com/us/app/lost-twins-2/id6757780210?uo=4

       

      🤩 Hack Features

      - Unlock Full Game -> Head into the shop, press on the Unlock Game purchase, then cancel the in-app purchase.*
      - Unlock x10 Coins -> Head into the shop, press on the x10 Coins purchase, then cancel the in-app purchase.*

      * - Only enable 1 feature at a time.
      • 1 reply
    • Astra Squad +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Astra Squad By MEGAGIGA GAMES BILISIM AS
      Bundle ID: com.astra.squad
      App Store Link: https://apps.apple.com/us/app/astra-squad/id6779563769?uo=4

       


      🤩 Hack Features

      - Currency Modifier -> Earn some.
      - Tool Damage Multiplier
      - No Tool Level Requirement
        • Agree
        • Like
      • 4 replies
    • DIGIMON UP JP ( デジモンUP ) +3 Mods [ Damage & Defence ]
      Mod APK Game Name: デジモンUP By Bandai Namco Entertainment Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bandainamcoent.dgup_jp

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Informative
        • Thanks
        • Like
      • 7 replies
    • DIGIMON UP +3 Mods [ Damage & Defence ]
      Mod APK Game Name: DIGIMON UP By Bandai Namco Entertainment Inc.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.bandainamcoent.dgup_ww

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
        • Agree
        • Winner
        • Like
      • 24 replies
    • DIGIMON UP JP ( デジモンUP ) +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: デジモンUP By Bandai Namco Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0452
      App Store Link: https://apps.apple.com/jp/app/%E3%83%87%E3%82%B8%E3%83%A2%E3%83%B3up/id6756247422?uo=4

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 1 reply
    • DIGIMON UP +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: DIGIMON UP By Bandai Namco Entertainment Inc.
      Bundle ID: jp.co.bandainamcoent.BNEI0442
      App Store Link: https://apps.apple.com/us/app/digimon-up/id6756247787?uo=4

       

      🤩 Hack Features

      - Damage Multiplier 
      - Defence Multiplier
      - God Mode
        • Informative
        • Winner
        • Like
      • 5 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