gpt4 book ai didi

java - 如何反编译带有加密类的.jar程序

转载 作者:行者123 更新时间:2023-12-02 03:07:00 26 4
gpt4 key购买 nike

我将破解一些 Java 应用程序以供娱乐并检查我的知识。如何反编译带有加密类的java文件?当代码全部加密时,我无法更改代码中的任何内容。

这是一个 Java Minecraft 被黑的客户端。我尝试用 Procoyn 反编译代码,但我只得到一些加密的东西,我尝试使用一些 java 文件编辑工具,比如 JByteEdit。它不起作用。我看到有类似 Java 类加载器的东西,但我不知道该怎么做。

您可以查看 Procoyn 反编译的某个类的代码(代码太长放在最后)

我原本以为会有解密的、完全访问的程序,但突然间,它没有。很多类没有编译,并且 Procoyn 使用 ByteCode 时会出现错误。我希望得到帮助。请记住,我这样做只是为了教育目的!

import java.lang.reflect.InvocationTargetException;
import java.io.InputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.File;
import org.apache.commons.codec.binary.Base64;

//
// Decompiled by Procyon v0.5.36
//

public class LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6 extends ClassLoader
{
private static byte[] bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p;
private static String bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p;
private static byte[] pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA;
private static String pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA;
private static byte[] h5jnE5RIDtCU6wzKGrfY1VlOqlMNMrCVdBvTAcSl5icuYelq4dVOxX7SKtzudapLCTwPsWDGbhstDNhrEA8mU6kGqNYFansglIw49HHl6hotlC5GJA26ImHFMtlazrXHdl1i5KdQVlhCXJgmpeL21QqDCuJ2rbhChafPYzIpIEfNjpbyJSnKlwhq3McB0Fa1KN561vBq;
private static String h5jnE5RIDtCU6wzKGrfY1VlOqlMNMrCVdBvTAcSl5icuYelq4dVOxX7SKtzudapLCTwPsWDGbhstDNhrEA8mU6kGqNYFansglIw49HHl6hotlC5GJA26ImHFMtlazrXHdl1i5KdQVlhCXJgmpeL21QqDCuJ2rbhChafPYzIpIEfNjpbyJSnKlwhq3McB0Fa1KN561vBq;
private static byte[] nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1;
private static byte[] w3xPoy6QBD37AzI0GrtrAQaXtCMN9C0SzeGLhyUzYRZPTIoiotC8LuZ9XvYUk2JG91VeFCCQfEjVoX1ZBVSFBhRMBHJeEbIJX2LUoovR7wzpe8JOspBuuvd0ZT8aYPYFmqCXyxI4pKDk52fosYnl8TqKqgqCIi17mYAKdH2nFH1tfvgDTuCwxcSj7iZVMQ0nCvyEBNup;
private static String nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1;

public static void main(final String[] array) {
new LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6().bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(array);
}

public LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6() {
super(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51Bi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ZPTIoiotC8LuZ9XvYUk2JG91VeFCCQfEjVoX1ZBVSFBhRMBHJeEbIJX2LUoovR7wzpe8JOspBuuvd0ZT8aYPYFmqCXyxI4pKDk52fosYnl8TqKqgqCIi17mYAKdH2nFH1tfvgDTuCwxcSj7iZVMQ0nCvyEBNup);
}

@Override
public Class loadClass(String s) {
if (s.length() == 200 && s.matches(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p)) {
return this.bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(s);
}
if (s.contains(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1)) {
final String[] split = s.split(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1);
s = split[0];
return this.bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(s, Base64.decodeBase64(split[1]));
}
return super.loadClass(s);
}

private Class bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(final String s) {
Class<?> clazz = null;
synchronized (this.getClassLoadingLock(s)) {
clazz = this.findLoadedClass(s);
if (clazz == null) {
final String string = s.replace('.', File.separatorChar) + '.' + 'c' + 'l' + 'a' + 's' + 's';
try {
final byte[] bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p = this.bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(string);
boolean b = false;
for (int n = 0; n < bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p.length && n < LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1.length; ++n) {
if (bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p[n] != LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1[n]) {
b = true;
}
}
if (b) {
for (int i = 0; i < bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p.length; ++i) {
final byte[] array = bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p;
final int n2 = i;
array[n2] += (byte)(i % 2 * 128 + i);
}
clazz = this.defineClass(s, bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p, 0, bjp9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p.length);
this.resolveClass(clazz);
}
}
catch (IOException ex) {
ex.printStackTrace();
}
}
}
if (clazz == null) {
System.err.println(s);
}
return (clazz == null) ? super.loadClass(s) : clazz;
}

private Class bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(final String s, final byte[] array) {
Class<?> clazz = null;
synchronized (this.getClassLoadingLock(s)) {
clazz = this.findLoadedClass(s);
if (clazz == null) {
boolean b = false;
for (int n = 0; n < array.length && n < LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1.length; ++n) {
if (array[n] != LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.nkhV5wzMeIJCxDePgYQyyJ4cTmRDA6o55WS4yhexlKs4sHaYujEgPAde9D8Bz14Ccqu1bpt8rBMYSpZu5co3DiEPpnfUxMm0i0XDUjtHnGfEK0YVaaK4ycnUmcZ7Mn1bP1NrL71LAqPleM8xZMGrhG9LOt04xSDVfn8mnONLcQaXyRUdb6kcQot7FNf90Zr34y7Vcnu1[n]) {
b = true;
}
}
if (b) {
for (int i = 0; i < array.length; ++i) {
final int n2 = i;
array[n2] += (byte)(i % 2 * 128 + i);
}
}
clazz = this.defineClass(s, array, 0, array.length);
this.resolveClass(clazz);
}
}
if (clazz == null) {
System.err.println(s);
}
return clazz;
}

private byte[] bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(final String s) {
final InputStream resourceAsStream = this.getClass().getClassLoader().getResourceAsStream(s);
final byte[] array = new byte[resourceAsStream.available()];
final DataInputStream dataInputStream = new DataInputStream(resourceAsStream);
dataInputStream.readFully(array);
dataInputStream.close();
return array;
}

private void bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p(final String[] array) {
try {
this.loadClass(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA).getMethod(LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.h5jnE5RIDtCU6wzKGrfY1VlOqlMNMrCVdBvTAcSl5icuYelq4dVOxX7SKtzudapLCTwPsWDGbhstDNhrEA8mU6kGqNYFansglIw49HHl6hotlC5GJA26ImHFMtlazrXHdl1i5KdQVlhCXJgmpeL21QqDCuJ2rbhChafPYzIpIEfNjpbyJSnKlwhq3McB0Fa1KN561vBq, new String[0].getClass()).invoke(null, array);
}
catch (ClassNotFoundException ex) {
ex.printStackTrace();
}
catch (NoSuchMethodException ex2) {
ex2.printStackTrace();
}
catch (IllegalAccessException ex3) {
ex3.printStackTrace();
}
catch (InvocationTargetException ex4) {
ex4.printStackTrace();
}
}

static {
LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.bJP9cyw82vHp6JDwHxyLheQFUJVHZlLTGMKVrx3BXcBycmJTCTSIMwRKy3dqd58pg4cXalVXkCp9uk4M4WuhyJQXmOl2LhDtrteGturrskix48teJ0LhzlwwTxYTzG7YTuM7wYpyFQioEmLbbtftxI3hwoUjsi2kdXMRyDQHm6dW9bxVMs45lUb5rc1AkQLgf9GpzD7p = new byte[] { 91, 65, 45, 90, 97, 45, 122, 48, 45, 57, 93, 123, 50, 48, 48, 125 };
LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA = new byte[] { 103, 51, 67, 115, 104, 77, 99, 56, 66, 116, 66, 115, 100, 77, 104, 87, 106, 49, 100, 105, 57, 49, 69, 86, 53, 111, 57, 79, 98, 102, 115, 78, 99, 66, 119, 113, 100, 73, 86, 121, 99, 74, 110, 118, 80, 102, 53, 56, 87, 75, 105, 88, 72, 99, 52, 73, 108, 55, 67, 89, 83, 81, 111, 74, 75, 98, 89, 80, 80, 81, 67, 71, 55, 74, 113, 75, 74, 49, 66, 51, 113, 120, 114, 91, 114, 67, 106, 104, 113, 74, 70, 108, 100, 98, 73, 87, 74, 67, 51, 106, 57, 113, 70, 104, 69, 70, 77, 91, 108, 73, 106, 85, 104, 52, 115, 86, 108, 67, 55, 98, 114, 113, 84, 106, 91, 52, 98, 100, 105, 119, 76, 53, 106, 106, 52, 51, 77, 73, 118, 120, 85, 122, 56, 119, 75, 103, 118, 118, 99, 121, 84, 72, 100, 105, 114, 101, 50, 50, 108, 99, 71, 87, 83, 72, 82, 83, 105, 104, 98, 87, 90, 118, 109, 71, 86, 70, 57, 66, 57, 88, 106, 82, 79, 67, 112, 50, 100, 122, 84, 67, 78, 106, 109, 75, 75, 99, 89, 105, 87, 117 };
LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.h5jnE5RIDtCU6wzKGrfY1VlOqlMNMrCVdBvTAcSl5icuYelq4dVOxX7SKtzudapLCTwPsWDGbhstDNhrEA8mU6kGqNYFansglIw49HHl6hotlC5GJA26ImHFMtlazrXHdl1i5KdQVlhCXJgmpeL21QqDCuJ2rbhChafPYzIpIEfNjpbyJSnKlwhq3McB0Fa1KN561vBq = new byte[] { 109, 97, 105, 110 };
LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5X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AF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA.length; ++i) {
final byte[] pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA = LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ2Av1BanS6.pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA;
final int n = i;
--pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA[n];
}
}
}

