![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| executing an encrypted script | ajnabi | Shell Programming and Scripting | 2 | 08-08-2006 10:35 AM |
| netrc file encrypted password | ggowrish | UNIX for Advanced & Expert Users | 2 | 06-17-2004 06:15 AM |
| encrypted files | w33man | UNIX for Dummies Questions & Answers | 3 | 03-02-2004 12:06 PM |
| How to decrypt a file which is encrypted in UNIX, In Windows NT | gorantla | Shell Programming and Scripting | 3 | 01-29-2002 02:19 PM |
| How to decrypt a file encrypted with vi? | Gerry | UNIX for Dummies Questions & Answers | 1 | 04-22-2001 03:44 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
First off, 'ls' is not an "encrypted script", it's not a script at all -- it's programmed in C, which becomes machine language, which you potentially could understand if you were very determined. It's not encrypted, just obscure.
Second, 'chmod -r' will prevent the user from reading a file. Much better security than trying to obfuscate it, since that's all it would amount to -- after all, a file the user really can't decrypt is a file the machine really can't decrypt. But for the halibut, here's how I once embedded encryption in scripts. Without the password, they can't examine the source code or run it. Last edited by Corona688; 03-14-2009 at 01:14 PM.. |
|
|||||
|
hello sir.
I did use the link u gave me. there also we are still able to see the source code. I want to know how to obfuscate a code so that the user can use it but cannot see the logic that I used....it must come in all "#&*!" symbols like the code that comes when we open "ls" from /bin or /usr/bin I cant use "chmod -r" as the user can be root.He would change the permission and see the code.I dont want the root also to see that code. How can I achieve it sir ? |
|
||||
|
Like I said, a file the user really can't decrypt is a file the machine really can't decrypt. To get something even root can't decrypt you'll need something out of root's hands, like the kernel or a hardware cryptoprocessor, to do the dirty work. Sadly this goes beyond my knowledge, but the TPM's in modern computers might be related to this.
|
|
||||
|
Well, you could write something in C instead of shell. But that's not encrypted, just obfuscated, a determined user could still piece things together. And a system tracing program would be able to tell what system calls it made no matter what language it was written in.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|