cake.apk
一般情况下就是开始源码分析,再结合smali代码
查看特征
从入口函数中的onCreate开始分析
1.开始分析关键check方法
2.测试代码
破解idea:https://www.cnblogs.com/horvey/p/12247079.html
package com.company;
public class Main {
public static String getKey() {
return "bobdylan";
}
public static void main(String[] args) {
int i = 0;
String str2 = getKey();
int[] iArr = new int[16];
iArr[0] = 0;
iArr[12] = 14;
iArr[10] = 7;
iArr[14] = 15;
iArr[15] = 42;
try {
iArr[1] = 3;
iArr[5] = 5;
System.out.println();
} catch (Exception e2) {
iArr[5] = 37;
iArr[1] = 85;
}
iArr[6] = 15;
iArr[2] = 13;
iArr[3] = 19;
iArr[11] = 68;
iArr[4] = 85;
iArr[13] = 5;
iArr[9] = 7;
iArr[7] = 78;
iArr[8] = 22;
char pass[] = new char[16];
for (int j = 0;j< 16 ;j++) {
char ch = str2.charAt(j % str2.length());
char ch1=(char)(iArr[j]& 255);
pass[j]=(char)(ch1 ^ ch);
}
System.out.println(pass);
}
}