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!
相關文章
相關標籤/搜索