| | |
retrieving username and password
![]() |
Shell Scripting Syntax (Toggle Plain Text)
#!/bin/sh echo ${USER}
Password is a whole different (uglier) beast.
Last edited by Comatose; Jan 25th, 2009 at 5:40 am.
*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.
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.
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.
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.
![]() |
Similar Threads
- retrieving username and password (MS SQL)
- sending and retrieving password (Java)
- retrieving data from MySQL (PHP)
- urgent help for Vb.net Login page using sql statement (VB.NET)
- Help me in username and password validation through accessing the database (ASP.NET)
Other Threads in the Shell Scripting Forum
- Previous Thread: Logging into to a site
- Next Thread: change file names
| Thread Tools | Search this Thread |






