- shc工具获取:https://github.com/neurobin/shc
- shc安装
- 方法一
- ./configure
- make
- sudo make install
- 方法二
- sudo add-apt-repository ppa:neurobin/ppa
- sudo apt-get update
- sudo apt-get install shc
- 方法一
- 脚本加密
- shc -e 01/10/2023 -H -f SafeRulesCheck.sh -o SafeRulesCheck
- 注意:
- 若要执行生成的二进制文件,环境中需要安装shc
- shc对脚本加密后,在不同操作系统下是不可用的,需要重新加密