- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我将破解一些 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 LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT8hQ3vzLwbHOAQO3HCdm1HJAPP9IXzmqxh1AheQL46aryCX9g5Xjb718B2N5PzB1PmfbYeRrDmILHmIXwl7CXwXMG6s4UhjY1pN0tPJ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Av1BanS6.w3xPoy6QBD37AzI0GrtrAQaXtCMN9C0SzeGLhyUzYRZPTIoiotC8LuZ9XvYUk2JG91VeFCCQfEjVoX1ZBVSFBhRMBHJeEbIJX2LUoovR7wzpe8JOspBuuvd0ZT8aYPYFmqCXyxI4pKDk52fosYnl8TqKqgqCIi17mYAKdH2nFH1tfvgDTuCwxcSj7iZVMQ0nCvyEBNup);
}
@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 };
LiQCWv2gi5i7ywU3tHTtN85n6hsnavb3KP51BiVEN0BgUYWZDfjcZmFr3T7GmM8usWtYlgcasT0xRpsrzVeJpMLeT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K6znGDggYh5YvO1KOy8VymWTUDNUr87OBMblnxO3PwdZRWlAo71vK6YAF7sZjn7P7ec1RMkHagHffbUaCfc4gmHaADmBoqA.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);
}
}
我用 v1
和 v2
替换了 2 个很长的名称,以使此代码更具可读性。它所做的就是首先确定这个类是否是“加密”的(这就是第一位的含义:如果是的话,它会将 b
设置为 true),然后对其进行“解密”,使用如此简单的算法,如果您无法解决这个问题,我认为您绝对应该得出结论,这超出了您当前的技能水平。
请注意,在 java 中,数字会自动溢出。因此,对于字节来说,例如 127 + 5 会变成 -124。尽管如此,要撤消“将数字加 5”,它仍然只是“从数字中减去 5”,因为溢出是双向的。
关于java - 如何反编译带有加密类的.jar程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57018669/
我正在编写一个具有以下签名的 Java 方法。 void Logger(Method method, Object[] args); 如果一个方法(例如 ABC() )调用此方法 Logger,它应该
我是 Java 新手。 我的问题是我的 Java 程序找不到我试图用作的图像文件一个 JButton。 (目前这段代码什么也没做,因为我只是得到了想要的外观第一的)。这是我的主课 代码: packag
好的,今天我在接受采访,我已经编写 Java 代码多年了。采访中说“Java 垃圾收集是一个棘手的问题,我有几个 friend 一直在努力弄清楚。你在这方面做得怎么样?”。她是想骗我吗?还是我的一生都
我的 friend 给了我一个谜语让我解开。它是这样的: There are 100 people. Each one of them, in his turn, does the following
如果我将使用 Java 5 代码的应用程序编译成字节码,生成的 .class 文件是否能够在 Java 1.4 下运行? 如果后者可以工作并且我正在尝试在我的 Java 1.4 应用程序中使用 Jav
有关于why Java doesn't support unsigned types的问题以及一些关于处理无符号类型的问题。我做了一些搜索,似乎 Scala 也不支持无符号数据类型。限制是Java和S
我只是想知道在一个 java 版本中生成的字节码是否可以在其他 java 版本上运行 最佳答案 通常,字节码无需修改即可在 较新 版本的 Java 上运行。它不会在旧版本上运行,除非您使用特殊参数 (
我有一个关于在命令提示符下执行 java 程序的基本问题。 在某些机器上我们需要指定 -cp 。 (类路径)同时执行java程序 (test为java文件名与.class文件存在于同一目录下) jav
我已经阅读 StackOverflow 有一段时间了,现在我才鼓起勇气提出问题。我今年 20 岁,目前在我的家乡(罗马尼亚克卢日-纳波卡)就读 IT 大学。足以介绍:D。 基本上,我有一家提供簿记应用
我有 public JSONObject parseXML(String xml) { JSONObject jsonObject = XML.toJSONObject(xml); r
我已经在 Java 中实现了带有动态类型的简单解释语言。不幸的是我遇到了以下问题。测试时如下代码: def main() { def ks = Map[[1, 2]].keySet()
一直提示输入 1 到 10 的数字 - 结果应将 st、rd、th 和 nd 添加到数字中。编写一个程序,提示用户输入 1 到 10 之间的任意整数,然后以序数形式显示该整数并附加后缀。 public
我有这个 DownloadFile.java 并按预期下载该文件: import java.io.*; import java.net.URL; public class DownloadFile {
我想在 GUI 上添加延迟。我放置了 2 个 for 循环,然后重新绘制了一个标签,但这 2 个 for 循环一个接一个地执行,并且标签被重新绘制到最后一个。 我能做什么? for(int i=0;
我正在对对象 Student 的列表项进行一些测试,但是我更喜欢在 java 类对象中创建硬编码列表,然后从那里提取数据,而不是连接到数据库并在结果集中选择记录。然而,自从我这样做以来已经很长时间了,
我知道对象创建分为三个部分: 声明 实例化 初始化 classA{} classB extends classA{} classA obj = new classB(1,1); 实例化 它必须使用
我有兴趣使用 GPRS 构建车辆跟踪系统。但是,我有一些问题要问以前做过此操作的人: GPRS 是最好的技术吗?人们意识到任何问题吗? 我计划使用 Java/Java EE - 有更好的技术吗? 如果
我可以通过递归方法反转数组,例如:数组={1,2,3,4,5} 数组结果={5,4,3,2,1}但我的结果是相同的数组,我不知道为什么,请帮助我。 public class Recursion { p
有这样的标准方式吗? 包括 Java源代码-测试代码- Ant 或 Maven联合单元持续集成(可能是巡航控制)ClearCase 版本控制工具部署到应用服务器 最后我希望有一个自动构建和集成环境。
我什至不知道这是否可能,我非常怀疑它是否可能,但如果可以,您能告诉我怎么做吗?我只是想知道如何从打印机打印一些文本。 有什么想法吗? 最佳答案 这里有更简单的事情。 import javax.swin
我是一名优秀的程序员,十分优秀!