加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

shell脚本加密

发布时间:2020-12-15 16:34:25 所属栏目:安全 来源:网络整理
导读: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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读