Compiling Bash shell scripts
Conclusions
SHC ranks somewhere between a gadget and a useful tool. Binary programs generated by the compiler are not genuinely secure (i.e., NSA-proof): For one thing, they only work if all the external programs needed in the script are available on the executing computer; for another, you can still reconstruct the original source code with some effort [5].
The benefits lie in ease of use and the ability to provide protection against accidental changes to scripts. The alternatives to SHC also have special requirements or are even less portable.
Infos
- SHC: http://www.datsi.fi.upm.es/~frosal/
- SHC decryption: http://www.l0d.org/Decrypt_an_shc_crypted_file-4.html
- obfsh: http://www.comp.eonworks.com/scripts/obfuscate_shell_script-20011012.html
- ShellCrypt: https://sourceforge.net/projects/shellcrypt/
- Source code recovery: http://stackoverflow.com/questions/3408373/retrieve-plain-text-script-from-compiled-bash-script
« Previous 1 2
Buy this article as PDF
(incl. VAT)