Updated repo to version 1.0
This commit is contained in:
parent
6c6454cb18
commit
692bb7bd87
3 changed files with 26 additions and 0 deletions
17
README.md
Normal file
17
README.md
Normal 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`
|
9
shell.c
9
shell.c
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue