*信bA0 6.1.1 hook
【摘要】 反编译:frida hook:function showStacks() { Java.perform(function () { send(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new())); });}Java.perform(funct...
反编译:
frida hook:
function showStacks() { Java.perform(function () { send(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new())); }); } Java.perform(function () { console.log('start'); var MessageUtil = Java.use('com.MessageUtil'); var iv = MessageUtil.getIV(); var key = MessageUtil.getKey(); console.log("key,iv: ", key, iv); var CryptoTool = Java.use('com.xxxxx.CryptoTool'); \\ 隐去部分包名 CryptoTool.aesEncrypt.overload('java.lang.String').implementation = function (v1) { console.log("aesEncrypt: ", v1); var result = this.aesEncrypt(v1); console.log("aesEncrypt result: ", result); return result; }; CryptoTool.aesDecrypt.overload('java.lang.String', 'java.lang.String', 'java.lang.String').implementation = function () { // showStacks(); for(var i=0;i<arguments.length;i++){ console.log("aesDecrypt v" + i + ": ", arguments[i]); } var result = this.aesDecrypt.apply(this, arguments); console.log("result: ", result); return result; } });
frida hook result:
java 还原:
Common.java:
package text_aes; public class Common { public static String byte2hex(byte[] p0) { String v3; String v0 = ""; int v1 = 0; String v2 = v0; while ((v1 < p0.length)) { v3 = Integer.toHexString((p0[v1]&0x00ff)); if (v3.length() == 1) { v2 = new StringBuilder().append(v2).append("0").append(v3).toString(); }else { v2 = new StringBuilder().append(v2).append(v3).toString(); } if (v1 < (p0.length-1)) { v2 = new StringBuilder().append(v2).append(v0).toString(); } v1++; } return v2.toUpperCase(); } public static byte[] hex2byte(String p0) { byte[] v1; int v2; int v3; int v0 = p0.length()/2; v1 = new byte[v0]; v2 = 0; while ((v2 < v0)) { v3 = v2*2; v1[v2]=Integer.valueOf(p0.substring(v3, (v3+2)), 16).byteValue(); v2++; } return v1; } }
Test.java:
package text_aes; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import java.util.Base64; public class Test { private static String Encrypt(String sSrc, String sKey, String siv) throws Exception { SecretKeySpec skeySpec = new SecretKeySpec(Common.hex2byte(sKey), "AES"); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); IvParameterSpec iv = new IvParameterSpec(Common.hex2byte(siv)); cipher.init(Cipher.ENCRYPT_MODE, skeySpec, iv); byte[] encrypted = cipher.doFinal(sSrc.getBytes()); Base64.Encoder encoder = Base64.getEncoder(); return encoder.encodeToString(encrypted); } private static String Decrypt(String sSrc, String sKey, String siv) throws Exception { try { SecretKeySpec skeySpec = new SecretKeySpec(Common.hex2byte(sKey), "AES"); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); IvParameterSpec iv = new IvParameterSpec(Common.hex2byte(siv)); cipher.init(Cipher.DECRYPT_MODE, skeySpec, iv); Base64.Decoder decoder = Base64.getDecoder(); byte[] encrypted1 = decoder.decode(sSrc); try { byte[] original = cipher.doFinal(encrypted1); return new String(original); } catch (Exception e) { System.out.println(e.toString()); return null; } } catch (Exception ex) { System.out.println(ex.toString()); return null; } } public static void main(String[] args) { try { String r = Encrypt("阿里巴巴SN-758f9a95F6A0CED420F3443DB7AB651CF8A42C88", "05445EDBE3944E27A35D808714687DDF", "E85002A7CD83472BBE438751C3E12D5B"); System.out.println("加密:" + r); String result = "N+x5thyxjjqOE2fonJIE0iYmCYt934Yuvzew0qIyz4ZrTgQMHk884/HfyJ9qc6rnS5/wj/UstPfN+DqLK5AbUwGC26OnQ/mDFHoqpcJ8xcBAD187x98j20RDDOfUvKoqF8x3HWfVvXB+ZnuDPzT9rZx98tYCraW8oIBe2e0FppZ750Y30w56ASHk9REfTQGRbjy9n3rRxZ2EiBAjh33Pg3OvNdAWcknPEstkvixkTv7Cixwv63B8y/4oGt9QUBolohO/+zEn+AeiVzKlJYjjz8x+HgjYzRUu36+eqRMQKoNR/i+CH8p5pG+f9pjZaQAf5SQBQR6gP3+Nl7KfJaDJkXvCJ5dlgLtDzcLBAu2eS9VIwQ+xZkYB+85B+GZLj30YUZB4tTONryYCT1DCbG3oBa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AOI1qZguZ2Q/9ldt9+7PgrIZYiXqLRjMZmlYar1hMxXXjnyaDWT8a3Z3lGiTWhJswu2u1aNLrmLOpiMyAAUQ829NG9guR5kzKeA7BfON7ubINQ/fX9orSfwUB/Yy2WixyeJu6xWn+IkMP0NmTU9oH0X9SipFrP7zg5ubStf2KTrpXWdq2guj5psw5ooY9aTPyqGBwkrhgxqFbwy5MO2CU4Z3C+0pzZyRdDZlfX3ExdMUhcaQ7z4OTZ8vn/5IJRN1+D+n8LZ2O5haZEK+/nHyp7XOrA73UFRGqcZZlrCyxTVMZ3BBJTMZztgEdEu7Iz2vFMs45YPIt4MVdGVv33ilz/4L8jY5j8oV2MFvP2IpDRSl5hpXyW6bF1Z1EKGPWEHisOufUmd8pO2GcxH+RqBBWnbEYJSRg48n+wo01PN5BtP3NQ8M4jjASksmpg2qO4b5EZ19yAOVg4Ehoy+kKwv0hPmyU/UCwncUE2tNM5oCm46e+5sWI/WLoLPNiZ+9Fvm3z6MBHZCc2DfZzyCv/yNgjyAmLo+NMVdqeTD6rNsoLCdsWozE9uqR52iRCcNiIFVoUzC96JIFENQvBH9QPQ=="; String d = Decrypt(result, "15DB6545C5064390BA6EC02ADBEA8897", "E85002A7CD83472BBE438751C3E12D5B"); System.out.println("解密:" + d); } catch (Exception e) { e.printStackTrace(); } } }
java 还原结果:
总结:
这就是那种把 key,iv 放到 native 层的 App。。。有点***,不太好吧。。。
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)