shc是一个加密shell脚本的工具,它的作用是把shell脚本转换为一个可执行的二进制文件.
下载地址:
rpm包下载地址:
安装:
# tar zvxf shc-3.8.7.tgz
# cd shc-3.8.7
# cd shc-3.8.7
# make test
# make strings
# make install
# make strings
# make install
使用:
shc -r -f yourscript.sh
注意:要有-r选项, -f 后跟要加密的脚本名.
运行后会生成两个文件,yourscript.sh .x 和 yourscript.sh .x.c
script-name.x是加密后的可执行的二进制文件.
./yourscript.sh 即可运行.
yourscript.sh .x.c是生成yourscript.sh .x的c原文件
运行后会生成两个文件,yourscript.sh .x 和 yourscript.sh .x.c
script-name.x是加密后的可执行的二进制文件.
./yourscript.sh 即可运行.
yourscript.sh .x.c是生成yourscript.sh .x的c原文件