Java.perform(function() {
var RootBeer = Java.use('com.scottyab.rootbeer.RootBeer');
RootBeer.isRooted.implementation = function() {
console.log('[+] Overriding RootBeer.isRooted');
return false;
};
RootBeer.detectRootManagementApps.implementation = function() {
console.log('[+] Overriding RootBeer.detectRootManagementApps');
return [];
};
RootBeer.detectPotentiallyDangerousApps.implementation = function() {
console.log('[+] Overriding RootBeer.detectPotentiallyDangerousApps');
return [];
};
RootBeer.checkForBusyBoxBinary.implementation = function() {
console.log('[+] Overriding RootBeer.checkForBusyBoxBinary');
return false;
};
RootBeer.checkForSuBinary.implementation = function() {
console.log('[+] Overriding RootBeer.checkForSuBinary');
return false;
};
});
Comments