今天在公司看到業務系統有一個query、viewtx 等等命令。雖然不知道是什么語言寫的,但是里邊內容是看不到的。
如果是編譯型語言這樣的結果 我並不奇怪。但是如果我們寫了一個shell腳本 如果加密腳本內容,不讓其他人看到呢?
shc -r -f 要加密的shell腳本文件名稱
結果會生成兩個文件
[root@node2 scripts]# ls
check_command.sh
[root@node2 scripts]# shc -r -f check_command.sh
[root@node2 scripts]# ls
check_command.sh check_command.sh.x check_command.sh.x.c
加密后的文件 不影響運行