Can’t find usable shell script encryption solution…

It sounds a bit cheesy but I can’t find any usable solution on how to encrypt Linux/Unix shell script in order to protect it’s source code when it’s still executable.

There was a post here about how to protect shell scripts, but I found SHC bug. Just run script that is encrypted with shc and execute command ps ax and you’ll see full source code at ps’s output (newline characters will be replaced with “?” symbol). Because of this fact I can’t use SHC anymore and looking for alternative solution.

It would be very appreciated if you suggest a way how to solve the issue. THANK YOU, mates.

Please follow up with this thread on linuxforums.org.

 
 
» You might also be interested in the following articles:
Encryption files with GPG without user intervention (batch)
Web server oneliner with bash
Find out where Unix/Linux executable binary is located
Automatic "zombie" processes killing (shell script)
Eject/Close CD or DVD media with shell command



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

9 Responses to “Can’t find usable shell script encryption solution…”


  1. 1 artiomix

    Thank you in advance…

  2. 2 UnixFan

    Probably wzshSDK is the only one which can do the job.

  3. 3 artiomix

    Thanks, UnixFan! I’ll try it and post the results here..

  4. 4 artiomix

    UnixFan, it seems that wzshSDK is no longer maintained and I didn’t find a way to get and try it :(
    I’ve written an e-mail to the author and still wait for his reply. Help is still appreciated ;)

  5. 5 artiomix

    Update regarding wzshSDK: author’s e-mail address is unavailable (my e-mail can’t be delivered to it). No luck today…

  6. 6 shahbour

    Hello,

    Were you able to find a solution for that and what are you using now

    Thanks in advance

  7. 7 artiomix

  8. 8 Ste

    I’m looking for anything similar too

  9. 9 Uday

    Did you find any solution for encrypting the shellscripts?

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››