JAR hidden inside EXE?

前端 未结 5 1259
谎友^
谎友^ 2020-12-17 18:23

Minecraft, a Java game, is free this weekend. The Windows version downloads as an exe file. I was curious what the EXE file is doing and where it\'s unpacking and running th

5条回答
  •  既然无缘
    2020-12-17 18:53

    after renaming Minecraft.exe to Minecraft.jar, I was able to open it and see the loader class files and such

    Some EXE files are in fact self-extracting ZIP files. JAR files are in turn normal ZIP files with a special file structure. I bet that you was just opening it using a ZIP tool after renaming it. Note that some ZIP tools will auto-integrate in Windows explorer (or the other way round) so that it happens seemingly transparently.

提交回复
热议问题