deathmarine / Luyten

An Open Source Java Decompiler Gui for Procyon
Other
5k stars 999 forks source link

Decompiling: java.lang.IllegalStateException: Wrong magic number: 808508590 #266

Open BaseMax opened 3 years ago

BaseMax commented 3 years ago

Hi there,

I have a .exe software. This can open as zip file. So i rename .exe to .zip and .zip to .jar.

java.lang.IllegalStateException: Wrong magic number: 808508590
  at com.strobel.assembler.metadata.ClassFileReader.readClass(ClassFileReader.java:337)
  at com.strobel.assembler.metadata.MetadataSystem.resolveType(MetadataSystem.java:124)
  at com.strobel.assembler.metadata.MetadataSystem.lookupTypeCore(MetadataSystem.java:81)
  at com.strobel.assembler.metadata.MetadataResolver.lookupType(MetadataResolver.java:46)
  at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:183)

  at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)
  at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)
  at java.lang.Thread.run(Unknown Source)

photo_2020-12-26_08-17-44

Download this software/jar to debug and future tests: sample-software.zip (You can rename this to .exe or .jar)

Thanks in advance for any guide.

Regards, Max

greenozon commented 3 years ago

I have a .exe software. This can open as zip file. So i rename .exe to .zip and .zip to .jar.

Your zip (sample-software.zip) has all the java .class files encrypted Instead of CAFEBABE signature all the .class files having "VLX200" signature

It means you have to decrypt it first

Thus, I guess .exe is not a simple exe, it does the actual decription

DannyRavi commented 1 year ago

it is about Protect Java Code from Decompiling . check vlinx product.