This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function () { | |
var rootBeerNative = Java.use("com.scottyab.rootbeer.RootBeerNative"); | |
rootBeerNative.checkForRoot.implementation = function(objArr) { | |
return 0 | |
} | |
}) | |
// adb shell pm list package -3 ==> find third party app(app.name) for hook | |
// frida -U -l .\RootBeerNative-universal-Bypass.js -f app.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess, sys, time | |
def restart_tor(): | |
try: | |
if 'linux' in sys.platform: | |
subprocess.run(['systemctl', 'restart', 'tor'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True) | |
elif 'win32'in sys.platform: | |
subprocess.run(['sc', 'stop', 'tor'], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, check=True) | |
time.sleep(0.5) |