shell脚本加密

1 gzexe

假如有shell脚本woo.sh。

加密 gzexewoo.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" 会显示脚本的内容

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...