PATH:
snap
/
core26
/
462
/
usr
/
bin
#!/bin/sh # gzexe: compressor for Unix executables. # Use this only for binaries that you do not use frequently. # # The compressed version is a shell script which decompresses itself after # skipping $skip lines of shell commands. We try invoking the compressed # executable with the original name (for programs looking at their name). # We also try to retain the original file permissions on the compressed file. # For safety reasons, gzexe will not create setuid or setgid shell scripts. # WARNING: the first line of this file must be either : or #!/bin/sh # The : is required for some old versions of csh. # On Ultrix, /bin/sh is too buggy, change the first line to: #!/bin/sh5 # Copyright (C) 1998, 2002 Free Software Foundation # Copyright (C) 1993 Jean-loup Gailly # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA. PATH="/usr/bin:$PATH" x=`basename $0` if test $# = 0; then echo compress executables. original file foo is renamed to foo~ echo usage: ${x} [-d] files... echo " -d decompress the executables" exit 1 fi set -C tmp=gz$$ trap "rm -f $tmp; exit 1" HUP INT QUIT TRAP USR1 PIPE TERM : > $tmp || exit 1 decomp=0 res=0 test "$x" = "ungzexe" && decomp=1 if test "x$1" = "x-d"; then decomp=1 shift fi echo hi > zfoo1$$ || exit 1 echo hi > zfoo2$$ || exit 1 if test -z "`(${CPMOD-cpmod} zfoo1$$ zfoo2$$) 2>&1`"; then cpmod=${CPMOD-cpmod} fi rm -f zfoo[12]$$ tail="" IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/tail; then tail="$dir/tail" break fi done IFS="$saveifs" if test -z "$tail"; then echo cannot find tail exit 1 fi case `echo foo | $tail -n +1 2>/dev/null` in foo) tail="$tail -n";; esac for i do if test ! -f "$i" ; then echo ${x}: $i not a file res=1 continue fi if test $decomp -eq 0; then if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then echo "${x}: $i is already gzexe'd" continue fi fi if ls -l "$i" | grep '^...[sS]' > /dev/null; then echo "${x}: $i has setuid permission, unchanged" continue fi if ls -l "$i" | grep '^......[sS]' > /dev/null; then echo "${x}: $i has setgid permission, unchanged" continue fi case "`basename $i`" in bzip2 | tail | sed | chmod | ln | sleep | rm) echo "${x}: $i would depend on itself"; continue ;; esac if test -z "$cpmod"; then cp -p "$i" $tmp 2>/dev/null || cp "$i" $tmp if test -w $tmp 2>/dev/null; then writable=1 else writable=0 chmod u+w $tmp 2>/dev/null fi : >| $tmp # truncate the file, ignoring set -C fi if test $decomp -eq 0; then sed 1q $0 >> $tmp sed "s|^if tail|if $tail|" >> $tmp <<'EOF' skip=23 set -C umask=`umask` umask 77 tmpfile=`mktemp ${TMPDIR:-/tmp}/bzexe.XXXXXXXXXX` || exit 1 if tail +$skip "$0" | /bin/bzip2 -cd >> "$tmpfile"; then umask $umask /bin/chmod 700 $tmpfile prog="`echo $0 | /bin/sed 's|^.*/||'`" if /bin/ln -T $tmpfile "/tmp/$prog" 2>/dev/null; then trap '/bin/rm -f $tmpfile "/tmp/$prog"; exit $res' 0 (/bin/sleep 5; /bin/rm -f $tmpfile "/tmp/$prog") 2>/dev/null & /tmp/"$prog" ${1+"$@"}; res=$? else trap '/bin/rm -f $tmpfile; exit $res' 0 (/bin/sleep 5; /bin/rm -f $tmpfile) 2>/dev/null & $tmpfile ${1+"$@"}; res=$? fi else echo Cannot decompress $0; exit 1 fi; exit $res EOF bzip2 -cv9 "$i" >> $tmp || { /bin/rm -f $tmp echo ${x}: compression not possible for $i, file unchanged. res=1 continue } else # decompression skip=23 if sed -e 1d -e 2q "$i" | grep "^skip=[0-9]*$" >/dev/null; then eval `sed -e 1d -e 2q "$i"` fi if tail +$skip "$i" | bzip2 -cd > $tmp; then : else echo ${x}: $i probably not in gzexe format, file unchanged. res=1 continue fi fi rm -f "$i~" mv "$i" "$i~" || { echo ${x}: cannot backup $i as $i~ rm -f $tmp res=1 continue } mv $tmp "$i" || cp -p $tmp "$i" 2>/dev/null || cp $tmp "$i" || { echo ${x}: cannot create $i rm -f $tmp res=1 continue } rm -f $tmp if test -n "$cpmod"; then $cpmod "$i~" "$i" 2>/dev/null elif test $writable -eq 0; then chmod u-w $i 2>/dev/null fi done exit $res
[+]
..
[-] [
[edit]
[-] aa-enabled
[edit]
[-] aa-exec
[edit]
[-] aa-features-abi
[edit]
[-] arch
[edit]
[-] awk
[edit]
[-] b2sum
[edit]
[-] b3sum
[edit]
[-] base32
[edit]
[-] base64
[edit]
[-] basename
[edit]
[-] basenc
[edit]
[-] bash
[edit]
[-] bunzip2
[edit]
[-] busctl
[edit]
[-] bzcat
[edit]
[-] bzcmp
[edit]
[-] bzdiff
[edit]
[-] bzegrep
[edit]
[-] bzexe
[edit]
[-] bzfgrep
[edit]
[-] bzgrep
[edit]
[-] bzip2
[edit]
[-] bzip2recover
[edit]
[-] bzless
[edit]
[-] bzmore
[edit]
[-] cat
[edit]
[-] chage
[edit]
[-] chattr
[edit]
[-] chcon
[edit]
[-] chfn
[edit]
[-] chgrp
[edit]
[-] chmod
[edit]
[-] choom
[edit]
[-] chown
[edit]
[-] chroot
[edit]
[-] chrt
[edit]
[-] chsh
[edit]
[-] cksum
[edit]
[-] clear
[edit]
[-] clear_console
[edit]
[-] cmp
[edit]
[-] comm
[edit]
[-] core-sshd-host-keygen
[edit]
[-] coredumpctl
[edit]
[-] coreutils
[edit]
[-] cp
[edit]
[-] csplit
[edit]
[-] ctstat
[edit]
[-] cut
[edit]
[-] dash
[edit]
[-] date
[edit]
[-] dbus-cleanup-sockets
[edit]
[-] dbus-daemon
[edit]
[-] dbus-monitor
[edit]
[-] dbus-run-session
[edit]
[-] dbus-send
[edit]
[-] dbus-update-activation-environment
[edit]
[-] dbus-uuidgen
[edit]
[-] dd
[edit]
[-] df
[edit]
[-] diff
[edit]
[-] diff3
[edit]
[-] dir
[edit]
[-] dircolors
[edit]
[-] dirname
[edit]
[-] dmesg
[edit]
[-] dnsdomainname
[edit]
[-] domainname
[edit]
[-] du
[edit]
[-] echo
[edit]
[-] editor
[edit]
[-] egrep
[edit]
[-] env
[edit]
[-] ex
[edit]
[-] expand
[edit]
[-] expiry
[edit]
[-] expr
[edit]
[-] factor
[edit]
[-] fallocate
[edit]
[-] false
[edit]
[-] fgrep
[edit]
[-] finalrd
[edit]
[-] find
[edit]
[-] findmnt
[edit]
[-] flock
[edit]
[-] fmt
[edit]
[-] fold
[edit]
[-] free
[edit]
[-] gdbserver
[edit]
[-] getconf
[edit]
[-] getent
[edit]
[-] getopt
[edit]
[-] gnu[
[edit]
[-] gnuarch
[edit]
[-] gnub2sum
[edit]
[-] gnubase32
[edit]
[-] gnubase64
[edit]
[-] gnubasename
[edit]
[-] gnubasenc
[edit]
[-] gnucat
[edit]
[-] gnuchcon
[edit]
[-] gnuchgrp
[edit]
[-] gnuchmod
[edit]
[-] gnuchown
[edit]
[-] gnucksum
[edit]
[-] gnucomm
[edit]
[-] gnucp
[edit]
[-] gnucsplit
[edit]
[-] gnucut
[edit]
[-] gnudate
[edit]
[-] gnudd
[edit]
[-] gnudf
[edit]
[-] gnudir
[edit]
[-] gnudircolors
[edit]
[-] gnudirname
[edit]
[-] gnudu
[edit]
[-] gnuecho
[edit]
[-] gnuenv
[edit]
[-] gnuexpand
[edit]
[-] gnuexpr
[edit]
[-] gnufactor
[edit]
[-] gnufalse
[edit]
[-] gnufmt
[edit]
[-] gnufold
[edit]
[-] gnugroups
[edit]
[-] gnuhead
[edit]
[-] gnuhostid
[edit]
[-] gnuid
[edit]
[-] gnuinstall
[edit]
[-] gnujoin
[edit]
[-] gnulink
[edit]
[-] gnuln
[edit]
[-] gnulogname
[edit]
[-] gnuls
[edit]
[-] gnumd5sum
[edit]
[-] gnumkdir
[edit]
[-] gnumkfifo
[edit]
[-] gnumknod
[edit]
[-] gnumktemp
[edit]
[-] gnumv
[edit]
[-] gnunice
[edit]
[-] gnunl
[edit]
[-] gnunohup
[edit]
[-] gnunproc
[edit]
[-] gnunumfmt
[edit]
[-] gnuod
[edit]
[-] gnupaste
[edit]
[-] gnupathchk
[edit]
[-] gnupinky
[edit]
[-] gnupr
[edit]
[-] gnuprintenv
[edit]
[-] gnuprintf
[edit]
[-] gnuptx
[edit]
[-] gnupwd
[edit]
[-] gnureadlink
[edit]
[-] gnurealpath
[edit]
[-] gnurm
[edit]
[-] gnurmdir
[edit]
[-] gnuruncon
[edit]
[-] gnuseq
[edit]
[-] gnusha1sum
[edit]
[-] gnusha224sum
[edit]
[-] gnusha256sum
[edit]
[-] gnusha384sum
[edit]
[-] gnusha512sum
[edit]
[-] gnushred
[edit]
[-] gnushuf
[edit]
[-] gnusleep
[edit]
[-] gnusort
[edit]
[-] gnusplit
[edit]
[-] gnustat
[edit]
[-] gnustdbuf
[edit]
[-] gnustty
[edit]
[-] gnusum
[edit]
[-] gnusync
[edit]
[-] gnutac
[edit]
[-] gnutail
[edit]
[-] gnutee
[edit]
[-] gnutest
[edit]
[-] gnutimeout
[edit]
[-] gnutouch
[edit]
[-] gnutr
[edit]
[-] gnutrue
[edit]
[-] gnutruncate
[edit]
[-] gnutsort
[edit]
[-] gnutty
[edit]
[-] gnuuname
[edit]
[-] gnuunexpand
[edit]
[-] gnuuniq
[edit]
[-] gnuunlink
[edit]
[-] gnuusers
[edit]
[-] gnuvdir
[edit]
[-] gnuwc
[edit]
[-] gnuwho
[edit]
[-] gnuwhoami
[edit]
[-] gnuyes
[edit]
[-] gpasswd
[edit]
[-] gpgv
[edit]
[-] grep
[edit]
[-] groups
[edit]
[-] gunzip
[edit]
[-] gzip
[edit]
[-] hashsum
[edit]
[-] head
[edit]
[-] hostid
[edit]
[-] hostname
[edit]
[-] hostnamectl
[edit]
[-] i386
[edit]
[-] iconv
[edit]
[-] id
[edit]
[-] install
[edit]
[-] ionice
[edit]
[-] ip
[edit]
[-] ipcmk
[edit]
[-] ipcrm
[edit]
[-] ipcs
[edit]
[-] ischroot
[edit]
[-] join
[edit]
[-] journalctl
[edit]
[-] kill
[edit]
[-] kmod
[edit]
[-] ld.so
[edit]
[-] ldd
[edit]
[-] less
[edit]
[-] lessecho
[edit]
[-] link
[edit]
[-] linux32
[edit]
[-] linux64
[edit]
[-] ln
[edit]
[-] locale
[edit]
[-] localectl
[edit]
[-] localedef
[edit]
[-] logger
[edit]
[-] login
[edit]
[-] loginctl
[edit]
[-] logname
[edit]
[-] ls
[edit]
[-] lsattr
[edit]
[-] lsblk
[edit]
[-] lscpu
[edit]
[-] lsipc
[edit]
[-] lslocks
[edit]
[-] lsmod
[edit]
[-] lsns
[edit]
[-] man
[edit]
[-] mawk
[edit]
[-] md5sum
[edit]
[-] mkdir
[edit]
[-] mkfifo
[edit]
[-] mknod
[edit]
[-] mksquashfs
[edit]
[-] mkswapfile
[edit]
[-] mktemp
[edit]
[-] more
[edit]
[-] mount
[edit]
[-] mountpoint
[edit]
[-] mv
[edit]
[-] nc
[edit]
[-] nc.openbsd
[edit]
[-] netcat
[edit]
[-] networkctl
[edit]
[-] nice
[edit]
[-] nisdomainname
[edit]
[-] nl
[edit]
[-] nohup
[edit]
[-] nproc
[edit]
[-] nsenter
[edit]
[-] numfmt
[edit]
[-] od
[edit]
[-] openssl
[edit]
[-] opensysusers-sysusers
[edit]
[-] p11-kit
[edit]
[-] p11tool
[edit]
[-] pager
[edit]
[-] partx
[edit]
[-] passwd
[edit]
[-] paste
[edit]
[-] pathchk
[edit]
[-] pgrep
[edit]
[-] pidof
[edit]
[-] pidwait
[edit]
[-] ping
[edit]
[-] ping4
[edit]
[-] ping6
[edit]
[-] pinky
[edit]
[-] pkaction
[edit]
[-] pkcheck
[edit]
[-] pkcs11-tool
[edit]
[-] pkill
[edit]
[-] pkttyagent
[edit]
[-] pldd
[edit]
[-] plymouth
[edit]
[-] pr
[edit]
[-] printenv
[edit]
[-] printf
[edit]
[-] prlimit
[edit]
[-] ps
[edit]
[-] ptx
[edit]
[-] pwd
[edit]
[-] pwdx
[edit]
[-] rbash
[edit]
[-] readlink
[edit]
[-] realpath
[edit]
[-] reset
[edit]
[-] resolvectl
[edit]
[-] rgrep
[edit]
[-] rm
[edit]
[-] rmdir
[edit]
[-] routel
[edit]
[-] run-parts
[edit]
[-] run0
[edit]
[-] runcon
[edit]
[-] rview
[edit]
[-] sbattach
[edit]
[-] sbkeysync
[edit]
[-] sbsiglist
[edit]
[-] sbsign
[edit]
[-] sbvarsign
[edit]
[-] sbverify
[edit]
[-] scp
[edit]
[-] sdiff
[edit]
[-] sed
[edit]
[-] seq
[edit]
[-] setarch
[edit]
[-] setpriv
[edit]
[-] setsid
[edit]
[-] setterm
[edit]
[-] sftp
[edit]
[-] sg
[edit]
[-] sh
[edit]
[-] sha1sum
[edit]
[-] sha224sum
[edit]
[-] sha256sum
[edit]
[-] sha3-224sum
[edit]
[-] sha3-256sum
[edit]
[-] sha3-384sum
[edit]
[-] sha3-512sum
[edit]
[-] sha384sum
[edit]
[-] sha3sum
[edit]
[-] sha512sum
[edit]
[-] shake128sum
[edit]
[-] shake256sum
[edit]
[-] shred
[edit]
[-] shuf
[edit]
[-] skill
[edit]
[-] sleep
[edit]
[-] snap
[edit]
[-] snapctl
[edit]
[-] snice
[edit]
[-] sort
[edit]
[-] splash-client
[edit]
[-] split
[edit]
[-] sqfscat
[edit]
[-] sqfstar
[edit]
[-] ss
[edit]
[-] ssh
[edit]
[-] ssh-add
[edit]
[-] ssh-agent
[edit]
[-] ssh-keygen
[edit]
[-] ssh-keyscan
[edit]
[-] stat
[edit]
[-] stdbuf
[edit]
[-] stty
[edit]
[-] su
[edit]
[-] su-rs
[edit]
[-] sudo
[edit]
[-] sudo-rs
[edit]
[-] sudoedit
[edit]
[-] sudoedit-rs
[edit]
[-] sum
[edit]
[-] sync
[edit]
[-] systemctl
[edit]
[-] systemd-ac-power
[edit]
[-] systemd-analyze
[edit]
[-] systemd-ask-password
[edit]
[-] systemd-cat
[edit]
[-] systemd-cgls
[edit]
[-] systemd-cgtop
[edit]
[-] systemd-confext
[edit]
[-] systemd-creds
[edit]
[-] systemd-cryptenroll
[edit]
[-] systemd-cryptsetup
[edit]
[-] systemd-delta
[edit]
[-] systemd-detect-virt
[edit]
[-] systemd-escape
[edit]
[-] systemd-firstboot
[edit]
[-] systemd-hwdb
[edit]
[-] systemd-id128
[edit]
[-] systemd-inhibit
[edit]
[-] systemd-machine-id-setup
[edit]
[-] systemd-mount
[edit]
[-] systemd-notify
[edit]
[-] systemd-path
[edit]
[-] systemd-run
[edit]
[-] systemd-socket-activate
[edit]
[-] systemd-stdio-bridge
[edit]
[-] systemd-sysext
[edit]
[-] systemd-sysusers
[edit]
[-] systemd-tmpfiles
[edit]
[-] systemd-tty-ask-password-agent
[edit]
[-] systemd-umount
[edit]
[-] systemd-vpick
[edit]
[-] tabs
[edit]
[-] tac
[edit]
[-] tail
[edit]
[-] tar
[edit]
[-] taskset
[edit]
[-] tee
[edit]
[-] test
[edit]
[-] timedatectl
[edit]
[-] timeout
[edit]
[-] top
[edit]
[-] touch
[edit]
[-] tput
[edit]
[-] tr
[edit]
[-] true
[edit]
[-] truncate
[edit]
[-] tset
[edit]
[-] tsort
[edit]
[-] tty
[edit]
[-] uclampset
[edit]
[-] udevadm
[edit]
[-] umount
[edit]
[-] uname
[edit]
[-] uncompress
[edit]
[-] unexpand
[edit]
[-] uniq
[edit]
[-] unlink
[edit]
[-] unshare
[edit]
[-] unsquashfs
[edit]
[-] uptime
[edit]
[-] users
[edit]
[-] varlinkctl
[edit]
[-] vdir
[edit]
[-] vi
[edit]
[-] view
[edit]
[-] vim.tiny
[edit]
[-] visudo-rs
[edit]
[-] vmstat
[edit]
[-] w
[edit]
[-] waitpid
[edit]
[-] watch
[edit]
[-] wc
[edit]
[-] wdctl
[edit]
[-] whereis
[edit]
[-] which
[edit]
[-] which.debianutils
[edit]
[-] who
[edit]
[-] whoami
[edit]
[-] wpa_passphrase
[edit]
[-] x86_64
[edit]
[-] xargs
[edit]
[-] xdg-email
[edit]
[-] xdg-open
[edit]
[-] xdg-settings
[edit]
[-] yes
[edit]
[-] ypdomainname
[edit]
[-] zcat
[edit]
[-] zcmp
[edit]
[-] zdiff
[edit]
[-] zegrep
[edit]
[-] zfgrep
[edit]
[-] zforce
[edit]
[-] zgrep
[edit]
[-] zless
[edit]
[-] zmore
[edit]