shc命令

今天在公司看到业务系统有一个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

  

加密后的文件 不影响运行

 

原文地址:https://www.cnblogs.com/pangbing/p/13991688.html