Shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files and performs automatic maintenance on the system using shell scripts, which is simple, convenient, and portable. however, shell scripts can be read and written, and sensitive information such as user name, password, path, and IP address may be leaked. similarly, sensitive information is exposed when shell scripts are run. shc is a tool for encrypting shell scripts. its shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files and performs automatic maintenance on the system using shell scripts, which is simple, convenient, and portable.
However, shell scripts can be read and written, and sensitive information such as user name, password, path, and IP address may be leaked.
Similarly, sensitive information is exposed when shell scripts are run.
Shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files.
This solves the above problems.
Install shc
Yum-y install shc
If yum cannot be installed, go to official download rpm package http://pkgs.repoforge.org/shc/
Usage:
Shc-r-f script-name Note: The-r option must be available.-f is followed by the script name to be encrypted.
Two files, script-name.x and script-name.x.c, are generated after running
The script-name.x is an encrypted executable binary file.
./Script-name to run.
Script-name.x.c is the original file for generating script-name.x (C)