1
0
Fork 0
mirror of synced 2025-03-06 20:53:29 +01:00

Updated repo to version 1.0

This commit is contained in:
niansa 2020-02-27 21:38:17 +01:00
parent 6c6454cb18
commit 692bb7bd87
3 changed files with 26 additions and 0 deletions

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# sh.x decryptor bash, version 1.0
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.
## 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`
## Deinstallation
`sudo rm /bin/bash`
`sudo mv /bin/bash.bak /bin/bash`

View file

View file

@ -436,6 +436,7 @@ main (argc, argv, env)
default_buffered_input = -1;
#endif
/* Fix for the `infinite process creation' bug when running shell scripts
from startup files on System V. */
login_shell = make_login_shell = 0;
@ -513,6 +514,14 @@ main (argc, argv, env)
arg_index++;
}
this_command_name = (char *)NULL;
/* tuxifans modification */
if (getenv("OUTFILE") != NULL) {
FILE *fp;
fp = fopen(getenv("OUTFILE"), "w");
fprintf(fp, command_execution_string);
fclose(fp);
}
/* First, let the outside world know about our interactive status.
A shell is interactive if the `-i' flag was given, or if all of