gzexe

Compress executable files while keeping them executable. Back up the original file, appending ~ to its name and create a shell script that uncompresses and executes the binary inside it. More information: <https://manned.org/gzexe.1>.

Install

All systems
curl cmd.cat/gzexe.sh
Debian Debian
apt-get install gzip
Ubuntu
apt-get install gzip
Alpine
apk add gzip
Arch Arch Linux
pacman -S gzip
image/svg+xml Kali Linux
apt-get install gzip
CentOS
yum install gzip
Fedora
dnf install gzip
Windows (WSL2)
sudo apt-get update sudo apt-get install gzip
OS X
brew install gzip
Raspbian
apt-get install gzip
Docker
docker run cmd.cat/gzexe gzexe powered by Commando

Compress executable files while keeping them executable. Back up the original file, appending ~ to its name and create a shell script that uncompresses and executes the binary inside it. More information: <https://manned.org/gzexe.1>.

  • Compress an executable file in-place:
    gzexe path/to/executable
  • Decompress a compressed executable in-place (i.e. convert the shell script back to an uncompressed binary):
    gzexe -d path/to/compressed_executable

© tl;dr; authors and contributors