facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
BSD 3-Clause "New" or "Revised" License
5.17k stars 965 forks source link

shimmed method doesn't get called from system libraries for iOS14 with arm64e device #80

Open beingpraveen opened 3 years ago

beingpraveen commented 3 years ago

MacOView provides following listing (dynamic symbol table) for 'stat' method in arm64 CFNetwork device file:

Screenshot 2020-09-29 at 2 53 08 PM

But same method is listed for arm64e as below

Screenshot 2020-09-29 at 2 54 56 PM
tripleCC commented 3 years ago

I get the same issue. fishhook can't get system symbols like floor for iOS14 with arm64e device

PandaraWen commented 3 years ago

Same issue here, hooked method got called only once,on iOS 14.0 iPad mini 5th.

everettjf commented 3 years ago

Hi, I wrote a demo which called stat function. But on my iPhoneXS (arm64e), the main macho binary do not contain section __AUTH_CONST. Do you known how to generate __AUTH_CONST section ? Or could you provide a demo project ?