The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to run perl code within a shell script...? vijay_0209 Shell Programming and Scripting 1 10-03-2008 06:24 AM
source code for a shell zlatan005 Shell Programming and Scripting 2 06-18-2008 06:10 AM
How to embed shell script in a awk code rajbal Shell Programming and Scripting 8 09-28-2006 04:19 PM
Can anyone find a bug in this code?? shell script amon Shell Programming and Scripting 1 09-19-2006 02:11 AM
Hide code in shell script??? alan Shell Programming and Scripting 11 08-01-2003 11:33 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
Registered User
 

Join Date: Sep 2008
Posts: 2
Protect shell script source code

Hello,

Is there any way where a shell scripts source code can be protected? Basically, I'm after to convert shell scripts into to some form of binaries so that my shell script source code can be protected.

Forgot to mention, this is on solaris.

Many thx,


kam

Last edited by jkkstar; 10-06-2008 at 07:30 AM..
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-06-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
There's a tool called shc but it's by no means perfect.

http://www.datsi.fi.upm.es/~frosal/sources/

Last edited by era; 10-06-2008 at 07:19 AM.. Reason: Add link
Reply With Quote
  #3 (permalink)  
Old 10-06-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 5,214
See this about shc -
shc(1): Generic shell script compiler - Linux man page
Reply With Quote
  #4 (permalink)  
Old 10-06-2008
Registered User
 

Join Date: Sep 2008
Posts: 2
Thanks for the suggestions. But this is a requirement for solaris
Reply With Quote
  #5 (permalink)  
Old 10-06-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
The tool should hopefully be portable.
Reply With Quote
  #6 (permalink)  
Old 10-06-2008
otheus's Avatar
otheus otheus is online now Forum Staff  
Moderator ala Mode
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,770
Keep in mind, btw, that such an executable is probably not hard to reverse-compile. Using strings(), ltrace() and strace(), it can be fairly easy to know what's going on. However, at least your source will be protected.
Reply With Quote
  #7 (permalink)  
Old 10-06-2008
Registered User
 

Join Date: Sep 2006
Posts: 2,327
@OP , you don't need to do that. Just give the necessary permissions for anyone who is ever going to use the script. Even if you compile your source and become executable, how are you going to protect your original source code?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 04:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66