frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
753 stars 245 forks source link

module.enumerateExports().length == 0 #781

Closed zhanghecn closed 8 months ago

zhanghecn commented 1 year ago

I used the translation software to translate the following content, I don't know whether it is accurate:

I am using console.log(module.enumerateExports().length); and console.log(module.enumerateSymbols().length); but the output is 0.

My current version is frida-server-16.1.2-android-arm64, but it seems like there is an issue with 16.1~.

However, when I switch to frida-server-16.0.18-android-arm64, I can correctly obtain the data, such as 19663.

Here is the information about my mobile phone:

Linux version 4.4.192-perf-g2bcc393 (builder@c5-miui-ota-bd147.bj) (gcc version 4.9.x 20150123 (prerelease) (GCC) ) frida/frida#1 SMP PREEMPT Thu Jun 17 21:54:58 CST 2021
AlexFromChaos commented 1 year ago

confirming the bug. Direct exported symbol resolving works, exports enumeration - doesn't. The issue also affects DebugSymbol.

oleavr commented 8 months ago

Thanks so much for reporting! :raised_hands: