android-full-class-path
4 views
fe56e835...
Description
find full class path for Java.use() method. Sometimes its hard byhand)
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l android-full-class-path.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
// u can change 'Headers' and 'okhttp' as u wish
// example of output:
// com.android.okhttp.internal.http.OkHeaders$1
// com.android.okhttp.Headers
// com.android.okhttp.internal.http.OkHeaders
// okhttp3.Headers$Builder
// then u can do: var Build = Java.use("okhttp3.Headers$Builder");
// and change any method as u want here
Java.enumerateLoadedClasses({
onMatch: function(classname) {
if (classname.indexOf('Headers') !== -1 &&
classname.indexOf('okhttp') !== -1) {
console.log(classname);
}
},
onComplete: function() {}
});
Comments