by monochromatic · 10y ago · 0 comments
There are only two possible hashes stored in the SAM database. You mention the 'shorter' one, which would be the 'LM hash' which is restricted to 14 character passwords. However, LM hash storage has been disabled by default for all windows system since Vista / Windows Server 2008 (and ability to not store them was available, but not disabled by default since at least Windows 2000). Even Samba has had the ability to not generate or store the LM hash since at least 2002 (earliest search reference I could find).
Using something like john [the ripper] with a decent dictionary and applying mangling rules will shred through the rest.
Not to mention, there's rainbow tables built and freely downloadable that contain every possible LM and NTLM hash (they're huge files, 30+ GB's, but if you need to crack in a hurry...).
Also, note that with the rainbow tables (for both NTLM and LM hashes), it will give you a password that hashes to the same exact value, but not necessarily the same exact password. This is kind of obvious once you understand that the NTLM (as compared to LM) hash is just md4(password) and is just 16 bytes long.
So that's valuable as it will let you log in to the machine, but since it's not actually giving you the actual password back, it's not helpful for logging in to other non-windows systems that may have the same password. Also, it requires administrator level access, a local privilege escalation exploit or a physical copy of the disk, to the SAM database, any of which likely mean that cracking the password is irrelevant.
Those would be the passwords that we're talking about here. Next time you run either, take a look at the count of uncracked passwords. There are always some, which should tell you something.
Also, I couldn't reply to you before so see my reply to parent WRT rainbow table size. They're not the panacea you're implying.