- 论坛徽章:
- 0
|
可能是我土,刚刚发现的,大家不要见笑。
shc是一个加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件.
shc的下载地址:
http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.6.tgz
安装:
tar zxvf shc-3.8.6.tgz
cd shc-3.8.6
make test
make
make test
make strings
make install
使用方法:
shc [OPTIONS] ex.sh
OPTIONS
如下:
-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
说起来也算是对shell的一种保护吧。大家可以研究下。 |
|