最佳答案

所有非常长的名称(例如pqqM0yPxa7I53aMzRamSJKJi4VhifBOuy7HwXxw2FGvdbyDfbvCZ2GDWXrggrx2bJYi3q3WCWPJTsloDlLfHD2jn6QVTyArTvGApvwJ5qK6znGDggYh5YvO1KOy8V ymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA)就是它们;他们的真实名字已经从 jar 里完全消失了。您可以对任何给定名称进行全局搜索替换,以将其替换为稍微更有用的名称。没有什么比 Proyon 为您所做的更好的了。

这段代码描述了一个非常糟糕的“加密”算法。因此,类文件是“加密的”,因此 procyon 无法反编译它们。解密算法很简单;您的第一步是对其进行逆向工程。

在此代码中:

boolean b = false;
for (int n = 0; n < array.length && n < v1.v2.length; ++n) {
if (array[n] != v1.v2[n]) {
b = true;
}
}

if (b) {
for (int i = 0; i < array.length; ++i) {
final int n2 = i;
array[n2] += (byte)(i % 2 * 128 + i);
}
}

我用 v1v2 替换了 2 个很长的名称,以使此代码更具可读性。它所做的就是首先确定这个类是否是“加密”的(这就是第一位的含义:如果是的话,它会将 b 设置为 true),然后对其进行“解密”,使用如此简单的算法,如果您无法解决这个问题,我认为您绝对应该得出结论,这超出了您当前的技能水平。

请注意,在 java 中,数字会自动溢出。因此,对于字节来说,例如 127 + 5 会变成 -124。尽管如此,要撤消“将数字加 5”,它仍然只是“从数字中减去 5”,因为溢出是双向的。

关于java - 如何反编译带有加密类的.jar程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57018669/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com