Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.FileInputStream;
- import java.io.ObjectInputStream;
- import java.security.MessageDigest;
- import java.util.HashMap;
- public class GetDBKey {
- public static void main(String[] var0) {
- try {
- ObjectInputStream var1 = new ObjectInputStream(new FileInputStream("CompatibleInfo.cfg"));
- Object var2 = var1.readObject();
- HashMap var3 = (HashMap)var2;
- String var4 = String.valueOf(var3.get(258));
- System.out.println("IMEI:" + var4);
- ObjectInputStream var5 = new ObjectInputStream(new FileInputStream("systemInfo.cfg"));
- Object var6 = var5.readObject();
- HashMap var7 = (HashMap)var6;
- String var8 = String.valueOf(var7.get(1));
- System.out.println("uin:" + var8);
- var4 = var4 + var8;
- var4 = encode(var4);
- System.out.println("密码是 : " + var4.substring(0, 7));
- var1.close();
- var5.close();
- } catch (Exception var9) {
- var9.printStackTrace();
- }
- }
- public static String encode(String var0) {
- try {
- MessageDigest var1 = MessageDigest.getInstance("MD5");
- var1.update(var0.getBytes());
- return getEncode32(var1);
- } catch (Exception var2) {
- var2.printStackTrace();
- return null;
- }
- }
- private static String getEncode32(MessageDigest var0) {
- StringBuilder var1 = new StringBuilder();
- byte[] var2 = var0.digest();
- int var3 = var2.length;
- for(int var4 = 0; var4 < var3; ++var4) {
- byte var5 = var2[var4];
- var1.append(Integer.toHexString(var5 >> 4 & 15));
- var1.append(Integer.toHexString(var5 & 15));
- }
- return var1.toString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement