• 欢迎访问好鸭博客网站,WordPress信息,WordPress教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入 QQ群
  • Git主题现已支持滚动公告栏功能,兼容其他浏览器,看到的就是咯,在后台最新消息那里用li标签添加即可。

使用SHC加密shell脚本的教程

Linux haoduck 3年前 (2021-02-24) 215次浏览 1个评论

Debian下可以直接apt安装

apt-get install -y shc

如果没有安装gcc也要安装,否则会出现sh: 1: cc: not found

apt-get install -y shc gcc

加密脚本

shc -f 脚本路径
root@db-3:~/shc# echo -e '#!/bin/bash\necho hello haoduck.com' > test.sh
root@db-3:~/shc# shc -f test.sh
root@db-3:~/shc# ls
test.sh  test.sh.x  test.sh.x.c
root@db-3:~/shc# ./test.sh.x
hello haoduck.com

执行shc -f test.sh后,会在shell脚本同目录下生成test.sh.x.ctest.sh.x

test.sh.x就是我们需要的


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:使用SHC加密shell脚本的教程
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. 大佬你的文章里有html代码
    Kyon2021-02-25 19:39 Reply