AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  "shc"

    Posted Thu July 17, 2008 01:45 PM

    Originally posted by: prashanth.r


    Hi all,
    Is there an equivalent of "shc", for encrypting scripts, on AIX 5.3, that is part of standard installation? If not, any techniques by which to encrypt or compile the scripts? Thanks!
    #AIX-Forum


  • 2.  Re: "shc"

    Posted Thu July 17, 2008 04:09 PM

    Originally posted by: j.gann


    shc is available in C source code (check google) and will compile and run on aix. It will not at all be a strong way to conceal your script though since aix's ps (starting with one of the early 5.3 TLs and unlike other unixes) will reveal all of the script code in the CMD column if ps's output has been redirected.

    apart from that, ksh93 source code (also available) comes with a shell script compiler, I have not looked at this yet. Report back if you try it.

    Joachim Gann
    #AIX-Forum


  • 3.  Re: "shc"

    Posted Fri July 18, 2008 12:52 AM

    Originally posted by: prashanth.r


    Thanks for the reply. Unfortunately there isn't a C compiler installed on the AIX we're using. The systems support has some reservation about gcc and as for xlC, it needs to be purchased. What's the shell script compiler that comes with ksh93? How is it invoked? Sorry, very poor at that stuff!
    #AIX-Forum


  • 4.  Re: "shc"

    Posted Fri July 18, 2008 01:22 AM

    Originally posted by: esv


    well, I hate to deliver bad news but if you read j.gann's reply again, the ksh93 compiler is distributed with ksh93 source code which means you'll have to compile it anyway.

    I am pretty sure u can give a shell script execute permission only and it would allow the rest of the world to execute it without access to the source code, if what you want is to conceal it from a customer, well that would not do the trick.

    best regards,
    esv.
    #AIX-Forum