Root detection bypass for cordova plugin devicecompile

by
4 views a291fb20...

Description

This script hooks into a function called IsDrived() which contains several private function.

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l root-detection-bypass-for-cordova-plugin-devicecompile.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
Java.perform(function(){
    try {
        var Root = Java.use("cordova.plugin.devicecompile.devicecompile");
        
        if (Root) {
            console.log("cordova.plugin.devicecompile detected");
            Root.IsDrived.overload().implementation = function(){
                return false;
            };
        } else {
            console.log("cordova.plugin.devicecompile Not detected");
        }
    } catch (error) {
        console.error("An error occurred:", error);
    }
});
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...