1 gzexe
假如有shell脚本woo.sh。
加密 gzexe woo.sh
执行后生成:woo.sh woo.sh woo.sh~
解密 gzexe -d woo.sh
2 shc
1编译 官网:http://www.datsi.fi.upm.es/~frosal/ wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.7.tgz tar -zxvf shc-3.8.7.tgz cd shc-3.8.7 mkdir -p /usr/local/man/man1/ make make install 2使用
常用参数: -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(指定要编译的shell的路径及文件名) -r Relax security. Make a redistributable binary which executes on different systems running the same operat-ing system.(可以相同操作系统的不同系统中执行) -v Verbose compilation(编译的详细情况)
用法:shc -r -f script-name
例如:
shc -v -f abc.sh
问题
ps -ef |grep "xxx" 会显示脚本的内容。