I've read this question and it is not a duplicate to mine. I have a .exe file which has different contents inside when opened with 7zip. However let's say I know that it uses EXE4J, how can I decompile it and get the jar out of it?
1 Answer
EXE4J creates a temporary folder to store the JAR. So using process monitor I was able to locate the JAR file.
Here's how I found the answer
So as I was searching I found this useful GitHub page (It should help you find the main class), and as I scrolled down in the Embedded JARs I found
This script does not extract embedded JARs, it only finds their offsets. Use 7zip on the file to unpack embedded
.jarfiles. Alternatively, execute the file and grab the JAR from the TEMP folder. It is named e4j_xxxx.tmp
- Just use 7zip..Thorbjørn Ravn Andersen– Thorbjørn Ravn Andersen2025-01-26 15:37:27 +00:00Commented Jan 26 at 15:37
- @ThorbjørnRavnAndersen oh, thank you for the response, i mean it was hella late still appreciate it.Grinding For Reputation– Grinding For Reputation2025-01-27 11:23:55 +00:00Commented Jan 27 at 11:23
- In here answers can be subpar for a long time before being noticed.Thorbjørn Ravn Andersen– Thorbjørn Ravn Andersen2025-01-28 01:08:51 +00:00Commented Jan 28 at 1:08