Advertisement
Mr_hEx

RootBeer Bypass

Dec 12th, 2022
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Java.perform(function() {
  2.   var RootBeer = Java.use('com.scottyab.rootbeer.RootBeer');
  3.  
  4.   RootBeer.isRooted.implementation = function() {
  5.     console.log('[+] Overriding RootBeer.isRooted');
  6.     return false;
  7.   };
  8.  
  9.  
  10.   RootBeer.detectRootManagementApps.implementation = function() {
  11.     console.log('[+] Overriding RootBeer.detectRootManagementApps');
  12.     return [];
  13.   };
  14.  
  15.  
  16.   RootBeer.detectPotentiallyDangerousApps.implementation = function() {
  17.     console.log('[+] Overriding RootBeer.detectPotentiallyDangerousApps');
  18.     return [];
  19.   };
  20.  
  21.   RootBeer.checkForBusyBoxBinary.implementation = function() {
  22.     console.log('[+] Overriding RootBeer.checkForBusyBoxBinary');
  23.     return false;
  24.   };
  25.  
  26.   RootBeer.checkForSuBinary.implementation = function() {
  27.     console.log('[+] Overriding RootBeer.checkForSuBinary');
  28.     return false;
  29.   };
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement