Shell 脚本加密工具shc

来源:互联网 发布:家庭移动网络布线图 编辑:程序博客网 时间:2024/04/27 04:08
shc是一个加密shell脚本的工具,它的作用是把shell脚本转换为一个可执行的二进制文件.
下载地址:
http://www.datsi.fi.upm.es/~frosal/
rpm包下载地址:
http://pkgs.repoforge.org/shc/
安装:
# wgethttp://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz
# tar zvxf shc-3.8.7.tgz
# cd shc-3.8.7
# make test
# 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原文件
 
原创粉丝点击