README 797 B

12345678910111213141516
  1. shc - Shell script compiler
  2. SHC is a generic shell script compiler. It takes a script, which is specified on
  3. the command line and produces C source code. The generated source code is then
  4. compiled and linked to produce a stripped binary.
  5. The compiled binary will still be dependent on the shell specified in the first
  6. line of the shell code (i.e shebang: #!/bin/sh or such), thus shc does not
  7. create completely independent binaries.
  8. shc itself is not a compiler such as cc, it rather encodes and encrypts a shell
  9. script and generates C source code with the added expiration capability. It then
  10. uses the system compiler to compile a stripped binary which behaves exactly like
  11. the original script. Upon execution, the compiled binary will decrypt and
  12. execute the code with the shells' -c option.