一.概述
1.shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件;
二.安装
1.下载安装包:http://download.chinaunix.net/download/0010000/9497.shtml
2.解压:tar -zxvf shc-3.8.3.tgz
3.cd shc-3.8.3
4.make test
5.make
6.make strings
7.make install
三.使用方法
1.shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script
2.shc -v -r -T -f test.sh
3.常用参数
4.加密之后会出现两个文件:file.sh.x.c file.sh.x,其中file.sh.x为可执行的二进制文件,可以这么使用:将脚本加密,然后将脚本中的密码等信息删除,将脚本备份。1)-v:列出编译的详细情况;
2)-r:可以相同操作系统的不同系统中执行;
3)-f:指定需要加密的脚本;