Exit   

sh2bin


This utility allow to hide almost every Bash script into an executable binary file!
Whole Bash script is encrypted so any it's secret codes will not be readable by binary editors even.
In addition the output executable binary file is quite small.
Linux/UNIX administrator appreciates usability of it in many situations.

Micro manual


Requirements

1. g++ command (from GNU GCC) accessible thru PATH user environment variable
2. Bash shell configured as default user system shell.                                              


Installation

Download program tarball to disk and check it's hash sum.
Package MD5 Supported OS and architecture
sh2bin-0.34-linux-x64.tar.gz c6bccb981601d34a70ab25ad7b9b30c2 Linux x86-64
sh2bin-0.34-linux-x32.tar.gz bd3db05d58731d95e3301aa0c47d4dcb Linux x86-32
sh2bin-0.34-haiku-x64.zip 7f054d80b6cbe51eb27a53f60b4c6c47 Haiku x86-64
sh2bin-0.23-beos.zip 88df27a818b157932e2e0732f43710f9 BeOS x86-32
Be shure that you download proper file for your operating system and processor architecture!

Next unpack this tarball and copy your Bash script to just created directory.
Finaly there are README, sh2bin, sh2bin.lib and your script - 4 files in this directory.


Usage

Enter to sh2bin directory and type command:
./sh2bin script

where 'script' is name of the file with your Bash script.
This create bin file - executable binary file in sh2bin directory,
then rename bin file and run it as you want.


Important notes

Sometimes there may be a problem depend on not properly reading Bash $0 parameter.
So change $0 words to predefined $ZER0 variable (which is identical to argv[0]) in your script as needed! Nonetheless don't forget that $0 Bash parameter is not the same as argv[0] in C++ programming language!


License

The license for this program and downloadable package is free of charge for non commercial targets only!
More informations are included in downloadable tarball.


Links

GNU GCC home page: gcc.gnu.org                       
 GNU Bash home page: www.gnu.org/software/bash

∗∗∗