Closed 4val0v closed 4 years ago
@m0bilesecurity Hi, I just noticed: project has no class p0.
, there is p.
Other tools also see this class: But they show an error (when working with him) !
It would be great to see detailed errors on the web page (Instead of error 50x) !
Possible solution: frida-python/examples/crash_reporting.py
Hey @4val0v, thanks for sharing all the info ;) They really help! Can you also share the APK that you are testing? Best
mmm it's a very weird bug.
The issue is for sure here: default.js --> loadmethods: function (loaded_classes)
Specifically in these 2 lines:
var jClass = Java.use(className);
var classMethods_dirty = jClass.class.getDeclaredMethods();
Some classes completely break the loop after that 2 lines of code and I'm not able to prevent the error. Any idea?
For the moment I improved the render_template function. But as soon as RMS tries to load methods of a "problematic" class, the method extraction of all the other classes in the queue will fail.
I don't know the correction options (
But I will look for fixes !
Fixed 😉 check the last commit 🚀
The only issue remaining is with classes like "com.scottyab.rootbeer.sample.TextViewFont"
APP: com.scottyab.rootbeer.sample
But in this specific case the issue seems Frida related.
Code to reproduce:
Java.performNow(function () {
console.log("start ___________________________")
try {
var className = "com.scottyab.rootbeer.sample.TextViewFont"
var JClass = Java.use(className);
var classMethods = JClass.class.getDeclaredMethods();
console.log(classMethods)
} catch (err) {
console.log("catch");
console.log(err);
}
console.log("end ___________________________")
});
It seems that Java.use
is not able to raise an exception. Same behaviour (bug) with FRIDA cli.
Problem Hook all classes that start with:
f0.
Solution you'd like Ability to specify the methods to ignore eg:
f0.,okhttp3.,--f0.p0.k.