The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
jkkstar jkkstar is offline
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..
  #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
  #3 (permalink)  
Old 10-06-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

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

Join Date: Sep 2008
Posts: 2
Thanks for the suggestions. But this is a requirement for solaris
  #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.
  #6 (permalink)  
Old 10-06-2008
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,864
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.
  #7 (permalink)  
Old 10-06-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,425
@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?
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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