最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Frida wait for Android Java class to loaded - Stack Overflow

programmeradmin1浏览0评论

I tried to hook on Java Android class but when the application is spawn that class is not loaded yet.

So I got Error: java.lang.ClassNotFoundException: Didn't find class ....

I tried that code link

Java.perform(function x() {
var classFactory;
const classLoaders = Java.enumerateClassLoadersSync();
for (const classLoader in classLoaders) {
    try {
    console.log( classLoaders[classLoader]);

        classLoaders[classLoader].findClass("com.a.b.c");
          
        classFactory=Java.ClassFactory.get( classLoaders[classLoader]);
        
         console.log("find !!!!" +classFactory);
        break;
         
    } catch (e) {
        console.log("error " + e);
        continue;
    }
}


});

But that not help , if I will wait few seconds the class will load

How can I wait for that with Frida code ?

发布评论

评论列表(0)

  1. 暂无评论