2

I wanted to decompress a UPX file available to download from this link. http://goo.gl/Uw2a6O

However, when I decompress it using UPX command:

upx -d citadel.exe

I got this error:

upx: citadel.exe: CantUnpackException: illegal exe header

So, I edit i check its hexadecimal from this:

i.stack.imgur.com/VJ8ng.png

to this:

i.stack.imgur.com/PChDQ.png

Sorry, that I can't include more than 2 links because my reputation point in SO below 10.

Anyway, then I run this command again,

upx -d citadel.exe 

and I got the permission denied. This is the message:

upx: citade.exe: IOException: citadel.exe: Permission Denied
Upacked 1 file: 0 ok, 1 error.

The question is, how can I decompress this file using UPX tool?

Thanks

X Cite
  • 21
  • 1
  • 3

2 Answers2

0

Finally I got it works by just restarting the command prompt and rerun upx -d citadel.exe.

thanks

X Cite
  • 21
  • 1
  • 3
0

I got a permission denied error, including running UPX in an admin cmd window. The .exe to unpack was in a different directory. Once I moved the .exe into the same directory as UPX, the permission denied error went away, even running in a non-admin cmd window.

yano
  • 4,827
  • 2
  • 23
  • 35