Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Most MD5 hashing programs I have seen generate the same hash if you consistently use the same password. For example, if use a pass of "sup3rm@n" it would generate something like
1$\yuUhgbaW244HiplO09i
every time
I noticed that when I ran grub-md5crypt on my FC2 system, it never generated the same hash when using the same password.
Can anyone explain this, sorry if this such a n00b question.
I think FC adds a salt before hashing the password, to prevent attacks based on prepared hash tables (dictionnary attack)
Could be
grub_hash(PASS)="SALT"+"MD5(SALT+PASS)"
The SALT is choosen randomly everytime you change the password.
If a user comes with a list like this:
MD5(l33t)=x
MD5(passw0rd)=y
MD5(123456)=z
..
(big file containing hashes of easy passwords)
then he cannnot compare grub_hash with x,y,z because
grub_hash(passw0rd)="21E4"+MD5("21E4passw0rd")
and he has not prepared MD5(21E4passw0rd) because its not a dictionnary word.
Adds a little layer.
Maybe from one install of redhat to another, the md5 would not be the same...
But the problem remains for RH , strange. Is it an old RH?
Anyway, I don't see why somebody from outside would crack your grub password
And its pretty easy to remove this password if you have physical access
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
Advertisement
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Click Here to receive a complimentary subscription courtesy of LQ.