LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Thread Tools
Old 10-07-2005, 09:16 AM   #1
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Thanked: 0
Compile/Encrypt Bash Script


[Log in to get rid of this advertisement]
Hey all...

I've done some freelance work on a project for a company, and other companies are interested in acquiring the work.

The project involved bash scripts and a web interface. I'd like to package the "product" and protect my source code. That is, compile it or at least scramble or "obfuscate" (i think the word is) it so as to prevent any stealing of my source.

Can this be done? If yes, how?

Is this necessary?

Thanx
DoubleOTeC is offline     Reply With Quote
Old 10-07-2005, 09:28 AM   #2
jlightner
Senior Member
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 3,551
Thanked: 147
Have a look at this thread which was about essentially the same question:

http://www.linuxquestions.org/questi...hreadid=370328
jlightner is offline     Reply With Quote
Old 10-08-2005, 12:39 PM   #3
AnanthaP
Member
 
Registered: Jul 2004
Location: India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 233
Thanked: 1
A standard clause in most DBA / integrator contracts is:

Any scripts introduced by the "provider" for use in the "client"s "application" are owned solely by the "provider" and leased to the "client" for use with the "application" for the duration of the contract / in perpetuity.

What it means is that if the provider walks out of the contract, the client is protected but can't use the scripts anywhere else.

End
AnanthaP is offline     Reply With Quote
Old 10-08-2005, 01:14 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 3,697
Thanked: 103
There is a program called shc which will encode a shell script into a binary stream but only as long as the maximum one-line command size (+-512 chars?)
gnashley is offline     Reply With Quote
Old 10-08-2005, 02:52 PM   #5
jlightner
Senior Member
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 3,551
Thanked: 147
Quote:
Originally posted by AnanthaP
A standard clause in most DBA / integrator contracts is:

Any scripts introduced by the "provider" for use in the "client"s "application" are owned solely by the "provider" and leased to the "client" for use with the "application" for the duration of the contract / in perpetuity.

What it means is that if the provider walks out of the contract, the client is protected but can't use the scripts anywhere else.

End
SCO might argue with you about the ability of contracts to protect your code - IBM on the other hand might agree
jlightner is offline     Reply With Quote
Old 10-08-2005, 10:09 PM   #6
primo
Member
 
Registered: Jun 2005
Posts: 541
Thanked: 0
It would be easy to crack as long as /bin/bash could be replaced with /bin/cat, so system() isn't the best way.
primo is offline     Reply With Quote
Old 10-09-2005, 08:33 PM   #7
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266
Thanked: 0

Original Poster
Thanx alot for the responses...

The other thread was an interesting help; didn't turn up in my own searched though...

Looking to try out shc
DoubleOTeC is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypt and decrypt using encrypt(char block[64], int edflag) rockwell_001 Linux - Security 3 08-30-2009 10:16 AM
Bash script to compile kernel Keffin Programming 6 05-03-2004 07:31 PM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 01:20 AM
bash script - incrementing a filename in a script tslinux Programming 10 08-06-2003 12:58 AM
bash script prob: how can i tell the script that a 'dd' has finished? Frustin Linux - General 2 04-02-2003 06:34 AM


All times are GMT -5. The time now is 05:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration