Has anyone ever gotten shc compiler program to work. I am trying to encrypt
a bash script on centos. When I run the command "shc -f test.sh", the binary actually gets created; however, when I try to run the binary I get the following the error:
[root@CENTOS scripts]# ./test.sh.x
./test.sh.x: No such file or directory: �#%f���?���{*��E
What might be happening here?
fyi... The following is how I got shc compiler to work:
- find the path to gcc or install it.
- export CC="path to gcc"
3.make
4.mkdir /usr/local/man/man1
5.make install
6.If make install errors out with this error: install: The -c, -f, -n options each
require a directory following!
then:
prompt> install -c /usr/local/bin -s shc /usr/local/bin
prompt> install -c /usr/local/man/man1 -s shc.1 /usr/local/man/man1
- shc -v -r -T -f scriptname.sh
- To execute script type the following: ./scriptname.sh.x
I hope this helps.