本项目演示了 MT 去除签名校验功能的原理,以及它的一种对抗方式。
l-jinbin / apksignaturekillerex Goto Github PK
View Code? Open in Web Editor NEW新版MT去签及对抗
新版MT去签及对抗
Trace:
java.lang.RuntimeException: Unable to get provider com.deploygate.sdk.DeployGateProvider: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at android.app.ActivityThread.installProvider(ActivityThread.java:7823)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:7329)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7065)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2207)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8247)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
Caused by: java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at cc.binmt.signature.PmsHookApplication.invoke(PmsHookApplication.java:37)
at java.lang.reflect.Proxy.invoke(Proxy.java:1006)
at $Proxy3.getPackageInfo(Unknown Source)
at android.content.pm.PackageManager.getPackageInfoAsUserUncached(PackageManager.java:10499)
at android.content.pm.PackageManager.-$$Nest$smgetPackageInfoAsUserUncached(Unknown Source:0)
at android.content.pm.PackageManager$2.recompute(PackageManager.java:10512)
at android.content.pm.PackageManager$2.recompute(PackageManager.java:10509)
at android.app.PropertyInvalidatedCache.query(PropertyInvalidatedCache.java:939)
at android.content.pm.PackageManager.getPackageInfoAsUserCached(PackageManager.java:10526)
at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:249)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:214)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:208)
at com.deploygate.sdk.DeployGate.getDeployGatePackageSignature(Unknown Source:11)
at com.deploygate.sdk.DeployGate.isDeployGateAvailable(Unknown Source:0)
at com.deploygate.sdk.DeployGate.initService(Unknown Source:0)
at com.deploygate.sdk.DeployGate.(Unknown Source:46)
at com.deploygate.sdk.DeployGate.install(Unknown Source:43)
at com.deploygate.sdk.DeployGate.install(Unknown Source:1)
at com.deploygate.sdk.DeployGateProvider.onCreate(Unknown Source:14)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2468)
at android.content.ContentProvider.attachInfo(ContentProvider.java:2433)
at android.app.ActivityThread.installProvider(ActivityThread.java:7818)
... 11 more
I'm on most recently MT Manager BETA (2.13.1 beta) , and crash occurs as the past version.
When I check the KillSignature smali code, it doesn't have the changes you made here on github (getDataFile)
The way the improved version of Signature Verification works is ingenious, but it has some issues.
When the user performs some modifications in the apps, their size is increased, more and more, because with each modification more data is changed, and ApkDataMultiplexing stops being very effective.
I don't do this because this part isn't available on github, but I suggest you try to remove all the assets/SignatureKiller/origin.apk files, except the first classes.dex, and obviously META INF
I tried this with SignatureKillerEx apk from this repo, and it worked
大佬,请问
为什么在 BuildVariant
为 release
时, 把这段代码注释掉:
// openat.c:63
// __android_log_print(ANDROID_LOG_INFO, "openAt", "path=%s", p);
openAt 就返回 -14,导致后面异常。(排查了好久😭
需要升级"APK共存"现在大部分软件会检查包名被更改,所以希望能加入并去除包名检测校验
开放sqlite数据库修改功能,有时候我们需要修改.db文件
I got an error with activity no matter if enhanced on or off. this does not happen with other sig killers. I'm using MT 2.12.4
``
01-11 20:58:50.227 W/System.err( 4496): Load SignatureKiller library failed
01-11 20:58:50.362 D/AndroidRuntime( 4496): Shutting down VM
01-11 20:58:50.362 E/AndroidRuntime( 4496): FATAL EXCEPTION: main
01-11 20:58:50.362 E/AndroidRuntime( 4496): Process: com.bhvr.beyondthewall, PID: 4496
01-11 20:58:50.362 E/AndroidRuntime( 4496): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.bhvr.beyondthewall/com.bhvr.beyondthewall.Main}: java.lang.ClassNotFoundException: Didn't find class "com.bhvr.beyondthewall.Main" on path: DexPathList[[zip file "/data/app/com.bhvr.beyondthewall-1/base.apk"],nativeLibraryDirectories=[/data/app/com.bhvr.beyondthewall-1/lib/arm, /data/app/com.bhvr.beyondthewall-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2568)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread.-wrap12(ActivityThread.java)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.os.Handler.dispatchMessage(Handler.java:102)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.os.Looper.loop(Looper.java:154)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread.main(ActivityThread.java:6121)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at java.lang.reflect.Method.invoke(Native Method)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
01-11 20:58:50.362 E/AndroidRuntime( 4496): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.bhvr.beyondthewall.Main" on path: DexPathList[[zip file "/data/app/com.bhvr.beyondthewall-1/base.apk"],nativeLibraryDirectories=[/data/app/com.bhvr.beyondthewall-1/lib/arm, /data/app/com.bhvr.beyondthewall-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
01-11 20:58:50.362 E/AndroidRuntime( 4496): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
01-11 20:58:50.362 E/AndroidRuntime( 4496): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2558)
01-11 20:58:50.362 E/AndroidRuntime( 4496): ... 9 more
01-11 20:58:50.365 W/ActivityManager( 516): Force finishing activity com.bhvr.beyondthewall/.Main
Can you make a documentation how to implement signature killer to the APK? I compiled the source then decompiled it using apktool successfully but I'm not sure how to implement it to APK afterwards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.