
let’s review the code in jadex
there is 2 functions

b. verify for a secret key.

in the root check function the we see that there is three functions checking a,b and c , and if only on of them is true we are blocked .
so we have to make these function return true, we will edit the function return in the runtime of the app with frida
code that will be used to edit the functions
Java.perform(function(){
var rootCls = Java.use("sg.vantagepoint.a.c"); //sg.vantagepoint.a this package name the .a the is class name
rootCls.a.implementation = function(){
console.log("Check A bypassed");
return false;
}
rootCls.b.implementation = function(){
console.log("Check B bypassed");
return false;
}
rootCls.c.implementation = function(){
console.log("Check C bypassed");
return false;
}
});
save it as root-bypass.js .
frida -U -f owasp.mstg.uncrackable1 -l root-bypass.js


