1
0
Fork 0
mirror of synced 2025-03-06 20:53:29 +01:00
Decryptor for shc/sh.x compiled bash scripts
Find a file
2023-09-15 02:41:20 +02:00
builtins Bash-5.0 patch 15: aliases and -c commands can cause premature termination 2020-02-07 15:19:53 -05:00
cross-build bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
CWRU bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
doc bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
examples bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
include bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
lib Bash-5.0 patch 13: reading history entries with timestamps can result in joined entries 2020-02-07 15:17:29 -05:00
m4 Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
po bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
support bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
tests Bash-5.0 patch 10: changes to posix-mode assignment statements preceding functions and special builtins 2019-08-29 11:20:15 -04:00
.gitignore update .gitignore for developers 2018-03-06 15:54:12 -05:00
ABOUT-NLS bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
aclocal.m4 bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
alias.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
alias.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
array.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
array.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
arrayfunc.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
arrayfunc.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
assoc.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
assoc.h Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
AUTHORS Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
bashansi.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
bashhist.c Bash-5.0 patch 8: fix history offset when HISTSIZE == 0 that can lead to crashes 2019-08-14 14:57:48 -04:00
bashhist.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
bashintl.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
bashjmp.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
bashline.c Bash-5.0 patch 14: edit-and-execute-command does not handle empty command lines 2020-02-07 15:18:41 -05:00
bashline.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
bashtypes.h Bash-4.1 distribution source 2011-11-21 20:51:19 -05:00
bracecomp.c Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
braces.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
builtins.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
ChangeLog Bash-4.2 distribution sources and documentation 2011-11-22 19:11:26 -05:00
CHANGES bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
command.h Bash-5.0 patch 5: prevent optimizing forks away too aggressively 2019-04-20 14:25:52 -04:00
COMPAT bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
config-bot.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
config-top.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
config.h.in bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
configure bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
configure.ac bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
configure.in Bash-4.2 distribution sources and documentation 2011-11-22 19:11:26 -05:00
conftypes.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
copy_cmd.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
COPYING Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
dispose_cmd.c Bash-4.1 distribution source 2011-11-21 20:51:19 -05:00
dispose_cmd.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
error.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
error.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
eval.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
execute_cmd.c Bash-5.0 patch 16: bash waits too long to reap /dev/fd process substitutions with loops and group commands 2020-02-07 15:20:38 -05:00
execute_cmd.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
expr.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
externs.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
findcmd.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
findcmd.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
flags.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
flags.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
general.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
general.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
hashcmd.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
hashcmd.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
hashlib.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
hashlib.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
input.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
input.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
INSTALL bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
jobs.c Bash-5.0 patch 7: fix exec builtin leaving the terminal in the wrong process group 2019-04-20 14:27:56 -04:00
jobs.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
list.c Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
locale.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
mailcheck.c Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
mailcheck.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
make_cmd.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
make_cmd.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
Makefile.in bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
MANIFEST bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
MANIFEST.doc Imported from ../bash-4.0.tar.gz. 2009-09-12 16:47:02 +00:00
mksyntax.c Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
NEWS bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
nojobs.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
NOTES Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
parse.y Bash-5.0 patch 2: fix expansion of aliases whose value ends with an unquoted tab 2019-01-18 15:13:57 -05:00
parser-built bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
parser.h Bash-5.0 patch 2: fix expansion of aliases whose value ends with an unquoted tab 2019-01-18 15:13:57 -05:00
patchlevel.h Bash-5.0 patch 16: bash waits too long to reap /dev/fd process substitutions with loops and group commands 2020-02-07 15:20:38 -05:00
pathexp.c Bash-5.0 patch 3: improvements when globbing directory names containing backslashes 2019-03-19 10:05:39 -04:00
pathexp.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
pathnames.h.in Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
pcomplete.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
pcomplete.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
pcomplib.c Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
POSIX bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
print_cmd.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
quit.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
RBASH Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
README.md Fixed build-essential package name 2023-09-15 02:41:20 +02:00
README.old Updated repo to version 1.0 2020-02-27 21:38:17 +01:00
redir.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
redir.h Bash-4.3 distribution sources and documentation 2014-02-26 09:36:43 -05:00
run.py Rewritten quickuse.sh 2020-02-28 16:09:58 +01:00
shell.c Proper error handling 2023-09-15 01:55:10 +02:00
shell.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
sig.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
sig.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
siglist.c Bash-4.1 distribution source 2011-11-21 20:51:19 -05:00
siglist.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
stringlib.c Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
subst.c Bash-5.0 patch 11: fix quoted null character removal in operands of conditional ([[) commands 2019-08-29 11:21:20 -04:00
subst.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
syntax.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
test.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
test.h Bash-4.1 distribution source 2011-11-21 20:51:19 -05:00
thisisshxdumper Rewritten quickuse.sh 2020-02-28 16:09:58 +01:00
trap.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
trap.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
unwind_prot.c Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
unwind_prot.h Bash-4.4 distribution sources and documentation 2016-09-15 16:59:08 -04:00
variables.c Bash-5.0 patch 10: changes to posix-mode assignment statements preceding functions and special builtins 2019-08-29 11:20:15 -04:00
variables.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
version.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
xmalloc.c bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
xmalloc.h Imported from ../bash-4.0-rc1.tar.gz. 2009-09-12 16:47:00 +00:00
y.tab.c Bash-5.0 patch 2: fix expansion of aliases whose value ends with an unquoted tab 2019-01-18 15:13:57 -05:00
y.tab.h bash-5.0 distribution sources and documentation 2019-01-07 09:27:52 -05:00
Y2K Imported from ../bash-3.0.tar.gz. 2009-09-12 16:46:56 +00:00

sh.x dumper for bash

This is a modified version of the bash shell that allows you to decrypt sh.x (shc compiled) scripts. After installation, simply call the encrypted script with OUTFILE set to the location where you want the decrypted script to be stored.

The automatic and easy way

Usage

Normal usage

Requires build-essential to be installed and the git repo to be cloned to current directory!

sudo python3 ./run.py dump ./encrypted.sh.x ./decrypted.sh

On-the-fly usage

Requires build-essential, automake and git to be installed!

sudo true && wget -q -O- https://github.com/niansa/bash-shxdumper/raw/master/run.py | sudo python3 /dev/stdin dump ./encrypted.sh.x ./decrypted.sh

The manual but harder way

Usage

OUTFILE=./decrypted.sh ./encrypted.sh.x

Compilation

./configure

make -j$(nproc) || make

Installation

sudo mv /bin/bash /bin/bash.bak && sudo cp ./bash /bin/bash

Uninstallation

sudo rm /bin/bash

sudo mv /bin/bash.bak /bin/bash

sudo chmod a+x /bin/bash

Sidenote

Feel free to leave it installed, it won't change anything in your system except a little nice new way to decrypt sh.x scripts! (and a little outdated master branch bash version lol)