Introduction
Official repository address: https://github.com/neurobin/shc
A generic shell script compiler. Shc takes a script specified in the command line and generates C source code. The generated source code is then compiled and linked to produce a stripped binary executable file.
The compiled binary still depends on the shell specified in the shebang line (i.e., #!/bin/sh) of the original shell script. Therefore, shc does not create fully independent binaries.
Shc itself is not a compiler like cc, but rather encodes and encrypts shell scripts while generating C source code with additional expiration functionality. It then uses the system compiler to build a stripped binary that behaves exactly like the original script. When executed, the compiled binary decrypts and runs the code using the shell -c option.
Installation
|
|
|
|
Testing
|
|