tags:

views:

109

answers:

3

can we write a program in java to get usernames and passwords

+2  A: 

No, we can't.

MJB
+3  A: 

You can get usernames by reading /etc/passwd file.

You cannot get passwords unless you try to decrypt them, and that's not practical...

Senad Uka
A: 

Without a brute-force attack and at least a list of the encrypted passwords, you are out of luck.

Also read this http://www.linux.org/docs/ldp/howto/Security-HOWTO/password-security.html

and this http://www.cyberciti.biz/faq/understanding-etcpasswd-file-format/

sum1stolemyname