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
1
vote
0 answers

LoadLibrary error in pyinstaller bundled executable when compressed with UPX

I am trying to build a single-file Windows command shell executable with Pyinstaller. This is a simple test file, which is enough to produce the problem. import code code.InteractiveConsole().interact() I can generate a single executable file…
Blair
  • 135
  • 1
  • 9
1
vote
1 answer

WinError 5 Access is denied when trying to include UPX dir in Pyinstaller

I downloaded the latest release of UPX, extracted it into a folder on C:/UPX. This folder now contains both the .exe, and the extracted folder. Pyinstaller either does not recognise UPX at all, or it gives me: 84 INFO: PyInstaller: 4.0.dev0 84…
ISquared
  • 364
  • 4
  • 22
1
vote
0 answers

Compressing a dynamically linked armeabi-v7a executable with UPX

Is it possible to compress a dynamically linked armeabi-v7a executable with UPX? I'm building using ndk-build (r20b) and UPX always throws an UnknownExecutableFormatException exception unless I add APP_LDFLAGS += -static to my module Android.mk.…
Sourav Banerjee
  • 191
  • 2
  • 8
1
vote
5 answers

madExcept + UPX

I'm having problems using madExcept + UPX on Delphi 2007. Whenever I open the compressed application, a Windows exception dialog appears code 0xc0000005. Anyone has the solution for this? Thanks!
gmuller
  • 451
  • 1
  • 6
  • 17
1
vote
0 answers

DLL load failure with Python3 (32bit)+PyInstaller+UPX (32bit) under Windows 10 (64bit)

So I'm generating exe with PyInstaller, using UPX as to make the size of the executable file smaller. However, the executable file generated with UPX shows errors like this: PS [path]\dist> .\api Traceback (most recent call last): File "api.py",…
SnzFor16Min
  • 113
  • 6
1
vote
1 answer

Why does UPX break compiled SBCL apps?

This is mostly a stupid question, since UPX (a tool that wrings extra bytes out of your executable files) saves a tiny amount of space over the built in compression in the buildapp tool. A very small demo application creates a 42 megabyte file.…
Mikey T.K.
  • 1,112
  • 18
  • 43
1
vote
2 answers

system wide elf compression script using find, file, and upx

I'm working on my first script, and it is to compress all elf executables on a system. find / * -executable -type f -exec file '{}' \; | grep ELF | sed -e "s/[:].*//" | upx --best --ultra-brute upx is not responding to sent files
Josh
  • 295
  • 1
  • 9
1
vote
1 answer

win32 PE encryptor = antivirus false positive

I'm trying to protect my programs against cracking and reverse engineering. I wrote programs in C++ (Visual Studio 2010) and I also wrote easy encryption algorithms in assembler. Algorithm is added to EXE file and make it harder to cracking, because…
0
votes
0 answers

upx4.0.1 dlopen failed: .dynamic section has invalid offset on Android

after upx compress x.so, dlopen failed on Android platform, got errmsg: .dynamic section has invalid offset: 0x5d0e8, expected to match PT_DYNAMIC offset: 0x5c0e8. Host: Darwin MacBook-Pro.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18…
0
votes
1 answer

auto-py-to-exe generated 2 error messages: `UPX is not available` and `an error occurred while packaging`

I am trying to convert my .py to .exe. However, 2 error messages occured while using auto-py-to-exe. The first error message was as follows: UPX is not available. The second error message was the following: An error occurred while packaging. This…
세밍티처
  • 1
  • 1
  • 2
0
votes
1 answer

UPX bad image on launch and notcompressible exception

The script is super simple and works with no UPX. import selenium import scipy import pandas as pd print('Testing123') Upon launch I get bad image pyinstaller myfile.py --upx-dir=C:\upx394w --onedir Does not work when launching exe, I am using…
user9036931
0
votes
1 answer

Pack calc.exe with UPX

I want to ask if someone can explain me, why I cannot execute a UPX-packed version of the Windows tool: "calc.exe" (32-bit version) on Windows 7 or Windows 10, but on Windows XP the packed "calc.exe" is running without problems (on all conversions I…
Andreas
  • 342
  • 1
  • 10
0
votes
1 answer

Extending a GNU make implicit rule

I'm using the GNU make implicit rule for linking together my binary as follows: foo : foo.o bar.o However, I also want to be able to compile the resulting binary foo with UPX (by invoking upx ultra-brute foo) on it afterwards. I can, of course, do…
Koz Ross
  • 3,040
  • 2
  • 24
  • 44
0
votes
1 answer

How does UPX handle Applications without a Relocation Directory?

I've been doing some research into executable loaders, and one thing that confuses me is how they cope with an executable that requires that it load at a specific virtual address (i.e. does not have a relocation record) I know UPX has the capability…
Plex ASM
  • 143
  • 8
0
votes
1 answer

Applescript droplet that executes shell script

I'd like to make an Applescript droplet with Automator that does the following: when I drop "Application.app" in the droplet, the script runs ./upx.out -d [the binary contained in the MacOS subfolder of Application.app] where "Application.app" and…
marioskjj
  • 3
  • 3