部署

yum -y install shc

进行加密

 

[root@bogon ~]# shc -r -v -f test.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc   test.sh.x.c -o test.sh.x
shc: strip test.sh.x
shc: chmod ug=rwx,o=rx test.sh.x
[root@bogon ~]# ls -l
总用量 44
-rw-------. 1 root root  1569 7月  19 18:55 anaconda-ks.cfg
-rw-r--r--. 1 root root     4 10月  9 14:21 kkk
-rw-r--r--. 1 root root   238 10月 13 11:30 test.sh
-rwxrwxr-x. 1 root root 11392 10月 13 11:41 test.sh.x
-rw-r--r--. 1 root root 18472 10月 13 11:41 test.sh.x.c
[root@bogon ~]# ls
anaconda-ks.cfg  kkk  test.sh  test.sh.x  test.sh.x.c
[root@bogon ~]# mv test.sh.x test
[root@bogon ~]# ls
anaconda-ks.cfg  kkk  test  test.sh  test.sh.x.c
[root@bogon ~]# ./test
[root@bogon ~]# cat kkk
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
[root@bogon ~]#

 

  

posted on 2022-10-13 11:52  属于我的梦,明明还在  阅读(82)  评论(0)    收藏  举报