1.加壓shc-3.8.9b.tgz
tar xzvf shc-3.8.9b.tgz
cd shc-3.8.9b
2.創建幫助文檔目錄
mkdir -p /usr/local/man/man1
3.安裝
make install
4.安裝完,加密test.sh
shc -r -T -f test.sh
如果要指定過期時間則如下:
shc -e 11/06/2019 -m "The script has expired" -r -T -f test.sh
會生成test.sh.x和test.sh.x.c兩個文件:
test.sh.x是加密後的可執行的二進制文件
test.sh.x.c是生成test.sh.x的C語言原文件