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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Linux Shell Question: how to print the shell script name ? meili100 UNIX for Dummies Questions & Answers 3 07-01-2008 10:55 AM
Difference between writing Unix Shell script and AIX Shell Scripts haroonec AIX 0 04-11-2006 11:27 PM
How to run unix commands in a new shell inside a shell script? hkapil Shell Programming and Scripting 2 01-04-2006 03:56 AM
how to encript password in .netrc file getgopu25 Shell Programming and Scripting 1 06-13-2005 04:16 AM
simple shell - how to get a parameter typed in a shell script cmitulescu Shell Programming and Scripting 3 12-05-2001 12:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-22-2005
Registered User
 

Join Date: Sep 2005
Posts: 6
how to encript a shell

I have a unix shell, there is a way to encript the whole shell, and be able to run the encripted shell, so I can give my client the encripted shell, and he can't see the code I wrote?
Reply With Quote
Forum Sponsor
  #2  
Old 09-22-2005
Registered User
 

Join Date: Jan 2005
Posts: 682
Shell scripts can not be encrypted and run from the encrypted state.
Reply With Quote
  #3  
Old 09-22-2005
Registered User
 

Join Date: Sep 2005
Posts: 6
and there is a trick to do it? I meant to have a shell, but hide the code?
Reply With Quote
  #4  
Old 09-22-2005
Registered User
 

Join Date: Jan 2005
Posts: 682
I think that you misunderstood me.

You can encrypt a shell script but, once it is encrypted, you can not execute it unless you decrypt it. This, therefore, means that the script is still unsecure and your client will be able to view your code if he's determined to.

All he has to do is read the decrypted script while it is running.
Reply With Quote
  #5  
Old 09-22-2005
Registered User
 

Join Date: Jan 2005
Posts: 682
Sorry, I can make the answer simpler. If you want the code hidden, you have to control it at the Unix read/write/execute file security level. If your client owns the system, he'll be able to gain whatever access he needs to so he can view the code.

The short answer to your question is that you will not be able to prevent him from viewing your script.
Reply With Quote
  #6  
Old 09-22-2005
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,249
There is a trick you can use to hide the code of a script: just use gzexe.
Reply With Quote
  #7  
Old 09-22-2005
Registered User
 

Join Date: Jan 2005
Posts: 682
But it is only superficially hidden since gzexe -d brings it back to a decompressed state.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 05:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0