java-deobfuscator / deobfuscator

The real deal
https://javadeobfuscator.com
Apache License 2.0
1.59k stars 294 forks source link

Deobfuscator stop working #339

Closed LoSunny closed 4 years ago

LoSunny commented 5 years ago

The deobfuscator just didn't output anything and just says

[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading classpath [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Loading input [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Computing callers [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Transforming [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Running com.javadeobfuscator.deobfuscator.transformers.normalizer.SourceFileClassNormalizer [SourceFileClassNormalizer] Recovered 2496 source filenames [main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Running com.javadeobfuscator.deobfuscator.transformers.stringer.v3.StringEncryptionTransformer [ClassLoader] An attempt was made to load the library zip.dll Initialization of VM took 305ms

And nothing happen even if I put the console on for like 30 minutes. Anyone can help me what's happening?

Here is the jar. Please deobfuscate it for me if you have time. https://drive.google.com/file/d/1_MB-i7iAzAVKRqL_AocmoqPPlue89fOu/view?usp=sharing

But the more important thing is to solve the problem as I think there will be more jar I need to deobfuscate.

ThisTestUser commented 5 years ago

-Use stringer.StringEncryptionTransformer instead of stringer.v3. -Do the SourceFileClassNormalizer after string decryption. -Try my deobfuscator.jar (https://github.com/ThisTestUser/deobfuscator/releases) if you still have problems.

LoSunny commented 5 years ago

Do I need to run "- stringer.HideAccessObfuscationTransformer"?

If you can deobfuscate it for me. I can compare the result and see what did I do wrong.

LoSunny commented 5 years ago

Also I seems to have some error here


[SourceFileClassNormalizer] Recovered 2496 source filenames
[main] INFO com.javadeobfuscator.deobfuscator.Deobfuscator - Writing
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/m/HealthTask. Using COMPUTE_MAXS
Error: java/lang/ReflectiveOperationException could not be found while writing mitw/mirez/uhc/utils/reflection/annotation/ReflectionAnnotations. Using COMPUTE_MAXS
Error: org/bukkit/entity/Player could not be found while writing mitw/mirez/uhc/a/c/b/GiveAllCommand. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/j/b/b/BarrierBrokePacketListener. Using COMPUTE_MAXS
Error: java/util/Iterator could not be found while writing b/ConnectionPool. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing b/a/b/RealConnection. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/c/a/GuildImpl. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing net/a/a/d/i/a/ClientRateLimiter$a. Using COMPUTE_MAXS
Error: java/lang/Byte could not be found while writing mitw/mirez/uhc/utils/bossbar/ClassBuilder. Using COMPUTE_MAXS
Error: java/lang/IndexOutOfBoundsException could not be found while writing mitw/mirez/uhc/utils/inventory/InventoryUI$2. Using COMPUTE_MAXS
Error: java/lang/IndexOutOfBoundsException could not be found while writing mitw/mirez/uhc/utils/inventory/InventoryUI$1. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing b/a/e/Http2Connection. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing com/c/a/HikariConfig. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/c/f/a/a/MentionPaginationAction. Using COMPUTE_MAXS
Error: org/bukkit/entity/Player could not be found while writing mitw/mirez/uhc/a/j/b/c/Protocol1_8. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing org/b/b/MessageFormatter. Using COMPUTE_MAXS
Error: javax/net/ssl/X509TrustManager could not be found while writing b/OkHttpClient. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing b/RealCall. Using COMPUTE_MAXS
Error: java/util/LinkedList could not be found while writing mitw/mirez/uhc/utils/ItemUtil. Using COMPUTE_MAXS
Error: java/util/Enumeration could not be found while writing com/c/a/c/DriverDataSource. Using COMPUTE_MAXS
Error: java/util/ArrayList could not be found while writing com/b/a/a/ProxySettings. Using COMPUTE_MAXS
Error: java/lang/reflect/InvocationTargetException could not be found while writing b/a/b/RouteException. Using COMPUTE_MAXS
Error: java/io/Writer could not be found while writing com/google/gson/b/Streams. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/c/d/CallCreateHandler. Using COMPUTE_MAXS
Error: java/lang/ref/WeakReference could not be found while writing com/sun/jna/NativeLibrary. Using COMPUTE_MAXS
Error: java/lang/Thread could not be found while writing com/b/a/a/ReadingThread. Using COMPUTE_MAXS
Error: java/lang/NumberFormatException could not be found while writing com/google/gson/b/a/a/ISO8601Utils. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing com/sun/jna/Structure. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/j/d/FastBlockSet1_7. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing b/a/b/StreamAllocation. Using COMPUTE_MAXS
Error: java/io/InputStreamReader could not be found while writing b/ResponseBody$a. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing net/a/a/d/a/AudioConnection. Using COMPUTE_MAXS
Error: java/util/Map could not be found while writing mitw/mirez/uhc/utils/holograms/ClassBuilder. Using COMPUTE_MAXS
Error: java/lang/reflect/InvocationTargetException could not be found while writing b/a/g/JdkWithJettyBootPlatform. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/MessageReactionHandler. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/MessageBulkDeleteHandler. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/utils/reflection/minecraft/DataWatcher$V1_9$ValueType. Using COMPUTE_MAXS
Error: java/io/FileNotFoundException could not be found while writing mitw/mirez/uhc/a/q/a/GeneratorData. Using COMPUTE_MAXS
Error: java/lang/ClassCastException could not be found while writing gnu/trove/map/hash/TIntObjectHashMap. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing com/b/a/a/ReadingThread$a. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/ChannelDeleteHandler. Using COMPUTE_MAXS
Error: java/lang/Class could not be found while writing com/google/gson/b/$Gson$Types. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing mitw/mirez/uhc/utils/a/MessagePart. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing mitw/mirez/uhc/utils/FileUtils. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/utils/ItemUtil1. Using COMPUTE_MAXS
Error: java/util/LinkedHashSet could not be found while writing b/a/i/TrustRootIndex$b. Using COMPUTE_MAXS
Error: java/util/concurrent/ConcurrentHashMap could not be found while writing net/a/a/d/c/a/JDAImpl. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/utils/b/b/RunnableUpdate. Using COMPUTE_MAXS
Error: java/util/ArrayList could not be found while writing b/Headers. Using COMPUTE_MAXS
Error: java/sql/SQLException could not be found while writing com/c/a/b/ProxyConnection. Using COMPUTE_MAXS
Error: java/lang/RuntimeException could not be found while writing org/apache/commons/a/IteratorUtils. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/i/ArenaManager. Using COMPUTE_MAXS
Error: java/lang/InterruptedException could not be found while writing mitw/mirez/uhc/a/b/StatusCache. Using COMPUTE_MAXS
Error: java/util/ArrayList could not be found while writing b/CertificatePinner. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing net/a/a/d/i/Request. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing net/a/a/d/f/GuildMemberUpdateHandler. Using COMPUTE_MAXS
Error: java/io/Reader could not be found while writing org/json/JSONTokener. Using COMPUTE_MAXS
Error: java/util/ArrayList could not be found while writing com/b/a/a/HandshakeReader. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/MessageDeleteHandler. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/VoiceStateUpdateHandler. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/c/MessageHistory$a. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing org/b/c/JDK14LoggerFactory. Using COMPUTE_MAXS
Error: org/bukkit/World could not be found while writing mitw/mirez/uhc/a/c/b/PregameCommand. Using COMPUTE_MAXS
Error: java/util/TreeSet could not be found while writing b/a/c/HttpHeaders. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing b/a/e/Http2Connection$c. Using COMPUTE_MAXS
Error: java/lang/IllegalAccessException could not be found while writing b/a/g/Jdk9Platform. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing mitw/mirez/uhc/utils/holograms/DefaultHologram. Using COMPUTE_MAXS
Error: java/util/ArrayList could not be found while writing mitw/mirez/uhc/utils/ItemBuilder. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing net/a/a/d/i/a/BotRateLimiter$a. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing net/a/a/d/i/a/BotRateLimiter. Using COMPUTE_MAXS
Error: java/lang/Byte could not be found while writing com/sun/jna/Pointer. Using COMPUTE_MAXS
Error: java/util/HashMap could not be found while writing com/google/gson/Gson. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing mitw/mirez/uhc/a/d/ConfigUpdater. Using COMPUTE_MAXS
Error: org/bukkit/entity/Player could not be found while writing mitw/mirez/uhc/a/UHCGame. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/utils/reflection/ReflectionUtils. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing b/a/j/RealWebSocket. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing net/a/a/d/f/ChannelUpdateHandler. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing com/sun/jna/Function. Using COMPUTE_MAXS
Error: java/lang/IndexOutOfBoundsException could not be found while writing mitw/mirez/uhc/utils/reflection/resolver/FieldResolver. Using COMPUTE_MAXS
Error: java/lang/IndexOutOfBoundsException could not be found while writing mitw/mirez/uhc/utils/reflection/resolver/MethodResolver. Using COMPUTE_MAXS
Error: java/lang/Integer could not be found while writing mitw/mirez/uhc/a/q/a/GeneratorWorldData. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing b/Cache$a. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing b/RealCall$a. Using COMPUTE_MAXS
Error: java/util/Iterator could not be found while writing org/apache/commons/a/IterableUtils. Using COMPUTE_MAXS
Error: java/text/SimpleDateFormat could not be found while writing b/a/c/HttpDate. Using COMPUTE_MAXS
Error: java/lang/RuntimeException could not be found while writing net/a/a/d/i/WebSocketClient. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing b/a/j/RealWebSocket$2. Using COMPUTE_MAXS
Error: java/lang/Class could not be found while writing com/google/gson/b/a/TypeAdapterRuntimeTypeWrapper. Using COMPUTE_MAXS
Error: java/io/IOException could not be found while writing net/a/a/e/WebhookClient. Using COMPUTE_MAXS
Error: java/util/Iterator could not be found while writing net/a/a/c/d/RelationshipRemoveHandler. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing b/MultipartBody. Using COMPUTE_MAXS
Error: java/lang/Number could not be found while writing com/google/gson/JsonPrimitive. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing com/c/a/b/PoolBase. Using COMPUTE_MAXS
Error: java/time/DateTimeException could not be found while writing net/a/a/d/EmbedBuilder. Using COMPUTE_MAXS
Error: java/util/List could not be found while writing mitw/mirez/uhc/a/a/a/BarrierManager. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/c/a/TextChannelImpl$1. Using COMPUTE_MAXS
Error: org/bukkit/entity/Player could not be found while writing mitw/mirez/uhc/a/i/ProfileManager. Using COMPUTE_MAXS
Error: org/bukkit/entity/Player could not be found while writing mitw/mirez/uhc/a/j/b/d/Protocol1_7. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/i/b/b/ReactionPaginationAction. Using COMPUTE_MAXS
Error: java/net/InetSocketAddress could not be found while writing mitw/mirez/uhc/a/j/b/b/LoginPacketListener. Using COMPUTE_MAXS
Error: java/lang/Throwable could not be found while writing com/c/a/b/HikariPool. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing mitw/mirez/uhc/utils/a/FancyMessage. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing com/google/gson/JsonArray. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing org/json/JSONObject. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/i/b/b/AuditLogPaginationAction. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/c/EntityBuilder. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing net/a/a/d/c/MessageReaction$a. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing b/a/g/AndroidPlatform$b. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/i/b/b/MessagePaginationAction. Using COMPUTE_MAXS
Error: java/lang/String could not be found while writing com/sun/jna/StringArray. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/c/d/CallDeleteHandler. Using COMPUTE_MAXS
Error: java/util/concurrent/ThreadFactory could not be found while writing com/c/a/c/UtilityElf. Using COMPUTE_MAXS
Error: java/lang/Class could not be found while writing com/google/gson/c/TypeToken. Using COMPUTE_MAXS
Error: org/bukkit/event/entity/EntityDamageByEntityEvent could not be found while writing mitw/mirez/uhc/a/h/DeathListener. Using COMPUTE_MAXS
Error: java/util/HashMap could not be found while writing org/b/b/BasicMDCAdapter. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/PresenceUpdateHandler. Using COMPUTE_MAXS
Error: java/util/LinkedList could not be found while writing net/a/a/d/f/EventCache. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/j/b/d/Protocol1_7$2. Using COMPUTE_MAXS
Error: java/lang/IndexOutOfBoundsException could not be found while writing mitw/mirez/uhc/utils/reflection/resolver/ConstructorResolver. Using COMPUTE_MAXS
Error: java/lang/ref/WeakReference could not be found while writing com/c/a/c/ConcurrentBag. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing com/google/gson/JsonObject. Using COMPUTE_MAXS
Error: java/lang/reflect/Method could not be found while writing com/google/gson/b/UnsafeAllocator. Using COMPUTE_MAXS
Error: java/lang/Exception could not be found while writing mitw/mirez/uhc/a/j/b/c/Protocol1_8$2. Using COMPUTE_MAXS
Error: java/util/HashMap could not be found while writing com/sun/jna/Native. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/c/a/GuildImpl$6. Using COMPUTE_MAXS
Error: java/io/Reader could not be found while writing b/ResponseBody. Using COMPUTE_MAXS
Error: java/lang/NoClassDefFoundError could not be found while writing org/b/LoggerFactory. Using COMPUTE_MAXS
Error: java/lang/ClassCastException could not be found while writing gnu/trove/map/hash/TLongObjectHashMap. Using COMPUTE_MAXS
Error: java/lang/Object could not be found while writing net/a/a/d/f/MessageCreateHandler. Using COMPUTE_MAXS
Error: java/lang/NullPointerException could not be found while writing net/a/a/d/i/Response. Using COMPUTE_MAXS
Error: java/lang/IllegalArgumentException could not be found while writing b/a/g/AndroidPlatform. Using COMPUTE_MAXS
Error: java/lang/Class could not be found while writing mitw/mirez/uhc/a/j/c/ySpigot. Using COMPUTE_MAXS
Error: java/lang/IllegalArgumentException could not be found while writing net/a/a/d/a/AudioEncryption. Using COMPUTE_MAXS```
ThisTestUser commented 5 years ago

You don't need HideAccessTransformer for this one. Also the errors are because you didn't attach the libraries. Add rt.jar and the spigot server JARs to fix this.

LoSunny commented 5 years ago

How to add it. I try to add --path rt.jar or -path rt.jar. But both of it returns an error about unknown argument

LoSunny commented 5 years ago

What is the use of HideAccessTransformer?

Janmm14 commented 5 years ago

The deobfuscator does now use a config file and no cli arguments, you can specify config file with --config filename.yml.

LoSunny commented 5 years ago

How to I add multiple input (dependency)?

ThisTestUser commented 5 years ago

There's a GUI for the deobfuscator that might help you. https://github.com/java-deobfuscator/deobfuscator-gui