shc加密shell脚本

[root@ansible shell]# less test.sh 
#!/bin/bash

echo "Hello World!"
[root@ansible shell]# ./test.sh 
Hello World!
[root@ansible shell]# shc -r -v -T -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
test.sh.x.c: In function 'chkenv':
test.sh.x.c:216: warning: cast from pointer to integer of different size
shc: strip test.sh.x
shc: chmod go-r test.sh.x
[root@ansible shell]# ls
test.sh  test.sh.x  test.sh.x.c 
[root@ansible shell]# ./test.sh.x 
Hello World!

 

posted @ 2017-05-16 10:23  圣光救赎者  阅读(585)  评论(0编辑  收藏  举报