Does anyone know how to make a script unreadable.
I remember seeing a tool to compile a ksh but can't remember what it's called.
Anyone got any other methods / suggestions?
If you're wanting to keep prying eyes out of it in-house, you can use sudo.
1. Select or create a new user with appropriate permissions for running the script.
2. chown the script to that user.
3. chmod 700 the script
4. grant sudo privileges to the nosy people allowing them to run the script as the selected user. (see man pages for visudo and sudoers for details on how)
5. Instruct the users on how to, or create a script that does it for them, sudo the command as the other user.
sudo -u <username> /full/path/to/script
They'll then be able execute, but unable to read it.
If the script is for distribution, of course, none of this applies.
Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
Maybe take a look at gzexe which is one of the GNU zip (gzip) utilities. It allows you to compress scripts and have them automatically uncompress and execute when you run them. It's fairly easy to crack but should confuse inexperienced users.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.