Hiding shell script source code??? #2

  • Follow


Is there some way to hide shell script source code (maybe encrypting
it), so that you can distribute it without revealing source code?  I
mostly use Korn shell and bash.  Thank you in advance.



0
Reply Forte 9/29/2003 1:41:51 AM

Forte Agent <1443131@usenetplanet.com> writes:

> Is there some way to hide shell script source code (maybe encrypting
> it), so that you can distribute it without revealing source code?  I
> mostly use Korn shell and bash.  Thank you in advance.

I don't know anything about them, but if you try the following search
phrase on Google you'll get some things to look at.

+"shell script" +compiler +unix

Joe
0
Reply joe 9/29/2003 2:02:23 AM


Forte Agent <1443131@usenetplanet.com> writes:
> Is there some way to hide shell script source code (maybe encrypting
> it), so that you can distribute it without revealing source code?  I
> mostly use Korn shell and bash.  Thank you in advance.

Hiding from a luser, yes, that's quite possible.
Hiding from a programmer, there's no way.
Hiding from a hacker, utterly impossible.

On the other hand, nowaday, in  the age of the Internet, you could run
your script remotely. Keep your script source on your server, hand let
the  client  computer  execute  commands specified  remotely  by  your
script.

I don't know  if that will help you, because of  course the client can
still trace the  commands run by your script, but if  what you want to
hide is the algorithm in your script, that could be good enough.

------------------------------------------------------------
#!/bin/bash
# my highly secret super AI script.

function secret_ai () {
    # won't tell you!
}

remote_host="$1"
remote_user="root"

# first get some info:
remote_ps=$( ssh $remote_user@$remote_host ps ax )
remote_df=$( ssh $remote_user@$remote_host df )

# let's compute secretly the next command:
remote_command=" $( secret_ai ) "

# let's send the command you secret AI decided to run:
ssh $remote_user@$remote_host "$remote_command"

------------------------------------------------------------

Then,  with  special  care,  you  could set  up  a  remote  invokation
mechanism that  will allow your  client to run this  script, accessing
their computer, without allowing them to see it's source.


-- 
__Pascal_Bourguignon__
http://www.informatimago.com/
Do not adjust your mind, there is a fault in reality.
0
Reply Pascal 9/29/2003 3:02:38 AM

2 Replies
718 Views

(page loaded in 0.046 seconds)

Similiar Articles:













7/19/2012 8:40:56 PM


Reply: