Crmgo Blog

Compiling bash with the help of shc

Compiling bash with the help of shc

Download the program from the source http://www.datsi.fi.upm.es/~frosal/, then extract it: mw shc-3.x.x.c shc.c make make test OPTIONS

Compiling bash with the help of shc

Download the program from the site http://www.datsi.fi.upm.es/~frosal/

Unpack the archive

mw shc-3.x.x.c shc.c

make

make test

shc -v -r -T -f myscript

OPTIONS

     The command line options are:

     -e date
          Expiration date in dd/mm/yyyy format [none]

     -m message
          message to display  upon  expiration  ["Please  contact
          your provider"]

     -f script_name
          File name of the script to compile

     -i inline_option
          Inline option for the shell interpreter i.e: -e

     -x comand
          eXec    command,    as    a    printf    format    i.e:
          exec(\\'%s\\',@ARGV);

     -l last_option
          Last shell option i.e: --

     -r   Relax security. Make  a  redistributable  binary  which
          executes  on different systems running the same operat-
          ing system.

     -v   Verbose compilation

     -D   Switch on debug exec calls

     -T   Allow binary to be  traceable  (using  strace,  ptrace,
          truss, etc.)

     -C   Display license and exit

     -A   Display abstract and exit

     -h   Display help and exit

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.