Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 706 Bytes

Frida Scripts.md

File metadata and controls

26 lines (23 loc) · 706 Bytes

Hook specific Andoird/JAVA method

setImmediate(function() {
    console.log("[*] Starting script");
    Java.perform(function () {
        var Activity = Java.use("com.mycompany.client.sdk.myclass");
        console.log("loaded "+Activity);
        Activity.isThisTrue.overload('java.lang.String', 'java.lang.Integer').implementation = function (a,b) {                
            console.log(a);
            b++
            console.log(b);
            
            return true;
        };
    });

});

Get IMEI from phone

function getIMEI(){
    console.log('IMEI =', Java.use("android.telephony.TelephonyManager").$new().getDeviceId());
}
Java.perform(getIMEI)