From b88d2f57f08ea61104dfcf05ef6456031b2d41ef Mon Sep 17 00:00:00 2001 From: Giuseppe Di Terlizzi Date: Tue, 11 Jul 2017 20:59:48 +0700 Subject: development/shc: Updated for version 3.9.6, new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- development/shc/README | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'development/shc/README') diff --git a/development/shc/README b/development/shc/README index ab1e45923f..be04109cc4 100644 --- a/development/shc/README +++ b/development/shc/README @@ -1,8 +1,15 @@ -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. +shc - Shell script compiler -Use with care. +SHC is a generic shell script compiler. It 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. -After installation, try it with - shc -v -r -T -f myscript +The compiled binary will still be dependent on the shell specified in the first +line of the shell code (i.e shebang: #!/bin/sh or such), thus shc does not +create completely independent binaries. + +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 shells' -c option. -- cgit v1.2.3