微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/bash/391607.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