Shell Scripting Encryption

Source: Internet
Author: User

#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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.