#shc是一个专业的加密shell脚本的工具. Its role is to convert the shell script into an executable binary file, which is a good solution to the script contains IP, password and so do not want to open the problem.
HTTP://WWW.DATSI.FI.UPM.ES/~FROSAL/SOURCES/SHC's official website
wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz
TAR-XF shc-3.8.9.tgz
CD shc-3.8.9
Mkdir-pv/usr/local/man/man1
#这步是必须的, because SHC will install the command into the/usr/local/bin/directory, the help document is stored in the/usr/local/man/man1/directory, if there is no such directory in the system, the installation will be error, you can create this directory and then perform the installation
Make install
#这是要回答yes或者y, can not directly enter, or will error
How to use SHC
Shc-r-F Script-name
After running, two files will be generated, script-name.x and script-name.x.c. Where script-name.x is an executable binary after encryption; run with./script-name. SCRIPT-NAME.X.C is the original file (C language) that generated the script-name.x.
SHC-E 18/10/2019-m "It ' s too late to run this script"-F SCRIPT.S
Reference Document Http://m.jb51.net/article/58853.htm
Method Two:
When using vim to edit a shell script, enter: X in command mode, which prompts for a password, which can also be encrypted.
This article is from the "Change" blog, so be sure to keep this source http://changeflyhigh.blog.51cto.com/8317626/1953695
Shell Scripting Encryption