Luyten icon indicating copy to clipboard operation
Luyten copied to clipboard

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

Open BaseMax opened this issue 3 years ago • 2 comments

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

BaseMax avatar Dec 26 '20 05:12 BaseMax

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

greenozon avatar Jan 05 '21 15:01 greenozon

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

DannyRavi avatar Aug 06 '23 15:08 DannyRavi