dufault.info

Ramblings of a phone weenie, Linux sysadmin, and other things geeky

10  07 2008

Compiling a Shell Script To Obscure the Source

Well, there’s been a few times that I’ve written a shell script that was really neat.  Something that other people would have paid for a copy of. (I was too lazy to rewrite it in another language.) Up until now, I wasn’t aware you could compile a shell script, in the attempts from keeping people from pirating your work. Apparently I’ve head my head stuck in the sand.

Here’s the link to the manual page for it: shc

Here’s the link to the tool: shc.tgz

I’ve tried this with bash and sh scripts, it seems to work great.

Also, before you think that it’s 100% secure (nothing really is) there’s already been a audit of the process, and an auditor was able to decompile the original script from the encrypted binary. Source

Share and Enjoy:
  • Digg
  • del.icio.us
  • Mixx
  • StumbleUpon
  • Technorati

1 Comment

(Required)
(Required, will not be published)

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.

« Installing a grsec-patched kernel on a CentOS 5 or RHEL 5 server Missing Google Maps Mobile v2.2.0 on a Windows Mobile phone »