Jump to content

 Something great is coming! 🤖

Stay tuned for the big reveal happening here on iOSGods on the 20th of February!

The countdown has finished!

6 posts in this topic

Recommended Posts

Posted (edited)

tested on iphone6s plus & iphone5s

I thought arm64 devices can not hook like this.

#import <CoreFoundation/CoreFoundation.h>
#import "substrate.h"
#import "libMobileGestalt.h"

CFPropertyListRef (*orig_MGCopyAnswer)(CFStringRef key);//hook MGCopyAnswer
CFPropertyListRef replace_MGCopyAnswer(CFStringRef key)
{
    NSLog(@"my hookfunction");
    return orig_MGCopyAnswer(key);
}

__attribute__((constructor)) static void initialize() {
    MSHookFunction(MGCopyAnswer,replace_MGCopyAnswer,&orig_MGCopyAnswer);
}

any ideas to hook MGCopyAnswer on arm64 devices??  ;)

Updated by youngzzzzzzz
Posted

I can hook stuff fine on my 5s

 

I know one instance where stuff will crash when hooked, when something that you are hooking doesn't exist. Can you see "my hookfunction" in syslog?

Posted (edited)

syslog of my iphone6s plus 9.0.2jb before crashed

[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:14:49 iPhone[0;36m com.apple.xpc.launchd[1][m (UIKitApplication:com.apple.mobilesafari[0xaa3f][20940])[m <Notice>: Service exited due to signal: Illegal instruction: 4
[0;37mJul 20 17:14:49 iPhone[0;36m diagnosticd[177][2;31m <[0;31mError[2;31m>[0;37m:[m unable to find offset 0x9a7f3a5c in shared cache for arch 'arm64'
[0;37mJul 20 17:14:49 iPhone[0;36m SpringBoard[783][2;33m <[0;33mWarning[2;33m>[0;37m:[m Application 'UIKitApplication:com.apple.mobilesafari[0xaa3f]' crashed.

and my iphone5s 9.1jb

[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m MS:Notice: Injecting: com.apple.mobilesafari [MobileSafari] (1241.11)
[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m CoreFoundation = 1241.110000
[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m Could not match CoreFoundation = 1241.110000
[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction
[0;37mJul 20 17:30:42 iPhone[0;36m diagnosticd[191][2;31m <[0;31mError[2;31m>[0;37m:[m error evaluating process info - pid: 969, puniqueid: 969
[0;37mJul 20 17:30:42 iPhone[0;36m com.apple.xpc.launchd[1][m (UIKitApplication:com.apple.mobilesafari[0x8cb0][969])[m <Notice>: Service exited due to signal: Illegal instruction: 4
[0;37mJul 20 17:30:42 iPhone[0;36m SpringBoard[779][2;33m <[0;33mWarning[2;33m>[0;37m:[m Application 'UIKitApplication:com.apple.mobilesafari[0x8cb0]' crashed.

Tweak.xm:

#import <CoreFoundation/CoreFoundation.h>
#import "substrate.h"
#import "MobileGestalt.h"

CFPropertyListRef (*orig_MGCopyAnswer)(CFStringRef key);//hook MGCopyAnswer
CFPropertyListRef replace_MGCopyAnswer(CFStringRef key)
{
    NSLog(@"my hookfunction");
    return orig_MGCopyAnswer(key);
}

__attribute__((constructor)) static void initialize() {
    MSHookFunction(MGCopyAnswer,replace_MGCopyAnswer,&orig_MGCopyAnswer);
}

makefile:

export ARCHS = armv7 arm64
export TARGET = iphone:clang:latest:8.0

include $(THEOS_MAKE_PATH)/common.mk

TWEAK_NAME = DemoTweak
DemoTweak_FILES = Tweak.xm
DemoTweak_LIBRARIES = flipswitch MobileGestalt
DemoTweak_LDFLAGS += -Wl,-segalign,4000
DemoTweak_CFLAGS = -Wno-c++11-extensions

include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/aggregate.mk

after-install::
	# install.exec "killall -9 SpringBoard"

any ideas?

Updated by youngzzzzzzz
Posted (edited)

syslog of my iphone6s plus 9.0.2jb before crashed

[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m com.apple.xpc.launchd[1][m (UIKitApplication:com.apple.mobilesafari[0xaa3f][20940])[m <Notice>: Service exited due to signal: Illegal instruction: 4[0;37mJul 20 17:14:49 iPhone[0;36m diagnosticd[177][2;31m <[0;31mError[2;31m>[0;37m:[m unable to find offset 0x9a7f3a5c in shared cache for arch 'arm64'[m[0;37mJul 20 17:14:49 iPhone[0;36m SpringBoard[783][2;33m <[0;33mWarning[2;33m>[0;37m:[m Application 'UIKitApplication:com.apple.mobilesafari[0xaa3f]' crashed.

and my iphone5s 9.1jb

 

[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m MS:Notice: Injecting: com.apple.mobilesafari [MobileSafari] (1241.11)[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m CoreFoundation = 1241.110000[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;32m <[0;32mNotice[2;32m>[0;37m:[m Could not match CoreFoundation = 1241.110000[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:30:42 iPhone[0;36m MobileSafari[969][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:30:42 iPhone[0;36m diagnosticd[191][2;31m <[0;31mError[2;31m>[0;37m:[m error evaluating process info - pid: 969, puniqueid: 969[0;37mJul 20 17:30:42 iPhone[0;36m com.apple.xpc.launchd[1][m (UIKitApplication:com.apple.mobilesafari[0x8cb0][969])[m <Notice>: Service exited due to signal: Illegal instruction: 4[0;37mJul 20 17:30:42 iPhone[0;36m SpringBoard[779][2;33m <[0;33mWarning[2;33m>[0;37m:[m Application 'UIKitApplication:com.apple.mobilesafari[0x8cb0]' crashed.
Tweak.xm:

#import <CoreFoundation/CoreFoundation.h>#import "substrate.h"#import "MobileGestalt.h"CFPropertyListRef (*orig_MGCopyAnswer)(CFStringRef key);//hook MGCopyAnswerCFPropertyListRef replace_MGCopyAnswer(CFStringRef key){    NSLog(@"my hookfunction");    return orig_MGCopyAnswer(key);}__attribute__((constructor)) static void initialize() {    MSHookFunction(MGCopyAnswer,replace_MGCopyAnswer,&orig_MGCopyAnswer);}
makefile:

export ARCHS = armv7 arm64export TARGET = iphone:clang:latest:8.0include $(THEOS_MAKE_PATH)/common.mkTWEAK_NAME = DemoTweakDemoTweak_FILES = Tweak.xmDemoTweak_LIBRARIES = flipswitch MobileGestaltDemoTweak_LDFLAGS += -Wl,-segalign,4000DemoTweak_CFLAGS = -Wno-c++11-extensionsinclude $(THEOS_MAKE_PATH)/tweak.mkinclude $(THEOS_MAKE_PATH)/aggregate.mkafter-install::	# install.exec "killall -9 SpringBoard"
any ideas?
I highlighted the text that described the error and it was exactily what I thought :p My guess is that you'll have to find another way to do this

 

Look:

 

[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m MobileSafari[20940][2;33m <[0;33mWarning[2;33m>[0;37m:[m my hookfunction[0;37mJul 20 17:14:49 iPhone[0;36m com.apple.xpc.launchd[1][m (UIKitApplication:com.apple.mobilesafari[0xaa3f][20940])[m <Notice>: Service exited due to signal: Illegal instruction: 4[0;37mJul 20 17:14:49 iPhone[0;36m diagnosticd[177][2;31m <[0;31mError[2;31m>[0;37m:[m unable to find offset 0x9a7f3a5c in shared cache for arch 'arm64'[0;37mJul 20 17:14:49 iPhone[0;36m SpringBoard[783][2;33m <[0;33mWarning[2;33m>[0;37m:[m Application 'UIKitApplication:com.apple.mobilesafari[0xaa3f]' crashed.

 

The best analogy I have to what your problem is is this: imagine you're making an app, and you call a method names "- (void)showAlert". But that method doesn't exist, and when you tap a button that is supposed to call that method, your app will crash. I'm pretty sure it's the same issue here, you are calling something that doesn't exist :)

Updated by Guest

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

    • Heroes vs. Hordes: Survivor v7.7.0 [ +15 Cheats ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?uo=4

       
      Hack Features

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO

       
      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Agree
        • Thanks
        • Winner
        • Like
      • 128 replies
    • Heroes vs. Hordes: Survivor v7.7.0 [ +15 Jailed ] Currency Max
      Modded/Hacked App: Heroes vs. Hordes: Survivor By Swift Games GmbH
      Bundle ID: com.swiftgames.roguelikesurvival
      iTunes Store Link: https://apps.apple.com/us/app/heroes-vs-hordes-survivor/id1608898173?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

      - Currency

      - Resource

      - Gold Unlimited [ Bonus Wave ]

      - Ch Unlocked [ Play All Off ]

      - Always Last Wave

      - Talents Cost 0

      - Hero DMG Only

      - HP & DMG [ Just Equip & Unequip ]

      - Enemy Freeze

      - Enemy ATK NO


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/

       

      iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 159 replies
    • Combat Quest: Idle Dungeon RPG v1.51.2 +2 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Combat Quest: Idle Dungeon RPG By CHILLBASE LTD
      Bundle ID: com.chillgaming.combatquest
      App Store Link: https://apps.apple.com/us/app/combat-quest-idle-dungeon-rpg/id1558423382?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 70 replies
    • Dawn of Ages: Medieval Games v2.7.4 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
        • Agree
        • Winner
        • Like
      • 125 replies
    • Adorable Home v2.17.19 Jailed Cheats +1
      Modded/Hacked App: Adorable Home By HyperBeard Inc.
      Bundle ID: com.hyperbeard.adorablehome
      App Store Link: https://apps.apple.com/us/app/adorable-home/id1486637414?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

      - Infinite Hearts
      - Free iAP

       

      Jailbroken Hack: https://iosgods.com/topic/119718-adorable-home-cheats-auto-update-2/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/119534-adorable-home-v21719-jailed-cheats-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 448 replies
    • Wiggle Defender: Strategy TD v0.0.31 Jailed Cheats +3
      Modded/Hacked App: Wiggle Defender: Strategy TD By Teamsparta Inc.
      Bundle ID: com.TeamSparta.WiggleDefender
      App Store Link: https://apps.apple.com/us/app/wiggle-defender-strategy-td/id6756547841?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

      - Multiply Attack
      - Free Store (not iAP)
      - PREMIUM

       

      Jailbroken Hack: https://iosgods.com/topic/204454-wiggle-defender-strategy-td-cheats-v0011-3/

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/204452-wiggle-defender-strategy-td-v0011-jailed-cheats-3/
        • Thanks
        • Winner
        • Like
      • 11 replies
    • War Inc: Rising v0.8.4 Jailed Cheats +3
      Modded/Hacked App: War Inc: Rising By SamShui Corporation
      Bundle ID: com.i89trillion.strategy.rising
      App Store Link: https://apps.apple.com/us/app/war-inc-rising/id6747767390?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

      - God Mode
      - One Hit Kill
      - Auto Win

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/202371-war-inc-rising-v080-jailed-cheats-3/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 17 replies
    • Dice Dreams Cheats (Auto Update) +2
      Modded/Hacked App: Dice Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dicedreams
      iTunes Store Link: https://apps.apple.com/us/app/dice-dreams/id1484468651?uo=4


      Hack Features:
      - Custom Rolls
      - Unlimited Coins - afford regardless of if you have enough


      iOS Hack Download Link: https://iosgods.com/topic/138011-dice-dreams%E2%84%A2-v1692-2-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 672 replies
    • Mortal Kombat Cheats v7.1.1 +8
      Modded/Hacked App: Mortal Kombat by Warner Bros. Entertainment
      Bundle ID: com.wb.MK.Brawler2015
      iTunes Store Link: https://apps.apple.com/us/app/mortal-kombat/id949701151


      Hack Features:
      - Auto-Win (Press the pause button)
      - Instantly Kill individual Enemy Characters (Press the pause button)
      - Force Swap Enemy Characters (Press the pause button)
      - Easy Enemy (1 hit KO) (Press the pause button)
      - Cheat Menu (only few few features work for now, i'll see what i can do) (Press the pause button)


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 5,060 replies
    • Archero Cheats (Auto Update) +5 [ God Mode & More ]
      Modded/Hacked App: Archero by HABBY PTE. LTD.
      Bundle ID: com.habby.archero
      iTunes Store Link: https://apps.apple.com/us/app/archero/id1453651052?uo=4&at=1010lce4



      Hack Features:
      - Multiply Defense to
      - Multiply Damage to
      - God Mode
      - OHK (Must use with God Mode)
      - Freeze Enemies

      NOTE: If you want to use god mode and ohk turn off multiply damage and defense first. I added multiply damage and defense there to avoid ban


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/100710-archero-v210-enemies-dont-attack-x30-attack/


      Hack Download Link: https://iosgods.com/topic/96783-arm64-archero-cheats-v220-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 15,929 replies
    • Ancient Defense v1.0 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Ancient Defense By Nikita Silchenko
      Bundle ID: com.ray.games.ancient.defense
      App Store Link: https://apps.apple.com/us/app/ancient-defense/id6758112707?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Meat Battle
      - DMG MAX
      - ATK Range
      • 1 reply
    • Ancient Defense v1.0 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Ancient Defense By Nikita Silchenko
      Bundle ID: com.ray.games.ancient.defense
      App Store Link: https://apps.apple.com/us/app/ancient-defense/id6758112707?uo=4

      🤩 Hack Features

      - Unlimited Gems
      - Unlimited Coins
      - Unlimited Energy
      - Unlimited Meat Battle
      - DMG MAX
      - ATK Range
        • 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