linux shell命令之用shc对脚本进行加密

安装shc
sudo apt install shc

shc -v -f color_script.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec ‘%s‘ "$@"
shc [-l]=
shc opts=
shc: cc color_script.sh.x.c -o color_script.sh.x
shc: strip color_script.sh.x
shc: chmod go-r color_script.sh.x

会成生 color_script.sh.x和 color_script.sh.x.c的源文件
color_script.sh.x.c这个是C语言写的,在此就不进行粘贴了

./color_script.sh.x
Hello everyone Be happy every day!

但打开文件color_script.sh.x时,发现是乱码

linux shell命令之用shc对脚本进行加密

上一篇:[Linux]samba安装与使用


下一篇:vmware中网络连接的桥接、NAT、主机模式的原理和区别