Java.perform(functionx() { // Function to hook is defined here var UtiEncrypt = Java.use('com.bianlidai123.bc.encrypt.UtiEncrypt');
// Whenever button is clicked UtiEncrypt.decryptAES.overload('java.lang.String').implementation = function (arg1) { // Show a message to know that the function got called
var sign=this.decryptAES(arg1); send("arg1:"+arg1); send("sign:"+sign); return sign; }; var Cipher = Java.use('javax.crypto.Cipher'); Cipher.getInstance.overload('java.lang.String').implementation = function (arg1) { var sign2=this.getInstance(arg1); send("Instance:"+arg1); return sign2; };
var SecretKeySpec = Java.use('javax.crypto.spec.SecretKeySpec'); SecretKeySpec.$init.overload('[B', 'java.lang.String').implementation = function (arg1,arg2) { hexstr=""; for (i=0;i<arg1.length;i++) { b=(arg1[i]>>>0)&0xff; n=b.toString(16); hexstr += ("00" + n).slice(-2)+" "; } send("Key: " + hexstr); //send("init1:"+arg1+arg2); returnthis.$init(arg1,arg2); }; var IvParameterSpec = Java.use('javax.crypto.spec.IvParameterSpec'); IvParameterSpec.$init.overload('[B').implementation = function (arg1) { hexstr=""; for (i=0;i<arg1.length;i++) { b=(arg1[i]>>>0)&0xff; n=b.toString(16); hexstr += ("00" + n).slice(-2)+" "; } send("Iv: " + hexstr); //send("init4:"+arg1); returnthis.$init(arg1); }; });
[*] ====================================== [*] 算法名:AES|Dec密钥:DD240BF148903189BF8DAE0C220C9591 [*] 算法名:AES|Hex密钥:4444323430424631343839303331383942463844414530433232304339353931 [*] java.lang.Exception at javax.crypto.Cipher.getInstance(Native Method) at com.faloo.util.AES.encrypt(Proguard:211) at com.faloo.util.EncryptUtil._e18(Native Method) at com.faloo.util.EncryptUtil.getAESEncrypt(Proguard:150) at com.faloo.network.module.b.a(Proguard:49) at com.faloo.network.util.e.a(Proguard:174) at com.faloo.network.service.a.c.a(Proguard:141) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] 模式填充:AES/CBC/PKCS5Padding [*] java.lang.Exception at javax.crypto.spec.IvParameterSpec.<init>(Native Method) at com.faloo.util.AES.encrypt(Proguard:212) at com.faloo.util.EncryptUtil._e18(Native Method) at com.faloo.util.EncryptUtil.getAESEncrypt(Proguard:150) at com.faloo.network.module.b.a(Proguard:49) at com.faloo.network.util.e.a(Proguard:174) at com.faloo.network.service.a.c.a(Proguard:141) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] iv向量: [*] iv向量(hex):00000000000000000000000000000000 [*] java.lang.Exception at javax.crypto.Cipher.doFinal(Native Method) at com.faloo.util.AES.encrypt(Proguard:213) at com.faloo.util.EncryptUtil._e18(Native Method) at com.faloo.util.EncryptUtil.getAESEncrypt(Proguard:150) at com.faloo.network.module.b.a(Proguard:49) at com.faloo.network.util.e.a(Proguard:174) at com.faloo.network.service.a.c.a(Proguard:141) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] update:@345Kie(873_dfbKe>d3<.d23432=d67d5e705490b20f8d8a3c8731d4c535 [*] java.lang.Exception at java.security.MessageDigest.digest(Native Method) at java.security.MessageDigest.digest(MessageDigest.java:278) at java.security.MessageDigest.digest(Native Method) at com.faloo.network.util.MD5.MD5(Proguard:22) at com.faloo.util.EncryptUtil._e16(Native Method) at com.faloo.util.EncryptUtil.EncryptPwd(Proguard:23) at com.faloo.network.service.a.c.a(Proguard:119) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] update:EW234@![#$&]*{,OP}Kd^w349Op+-32_a1234561578400865589 [*] java.lang.Exception at java.security.MessageDigest.digest(Native Method) at java.security.MessageDigest.digest(MessageDigest.java:278) at java.security.MessageDigest.digest(Native Method) at com.faloo.network.util.MD5.MD5(Proguard:22) at com.faloo.util.EncryptUtil._e16(Native Method) at com.faloo.util.EncryptUtil.EncryptPwd(Proguard:23) at com.faloo.network.service.a.c.a(Proguard:119) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] update:1578400865530 [*] java.lang.Exception at java.security.MessageDigest.digest(Native Method) at org.faloo.app.pay.a.a(Proguard:40) at com.faloo.app.activity.LoginPageActivity.e(Proguard:483) at com.faloo.app.activity.LoginPageActivity.b(Proguard:111) at com.faloo.app.activity.LoginPageActivity$3.a(Proguard:531) at com.faloo.app.activity.LoginPageActivity$3.onNext(Proguard:517) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.drainNormal(Proguard:200) at io.reactivex.internal.operators.observable.ObservableObserveOn$ObserveOnObserver.run(Proguard:252) at io.reactivex.android.b.b$b.run(Proguard:109) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5293) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
[*] ====================================== [*] update:a1f*(DV<>ME29p08adsfKQ@N>FEP*(F&G)&B)R@PVDbvnTPFPSDFQ>QM@o9i8t5P_)(SGB?9c9c5f3bff756cf5395265b6c5f0d8f0fb4f89a9464e3a318111b337f92a9f1c [*] java.lang.Exception at java.security.MessageDigest.digest(Native Method) at java.security.MessageDigest.digest(MessageDigest.java:278) at java.security.MessageDigest.digest(Native Method) at com.faloo.network.util.MD5.MD5(Proguard:22) at com.faloo.util.EncryptUtil._e14(Native Method) at com.faloo.util.EncryptUtil.EncryptRePwd(Proguard:46) at com.faloo.network.service.a.c.a(Proguard:120) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] RSA密钥:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCDiI/dCs429FC75NYnF82omzzAweej2VdpdaKP3DL0D/s3Hg7cnVTGBh6yRrKYI9cvBKorxdrCEaW0SXZYBH5nvmCg8qyzO8jBj08ISiukEQuqG2oS0L2sbcQl0MV7rExsyO0vlPpND7klBWikAIO1UfZW1ab/EWit1XkaXCr6nQIDAQAB [*] java.lang.Exception at javax.crypto.Cipher.getInstance(Native Method) at com.faloo.util.SignUtils.encrypt(Proguard:104) at com.faloo.util.EncryptUtil._e8(Native Method) at com.faloo.util.EncryptUtil.getRSAEncrypt(Proguard:166) at com.faloo.network.module.b.d(Proguard:39) at com.faloo.network.util.e.a(Proguard:101) at com.faloo.network.service.a.c.a(Proguard:141) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)
[*] ====================================== [*] 模式填充:RSA/ECB/PKCS1Padding [*] java.lang.Exception at javax.crypto.Cipher.doFinal(Native Method) at com.faloo.util.SignUtils.encrypt(Proguard:106) at com.faloo.util.EncryptUtil._e8(Native Method) at com.faloo.util.EncryptUtil.getRSAEncrypt(Proguard:166) at com.faloo.network.module.b.d(Proguard:39) at com.faloo.network.util.e.a(Proguard:101) at com.faloo.network.service.a.c.a(Proguard:141) at com.faloo.app.activity.LoginPageActivity$13.a(Proguard:941) at io.reactivex.internal.operators.observable.ObservableCreate.b(Proguard:40) at io.reactivex.e.a(Proguard:11194) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$a.run(Proguard:96) at io.reactivex.k$a.run(Proguard:463) at io.reactivex.internal.schedulers.ScheduledRunnable.run(Proguard:66) at io.reactivex.internal.schedulers.ScheduledRunnable.call(Proguard:57) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:818)