A method of translating shell scripts into binary execution files

Source: Internet
Author: User
Because of the need for plaintext to display passwords in the script, the idea is to encapsulate the already edited shell script into a binary executable file.
Using the tool SHC
Official Download site: http://www.datsi.fi.upm.es/~frosal/
Use the latest version: Shc-3.8.9b.tgz

TAR-ZXVF shc-3.8.9b.tgz
CD shc-3.8.9b/
Make

After the compilation is successful
Add an executable file to the current directory SHC
CP shc/usr/local/bin/

Using commands
Shc-f xxx.sh
Generating xxx.sh.x is an executable binary file

The second type is Gzexe, but Gzexe can convert the plaintext directly.

A method of translating shell scripts into binary execution files

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.