-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed most issues from the last commit, implemented default script examples, removed unneeded settings and disabled code formatting for now as it's unsafe
- Loading branch information
Showing
153 changed files
with
1,169 additions
and
591 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# view res/layout/main.xml #generated:106 | ||
-keep class acessor.droidfrida.CodeView { <init>(...); } | ||
|
||
# view res/layout/main.xml #generated:149 | ||
-keep class acessor.droidfrida.FixedSpinner { <init>(...); } | ||
|
||
# view AndroidManifest.xml #generated:19 | ||
-keep class acessor.droidfrida.MainActivity { <init>(...); } | ||
|
||
# onClick res/layout/main.xml #generated:40 | ||
-keepclassmembers class * { *** launchClicked(...); } | ||
|
||
# onClick res/layout/main.xml #generated:124 | ||
-keepclassmembers class * { *** onJsOptionClicked(...); } | ||
|
||
# onClick res/layout/main.xml #generated:131 | ||
-keepclassmembers class * { *** onOpenScriptClicked(...); } | ||
|
||
# onClick res/layout/main.xml #generated:139 | ||
-keepclassmembers class * { *** onSaveScriptClicked(...); } | ||
|
||
# onClick res/layout/main.xml #generated:223 | ||
-keepclassmembers class * { *** onWrapSettingClicked(...); } | ||
|
||
# onClick res/layout/main.xml #generated:57 | ||
# onClick res/layout/main.xml #generated:66 | ||
# onClick res/layout/main.xml #generated:75 | ||
# onClick res/layout/main.xml #generated:84 | ||
-keepclassmembers class * { *** tabClicked(...); } | ||
|
Binary file not shown.
Binary file added
BIN
+206 Bytes
app/build/bin/classesdebug/acessor/droidfrida/BuildConfig$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.52 KB
app/build/bin/classesdebug/acessor/droidfrida/CodeView$100000000$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.72 KB
app/build/bin/classesdebug/acessor/droidfrida/CodeView$100000000.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.42 KB
app/build/bin/classesdebug/acessor/droidfrida/FixedSpinner$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.53 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.74 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000000$0$debug.class
Binary file not shown.
Binary file added
BIN
+2.07 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000000.class
Binary file not shown.
Binary file added
BIN
+1.69 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000001$0$debug.class
Binary file not shown.
Binary file added
BIN
+2.05 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000001.class
Binary file not shown.
Binary file added
BIN
+1.11 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000002$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.6 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000002.class
Binary file not shown.
Binary file added
BIN
+1.11 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000003$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.6 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$100000003.class
Binary file not shown.
Binary file added
BIN
+950 Bytes
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$MatchEvent$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.58 KB
app/build/bin/classesdebug/acessor/droidfrida/JSConfuser$MatchEvent.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.54 KB
app/build/bin/classesdebug/acessor/droidfrida/JSFormatter$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.36 KB
app/build/bin/classesdebug/acessor/droidfrida/JSMinifier$0$debug.class
Binary file not shown.
Binary file added
BIN
+233 Bytes
...bin/classesdebug/acessor/droidfrida/JSMinifier$UnterminatedCommentException$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.17 KB
app/build/bin/classesdebug/acessor/droidfrida/JSMinifier$UnterminatedCommentException.class
Binary file not shown.
Binary file added
BIN
+239 Bytes
...assesdebug/acessor/droidfrida/JSMinifier$UnterminatedRegExpLiteralException$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.2 KB
...d/bin/classesdebug/acessor/droidfrida/JSMinifier$UnterminatedRegExpLiteralException.class
Binary file not shown.
Binary file added
BIN
+239 Bytes
...assesdebug/acessor/droidfrida/JSMinifier$UnterminatedStringLiteralException$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.2 KB
...d/bin/classesdebug/acessor/droidfrida/JSMinifier$UnterminatedStringLiteralException.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+16.1 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.48 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000000$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.85 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000000.class
Binary file not shown.
Binary file added
BIN
+1.91 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000001$0$debug.class
Binary file not shown.
Binary file added
BIN
+2.14 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000001.class
Binary file not shown.
Binary file added
BIN
+1.38 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000002$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.62 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000002.class
Binary file not shown.
Binary file added
BIN
+1.05 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000003$0$debug.class
Binary file not shown.
Binary file added
BIN
+1.37 KB
app/build/bin/classesdebug/acessor/droidfrida/MainActivity$100000003.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+192 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$array$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+195 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$drawable$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+193 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$layout$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+193 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$mipmap$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+193 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$string$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+192 Bytes
app/build/bin/classesdebug/acessor/droidfrida/R$style$0$debug.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.25 KB
app/build/bin/classesrelease/acessor/droidfrida/CodeView$100000000.class
Binary file not shown.
Binary file added
BIN
+1.45 KB
app/build/bin/classesrelease/acessor/droidfrida/CodeView$100000000.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.69 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000000.class
Binary file not shown.
Binary file added
BIN
+1.86 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000000.dex
Binary file not shown.
Binary file added
BIN
+1.66 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000001.class
Binary file not shown.
Binary file added
BIN
+1.84 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000001.dex
Binary file not shown.
Binary file added
BIN
+1.21 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000002.class
Binary file not shown.
Binary file added
BIN
+1.31 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000002.dex
Binary file not shown.
Binary file added
BIN
+1.21 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000003.class
Binary file not shown.
Binary file added
BIN
+1.31 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$100000003.dex
Binary file not shown.
Binary file added
BIN
+965 Bytes
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$MatchEvent.class
Binary file not shown.
Binary file added
BIN
+1.14 KB
app/build/bin/classesrelease/acessor/droidfrida/JSConfuser$MatchEvent.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+722 Bytes
...build/bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedCommentException.class
Binary file not shown.
Binary file added
BIN
+992 Bytes
app/build/bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedCommentException.dex
Binary file not shown.
Binary file added
BIN
+740 Bytes
...bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedRegExpLiteralException.class
Binary file not shown.
Binary file added
BIN
+1004 Bytes
...d/bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedRegExpLiteralException.dex
Binary file not shown.
Binary file added
BIN
+740 Bytes
...bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedStringLiteralException.class
Binary file not shown.
Binary file added
BIN
+1004 Bytes
...d/bin/classesrelease/acessor/droidfrida/JSMinifier$UnterminatedStringLiteralException.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.37 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000000.class
Binary file not shown.
Binary file added
BIN
+1.6 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000000.dex
Binary file not shown.
Binary file added
BIN
+1.75 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000001.class
Binary file not shown.
Binary file added
BIN
+1.96 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000001.dex
Binary file not shown.
Binary file added
BIN
+1.27 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000002.class
Binary file not shown.
Binary file added
BIN
+1.56 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000002.dex
Binary file not shown.
Binary file added
BIN
+1.01 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000003.class
Binary file not shown.
Binary file added
BIN
+1.29 KB
app/build/bin/classesrelease/acessor/droidfrida/MainActivity$100000003.dex
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="acessor.droidfrida" | ||
android:versionCode="2" | ||
android:versionName="2.0"> | ||
|
||
<uses-sdk | ||
android:minSdkVersion="14" | ||
android:targetSdkVersion="29"/> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:theme="@android:style/Theme.Holo" | ||
android:resizeableActivity="true"> | ||
|
||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name"> | ||
|
||
<intent-filter> | ||
|
||
<action | ||
android:name="android.intent.action.MAIN"/> | ||
|
||
<category | ||
android:name="android.intent.category.LAUNCHER"/> | ||
|
||
</intent-filter> | ||
|
||
</activity> | ||
|
||
</application> | ||
|
||
</manifest> | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/** Automatically generated file. DO NOT MODIFY */ | ||
package acessor.droidfrida; | ||
|
||
public final class BuildConfig { | ||
public final static boolean DEBUG = true; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* AUTO-GENERATED FILE. DO NOT MODIFY. | ||
* | ||
* This class was automatically generated by the | ||
* aapt tool from the resource data it found. It | ||
* should not be modified by hand. | ||
*/ | ||
|
||
package acessor.droidfrida; | ||
|
||
public final class R { | ||
public static final class array { | ||
public static final int js_options=0x7f060000; | ||
public static final int offline_scripts=0x7f060001; | ||
} | ||
public static final class attr { | ||
} | ||
public static final class drawable { | ||
public static final int border_a=0x7f020000; | ||
public static final int border_b=0x7f020001; | ||
public static final int button=0x7f020002; | ||
public static final int open_icon=0x7f020003; | ||
public static final int save_icon=0x7f020004; | ||
} | ||
public static final class id { | ||
public static final int codeTab=0x7f080001; | ||
public static final int editorTabPanel=0x7f080005; | ||
public static final int jsOptionMenu=0x7f080007; | ||
public static final int ouputTabPanel=0x7f080008; | ||
public static final int outputLog=0x7f080009; | ||
public static final int outputTab=0x7f080002; | ||
public static final int pkgName=0x7f080000; | ||
public static final int scriptInput=0x7f080006; | ||
public static final int scriptsList=0x7f08000b; | ||
public static final int scriptsTab=0x7f080003; | ||
public static final int scriptsTabPanel=0x7f08000a; | ||
public static final int settingsTab=0x7f080004; | ||
public static final int settingsTabPanel=0x7f08000c; | ||
} | ||
public static final class layout { | ||
public static final int item=0x7f040000; | ||
public static final int main=0x7f040001; | ||
} | ||
public static final class mipmap { | ||
public static final int ic_launcher=0x7f030000; | ||
} | ||
public static final class string { | ||
public static final int app_name=0x7f050000; | ||
} | ||
public static final class style { | ||
public static final int AppTheme=0x7f070000; | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
const commonPaths = [ | ||
"/data/local/bin/su", | ||
"/data/local/su", | ||
"/data/local/xbin/su", | ||
"/dev/com.koushikdutta.superuser.daemon/", | ||
"/sbin/su", | ||
"/system/app/Superuser.apk", | ||
"/system/bin/failsafe/su", | ||
"/system/bin/su", | ||
"/su/bin/su", | ||
"/system/etc/init.d/99SuperSUDaemon", | ||
"/system/sd/xbin/su", | ||
"/system/xbin/busybox", | ||
"/system/xbin/daemonsu", | ||
"/system/xbin/su", | ||
"/system/sbin/su", | ||
"/vendor/bin/su", | ||
"/cache/su", | ||
"/data/su", | ||
"/dev/su", | ||
"/system/bin/.ext/su", | ||
"/system/usr/we-need-root/su", | ||
"/system/app/Kinguser.apk", | ||
"/data/adb/magisk", | ||
"/sbin/.magisk", | ||
"/cache/.disable_magisk", | ||
"/dev/.magisk.unblock", | ||
"/cache/magisk.log", | ||
"/data/adb/magisk.img", | ||
"/data/adb/magisk.db", | ||
"/data/adb/magisk_simple", | ||
"/init.magisk.rc", | ||
"/system/xbin/ku.sud" | ||
]; | ||
|
||
const ROOTmanagementApp = [ | ||
"com.noshufou.android.su", | ||
"com.noshufou.android.su.elite", | ||
"eu.chainfire.supersu", | ||
"com.koushikdutta.superuser", | ||
"com.thirdparty.superuser", | ||
"com.yellowes.su", | ||
"com.koushikdutta.rommanager", | ||
"com.koushikdutta.rommanager.license", | ||
"com.dimonvideo.luckypatcher", | ||
"com.chelpus.lackypatch", | ||
"com.ramdroid.appquarantine", | ||
"com.ramdroid.appquarantinepro", | ||
"com.topjohnwu.magisk" | ||
]; | ||
|
||
|
||
|
||
function stackTraceHere(isLog){ | ||
var Exception = Java.use('java.lang.Exception'); | ||
var Log = Java.use('android.util.Log'); | ||
var stackinfo = Log.getStackTraceString(Exception.$new()) | ||
if(isLog){ | ||
console.log(stackinfo) | ||
}else{ | ||
return stackinfo | ||
} | ||
} | ||
|
||
function stackTraceNativeHere(isLog){ | ||
var backtrace = Thread.backtrace(this.context, Backtracer.ACCURATE) | ||
.map(DebugSymbol.fromAddress) | ||
.join("\n\t"); | ||
console.log(backtrace) | ||
} | ||
|
||
|
||
function bypassJavaFileCheck(){ | ||
var UnixFileSystem = Java.use("java.io.UnixFileSystem") | ||
UnixFileSystem.checkAccess.implementation = function(file,access){ | ||
|
||
var stack = stackTraceHere(false) | ||
|
||
const filename = file.getAbsolutePath(); | ||
|
||
if (filename.indexOf("magisk") >= 0) { | ||
console.log("Anti Root Detect - check file: " + filename) | ||
return false; | ||
} | ||
|
||
if (commonPaths.indexOf(filename) >= 0) { | ||
console.log("Anti Root Detect - check file: " + filename) | ||
return false; | ||
} | ||
|
||
return this.checkAccess(file,access) | ||
} | ||
} | ||
|
||
function bypassNativeFileCheck(){ | ||
var fopen = Module.findExportByName("libc.so","fopen") | ||
Interceptor.attach(fopen,{ | ||
onEnter:function(args){ | ||
this.inputPath = args[0].readUtf8String() | ||
}, | ||
onLeave:function(retval){ | ||
if(retval.toInt32() != 0){ | ||
if (commonPaths.indexOf(this.inputPath) >= 0) { | ||
console.log("Anti Root Detect - fopen : " + this.inputPath) | ||
retval.replace(ptr(0x0)) | ||
} | ||
} | ||
} | ||
}) | ||
|
||
var access = Module.findExportByName("libc.so","access") | ||
Interceptor.attach(access,{ | ||
onEnter:function(args){ | ||
this.inputPath = args[0].readUtf8String() | ||
}, | ||
onLeave:function(retval){ | ||
if(retval.toInt32()==0){ | ||
if(commonPaths.indexOf(this.inputPath) >= 0){ | ||
console.log("Anti Root Detect - access : " + this.inputPath) | ||
retval.replace(ptr(-1)) | ||
} | ||
} | ||
} | ||
}) | ||
} | ||
|
||
function setProp(){ | ||
var Build = Java.use("android.os.Build") | ||
var TAGS = Build.class.getDeclaredField("TAGS") | ||
TAGS.setAccessible(true) | ||
TAGS.set(null,"release-keys") | ||
|
||
var FINGERPRINT = Build.class.getDeclaredField("FINGERPRINT") | ||
FINGERPRINT.setAccessible(true) | ||
FINGERPRINT.set(null,"google/crosshatch/crosshatch:10/QQ3A.200805.001/6578210:user/release-keys") | ||
|
||
// Build.deriveFingerprint.inplementation = function(){ | ||
// var ret = this.deriveFingerprint() //该函数无法通过反射调用 | ||
// console.log(ret) | ||
// return ret | ||
// } | ||
|
||
var system_property_get = Module.findExportByName("libc.so", "__system_property_get") | ||
Interceptor.attach(system_property_get,{ | ||
onEnter(args){ | ||
this.key = args[0].readCString() | ||
this.ret = args[1] | ||
}, | ||
onLeave(ret){ | ||
if(this.key == "ro.build.fingerprint"){ | ||
var tmp = "google/crosshatch/crosshatch:10/QQ3A.200805.001/6578210:user/release-keys" | ||
var p = Memory.allocUtf8String(tmp) | ||
Memory.copy(this.ret,p,tmp.length+1) | ||
} | ||
} | ||
}) | ||
|
||
} | ||
|
||
//android.app.PackageManager | ||
function bypassRootAppCheck(){ | ||
var ApplicationPackageManager = Java.use("android.app.ApplicationPackageManager") | ||
ApplicationPackageManager.getPackageInfo.overload('java.lang.String', 'int').implementation = function(str,i){ | ||
// console.log(str) | ||
if (ROOTmanagementApp.indexOf(str) >= 0) { | ||
console.log("Anti Root Detect - check package : " + str) | ||
str = "ashen.one.ye.not.found" | ||
} | ||
return this.getPackageInfo(str,i) | ||
} | ||
|
||
//shell pm check | ||
} | ||
|
||
function bypassShellCheck(){ | ||
var String = Java.use('java.lang.String') | ||
|
||
var ProcessImpl = Java.use("java.lang.ProcessImpl") | ||
ProcessImpl.start.implementation = function(cmdarray,env,dir,redirects,redirectErrorStream){ | ||
|
||
if(cmdarray[0] == "mount"){ | ||
console.log("Anti Root Detect - Shell : " + cmdarray.toString()) | ||
arguments[0] = Java.array('java.lang.String',[String.$new("")]) | ||
return ProcessImpl.start.apply(this,arguments) | ||
} | ||
|
||
if(cmdarray[0] == "getprop"){ | ||
console.log("Anti Root Detect - Shell : " + cmdarray.toString()) | ||
const prop = [ | ||
"ro.secure", | ||
"ro.debuggable" | ||
]; | ||
if(prop.indexOf(cmdarray[1]) >= 0){ | ||
arguments[0] = Java.array('java.lang.String',[String.$new("")]) | ||
return ProcessImpl.start.apply(this,arguments) | ||
} | ||
} | ||
|
||
if(cmdarray[0].indexOf("which") >= 0){ | ||
const prop = [ | ||
"su" | ||
]; | ||
if(prop.indexOf(cmdarray[1]) >= 0){ | ||
console.log("Anti Root Detect - Shell : " + cmdarray.toString()) | ||
arguments[0] = Java.array('java.lang.String',[String.$new("")]) | ||
return ProcessImpl.start.apply(this,arguments) | ||
} | ||
} | ||
|
||
return ProcessImpl.start.apply(this,arguments) | ||
} | ||
} | ||
|
||
|
||
console.log("Attach") | ||
bypassNativeFileCheck() | ||
bypassJavaFileCheck() | ||
setProp() | ||
bypassRootAppCheck() | ||
bypassShellCheck() | ||
|
Oops, something went wrong.