http://www.hackmac.o...assword-hashes/
The thing is, we want to go through and do this ourselves with the basic commands, so that we can all work it into our own scripts, like Josh's Ultimate App.
We've determined that the hashes are stored in the user's profile, which can be found here:
/private/var/db/dslocal/nodes/Default/users/<username>.plist
I'm not entirely sure how to read those plists in Terminal, or to pull from specific sections, so what I did was copy the .plist to my Desktop so I wouldn't mess anything up:
login root cp /private/var/db/dslocal/nodes/Default/users/jeff.plist /Users/jeff/Desktop/jeff.plist
Then, because I felt like being able to open it in Text-Edit would help, I converted the file to a normal XML kind of thing:
plutil -convert xml1 /Users/jeff/Desktop/jeff.plist
(You'll need sudo on that one if you're not in root.)
So now I can open it up in Text-Edit, and see the 'ShadowHashData' area. According to the DaveGrohl site (the utility we used in the main guide):
"The first 4 bytes is the salt. The next 64 bytes is the SHA-512 encryted password."
Does anybody know grep well enough to pull that to output? I've been trying to work this one out and thought I'd share what I have. Should I even bother converting the file?

Help
















