Sponsored Content
Full Discussion: Script Security
Special Forums Cybersecurity Script Security Post 302149272 by porter on Wednesday 5th of December 2007 12:31:58 PM
Old 12-05-2007
Quote:
Originally Posted by idoukas
Is there a way that I can overcome this?
You shouldn't be seeing the script with ps but you will see command line arguments and environment variables as they are used.

Alas, for "sh" to execute your script it needs to be able to read it.

However you could set up your own shell where all the scripts are owned by some obscure user, and the shell is a set-uid process that flips to that user. But then that user would not have the same rights as the current user.

But you would still need little wrappers...

Code:
#!/bin/sh
exec /my/magic/shell /some/hidden/shell/script.sh $@

 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

Script security

Does somebody know how to secure a script so that it is still executable but not readable?? (2 Replies)
Discussion started by: schip074
2 Replies
All times are GMT -4. The time now is 08:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy