shc加密shell脚本

2018-10-13 17:35 shc加密shell脚本已关闭评论

image

 

shc是一个加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件.

yum安装:

yum -y install shc

编译安装:

wget http://d.sshby.com/shc-3.8.7.tgz
tar xvfz shc-3.8.7.tgz
cd shc-3.8.7
make

验证shc是否正确安装

[root@DXL shc-3.8.7]# ./shc -v
shc parse(-f): No source file specified

shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script

[root@DXL shc-3.8.7]#

使用shc加密Shell脚本

[root@DXL shc-3.8.7]# ./shc -v -r -T -f ceshi.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc  ceshi.sh.x.c -o ceshi.sh.x
shc: strip ceshi.sh.x
shc: chmod go-r ceshi.sh.x
[root@DXL shc-3.8.7]#

运行后会生成两个文件,ceshi.sh.x 和 ceshi.sh.x.c
ceshi.sh.x是加密后的可执行的二进制文件
ceshi.sh.x.c是生成script-name.x的原文件(c语言)

版权声明:本文著作权归原作者所有,欢迎分享,谢谢支持!
转载请保留注明:shc加密shell脚本 | DPIP知识库
分类:Shell 标签:

评论已关闭!