Protect shell script source code


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Protect shell script source code
# 1  
Old 10-06-2008
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 08:30 AM..
# 2  
Old 10-06-2008
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 08:19 AM.. Reason: Add link
# 3  
Old 10-06-2008
# 4  
Old 10-06-2008
Thanks for the suggestions. But this is a requirement for solaris
# 5  
Old 10-06-2008
The tool should hopefully be portable.
# 6  
Old 10-06-2008
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  
Old 10-06-2008
@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?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script Comment code blocks in a bash source file

Just began to learn on Shell Script. I got an exercise from my friend. I know how to make this happen in C, but I'm not familiar with Shell Script. Hope I can get some help from all of you. I want to write a bash script to comment code blocks in a bash source file. What I mean comment is '#', I... (1 Reply)
Discussion started by: HiFuture0801
1 Replies

2. Shell Programming and Scripting

Standardization of input source data files using shell script

Hi there, I'm a newbie in unix and am fishing for options related to how raw input data files are handled. The scenario, as I'm sure y'all must be very familiar with, is this : we receive upwards of 50 data files in ASCII format from various source systems - now each file has its own structure... (3 Replies)
Discussion started by: Prat Khos
3 Replies

3. Shell Programming and Scripting

Block of code replacement in Java source code through Unix script

Hi, I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory. finally { if (null != hibernateSession && hibernateSession.isOpen()) { //hibernateSession.close(); } } It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies

4. Shell Programming and Scripting

Shell Script to display function names (called & defined) in a C++ Source Code

Hello to all, I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for... (2 Replies)
Discussion started by: frozensmilz
2 Replies

5. Shell Programming and Scripting

Run Script in K Shell using Source

Hi While running a Shell Script in a K Shell using the source command source <script_name> It gives the error .. source: not found. Null message body; hope that's ok Is it that the source command does not work in K Shell. It works well in bash shell. (2 Replies)
Discussion started by: harneet2004us
2 Replies

6. Shell Programming and Scripting

Shell script to transfer the files from source to target server.

I need to write a shell script to transfer the files every hour from source - target server. The cron job should be running every hour and shouldn't copy already copied files to the remote server ? I was able to write intial script but not able to get the logic for (in the next run it should... (12 Replies)
Discussion started by: radhirk
12 Replies

7. Shell Programming and Scripting

Source Env file in the Shell Script

Hi I am having a script which sets the application environment. In this script i am sourcing the applications env file, when i am debugging the script i see its executing all the environment values and all the variable values are set properply. Once this main shell script executes, then... (4 Replies)
Discussion started by: umakanthly
4 Replies

8. Shell Programming and Scripting

Tidy shell script source file

Hi all, Is there a tool to tidy up shell script source file and reformat it. Preferably I am looking for a perfect tool to do this. Also I have heard it is possible to do with emacs editor but unfortunately it is looking very different and new from vi. Emacs is new to me and I could not find... (1 Reply)
Discussion started by: meharo
1 Replies

9. Shell Programming and Scripting

source code for a shell

if somebody can help me pls. i need the source code for a shell which compiles C or java programs in unix i need a very short and simple one, just the compiling part Respect (2 Replies)
Discussion started by: zlatan005
2 Replies
Login or Register to Ask a Question