synchronization
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2025-08-25 15:57:40 +08:00
commit cee91802b3
106 changed files with 9124 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
> 本文作者:丁辉
[官方下载地址](http://www.datsi.fi.upm.es/~frosal/)
# Shell脚本加密Shc
## Shc源码部署
1. 下载
```bash
wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9b.tgz
```
2. 解压
```bash
tar -zxvf shc-*.tgz && cd shc-*
```
3. 安装 `gcc 和 make` 后编译
```bash
make && mv shc /usr/local/bin/
```
## Shc网络源部署
- Centos安装
```bash
yum -y install shc
```
- Ubuntu安装
```bash
apt -y install shc
```
**shc参数**
| 参数 | 解释 | 使用示例 |
| :--: | :------------------------------: | :-----------------------------------------------: |
| -e | 指定过期时间 | shc -e 06/09/2023 -f demo.sh |
| -m | 过期后打印出的信息 | shc -e 06/09/2023 -m "File is expired" -f demo.sh |
| -v | 输出verbose 过程信息 | shc -v -f demo.sh |
| -r | 可在相同操作系统的不同主机上执行 | shc -r demo.sh |
| -f | 指定源shell | shc -f demo.sh |