![]() |
| ||
| retrieving username and password I want to retrieve the username and password of the current user from a shell script .... how to do this? |
| ||
| Re: retrieving username and password #!/bin/sh Password is a whole different (uglier) beast. |
| ||
| Re: retrieving username and password any links to help getting password...... |
| ||
| Re: retrieving username and password *Points to his previous post* Ok, something to keep in mind, the password is ENCRYPTED, so even if I told you where to find it (/etc/passwd, /etc/shadow) it will do you no good unless you can figure out how to DECRYPT it... *nix is pretty secure... they don't just let you have your way with passwords.... hacker. |
| ||
| Re: retrieving username and password LOLZ if i was a hacker then probably i would have been able to do this and not writing in forums asking for help............... |
| ||
| Re: retrieving username and password Why do you need the password? The easiest way to get the password is to ask the user for it, and explain why you need it. passwords are usually stored as hashes (a one-way function). http://en.wikipedia.org/wiki/Cryptog..._hash_function There is no simple function to go in the other direction. |
| All times are GMT -4. The time now is 7:50 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC