Questions tagged [upx]

UPX (Ultimate Packer for eXecutables) is a executable packer that is used to compress executable files.

UPX is a portable, high-performance executable packer for several different executable formats, includes support for Windows and Linux executables and DLLs. It achieves an excellent compression ratio and offers very fast decompression.
It is an open-source project.
For more information and downloading the software you can check this link

48 questions
2
votes
2 answers

Forbid decompressing for UPX Win32/PE compressed files

Actually dont want people to decompress my Win32/PE executables. I found a solution from one russian guy. His tool is named "UPX shell" and was at http://bash.x2i.net/, but website is down for now(it is not the same as upxshell.sourceforge.net) His…
Didar_Uranov
  • 1,230
  • 11
  • 26
2
votes
1 answer

how to unpack a dll file which is UPX packed but also the headers are changed?

I have a file which is UPX packed. Is there any way I can change the headers and still find it as UPX packed? And how do I unpack it ? I tried a lot of tutorials and I am fed up as all explain the same method which doesnt work for me. the same…
kidd0
  • 731
  • 2
  • 8
  • 25
2
votes
4 answers

Alpine Docker container doesn't recognize UPX as an executable

Stackers, I'm using Docker to containerize my app. In the stage below, I'm trying to pack it using UPX. FROM alpine:3.8 AS compressor # Version of upx to be used(without the 'v' prefix) # For all releases, see…
Genos
  • 413
  • 4
  • 12
2
votes
2 answers

Detecting UPX programmatically

I'm trying to figure out how to detect whether a binary has been compressed with UPX. I am using a simple CRC to detect whether my app was in any way changed and if the CRC failed on the size due to a packer I would like to detect that as OK. Right…
Mr Aleph
  • 1,887
  • 5
  • 28
  • 44
2
votes
1 answer

Android N Preview dlopen() "has no section headers" Error

I compressed my Android APP's libs with UPX. When run at Android N Priview5 devices, there's an error : " dlopen failed: xxx.so has no section headers". I find a changelog of Android Linker…
dream
  • 21
  • 4
2
votes
0 answers

UPX doesn't work with -fPIE and ARM on Android

My multithreading C++ program, compiled with -static, doesn't work correctly on Android. If I compile it with -fPIE it does work as expected. I don't know the reason. My problem is that I can't compress the PIE executable with UPX because it says…
Andrew
  • 21
  • 1
2
votes
0 answers

Delphi debugger crash (OpenDialog + compressed exe)

A few days ago I encountered a strange bug Whenever my program (under debugging) tries to open a savedialog Delphi 2007 IDE crashes with an external exception. I narrowed it down to any folder containing an exe compressed by upx located. I.e. if all…
Anton Duzenko
  • 2,366
  • 1
  • 21
  • 26
2
votes
2 answers

Wrong UPX Header, Unable to Decompress with UPX

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…
X Cite
  • 21
  • 1
  • 3
2
votes
1 answer

Any downsides to UPX-ing my 32-bit Python 2.6.4 development environment EXE/PYD/DLL files?

Are there any downsides to UPX-ing my 32-bit Python 2.6.4 development environment EXE/PYD/DLL files? The reason I'm asking is that I frequently use a custom PY2EXE script that UPX's copies of these files on every build. Yes, I could get fancy and…
Malcolm
  • 5,125
  • 10
  • 52
  • 75
1
vote
1 answer

Use UPX (executable compresser) on release builds?

I was wondering if it's normal/acceptable to use UPX (or any other executable compressor for that matter) on a release build for a project. For example, I have this executable which normally is 1.7MB when shipped, but when packed it's 426KB. Not…
orlp
  • 112,504
  • 36
  • 218
  • 315
1
vote
0 answers

no output after depacking C packed script with UPX

I learn how to pack then unpack scripts with UPX and C language. Here is my script which I packs: it is quite simple, just types string "hello world" on a screen. Well, I pack it using next commands: gcc -m32 main.c -o main upx main.exe -o…
Mark Minerov
  • 309
  • 1
  • 8
1
vote
1 answer

Installing upx with Mac Big Sur

I'm having trouble installing upx. The following are the steps that I took. My macOs is 11.2.1 % ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ==> Checking for `sudo` access…
Duc Vu
  • 95
  • 1
  • 1
  • 8
1
vote
0 answers

pyinstaller and upx on Linux - no difference in exe size

I'm building a project with this script on Xubuntu 20.04. pyinstaller --distpath $OUTPUT_DIR \ --name $APP_NAME \ --onefile \ --hidden-import numpy \ --hidden-import zmq \ --hidden-import cv2 \ --clean…
1
vote
0 answers

How to split Linux (Android) ARM64 executable into small and large parts?

Background I have an Android app which uses native ARM64 executables (essentially GCC toolchain, extracted to app directory (/data/data/%package%/somePath) on the first run) to do some work. Due to Android 10 changes files in /data/data/.. can't…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
1
vote
1 answer

Executable made with pyInstaller/UPX experiences DLL load failed: The parameter is incorrect

Executable made with pyInstaller / UPX in virtual environment throws an error DLL load failed: The parameter is incorrect. while parameter is correct... I've made python Executable withoutpyInstaller UPX Its about 250MB & Its working Fine. To reduce…
assassinezio
  • 99
  • 10