You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A generic shell script compiler. Shc takes a script, which is
6
-
specified on the command line and produces C source code. The
7
-
generated source code is then compiled and linked to produce a
8
-
stripped binary executable.
8
+
A generic shell script compiler. Shc takes a script, which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a stripped binary executable.
9
9
10
-
The compiled binary will still be dependent on the shell specified in the
11
-
first line of the shell code (i.e shebang) (i.e. #!/bin/sh), thus shc does not create com‐
12
-
pletely independent binaries.
10
+
The compiled binary will still be dependent on the shell specified in the first line of the shell code (i.e shebang) (i.e. #!/bin/sh), thus shc does not create completely independent binaries.
13
11
14
-
shc itself is not a compiler such as cc, it rather encodes and encrypts a
15
-
shell script and generates C source code with the added expiration capability.
16
-
It then uses the system compiler to compile a stripped binary which behaves
17
-
exactly like the original script. Upon execution, the compiled binary will
18
-
decrypt and execute the code with the shell -c option.
12
+
shc itself is not a compiler such as cc, it rather encodes and encrypts a shell script and generates C source code with the added expiration capability. It then uses the system compiler to compile a stripped binary which behaves exactly like the original script. Upon execution, the compiled binary will decrypt and execute the code with the shell -c option.
19
13
20
-
# Install:
14
+
##Install
21
15
22
16
1. ./configure
23
17
2. make
24
18
3. sudo make install
25
19
26
-
**Note:** If `make` fails due to *automake* version, run `./autogen.sh` before running the above commands.
20
+
**Note** If `make` fails due to *automake* version, run `./autogen.sh` before running the above commands.
27
21
28
-
##On Ubuntu:
22
+
### Ubuntu-specific
29
23
30
24
```
31
25
sudo add-apt-repository ppa:neurobin/ppa
@@ -35,34 +29,26 @@ sudo apt-get install shc
35
29
36
30
If the above installation method seems like too much work, then just download a compiled binary package from [release page](https://github.com/neurobin/shc/releases/latest) and copy the `shc` binary to `/usr/bin` and `shc.1` file to `/usr/share/man/man1`.
0 commit comments