Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I have a computer forensics style osx login.keychain file that I am trying to find the passwords from.

I have a very weak mac which I used crowbarkc on to try and brute force but the horsepower is just not there .... Is there any other way to get the information locked within? preferably using a linux or windows crack (as I have very powerful or ec2 available with those)

share|improve this question
add comment

8 Answers

The other possibility to gain keychain content is the $5 wrench. Or, as it's known in the UK, the 50p chocolate bar.

share|improve this answer
1  
That was my initial plan... but he has been deceased ... not likely to talk –  MarkKGreenway Nov 26 '10 at 4:08
    
Then you're left with a technology option only, I agree. –  user185 Nov 26 '10 at 7:49
1  
Or, psychological analysis, if you knew him - i.e. try to figure out what passwords he would have chosen. A "personality dictionary", if you will. –  AviD Nov 26 '10 at 8:16
2  
@Avid: I bet it's "joshua" ;-) –  user185 Nov 26 '10 at 9:03
3  
Heh. Actually, though most of that movie is pretty bogus, that part is actually spot on - knowing the guy really does make it incredibly much easier to "guess" the correct password, this works much more often than you might think. –  AviD Nov 28 '10 at 13:36
add comment

Try osx-keychain-brute from Potaru. It runs on OS X but it's way faster then crowbarkc. http://potaru.org

share|improve this answer
1  
I have been trying and trying to get it to run but I install go through the wizard and then open terminal type osx-keychain-brute and then I get command not found ... searching for osx-keychain-brute just gives me the downloaded dmg –  MarkKGreenway Feb 7 '11 at 19:15
add comment

Brute force or knowing the password are the only two (currently known) ways to retrieve the plain text.

share|improve this answer
    
What kind of encryption is it ? –  MarkKGreenway Nov 19 '10 at 19:03
    
I think, off the top of my head, that it's AES. The code to implement the CSSM storage is open source, anyway. Go to open source.apple.com –  user185 Nov 19 '10 at 20:20
    
I think you mean opensource.apple.com –  Douglas Leeder Nov 20 '10 at 10:19
    
@Douglas: thanks. In my defence they must have changed that in the last couple of years (I originally typed www dot opensource dot... which my iPad helpfully "corrected") –  user185 Nov 20 '10 at 11:22
add comment

Maybe you don't need to retrieve the plain text? Your mark's computer may be configured such that:

  • the user logs in automatically
  • the login keychain is automatically unlocked

This is actually the default scenario. In this case, you can use - but not see - any of the saved passwords.

share|improve this answer
1  
Woud love that to be the case but I had to unlock the computer get some files off (in which i trashed the login pw) –  MarkKGreenway Nov 29 '10 at 21:11
add comment

Rather than using brute force, why not using a series of word lists (dictionary attack).

I have never used it but it seems as if John the Ripper would solve most of your problems

The pre-built packages with integrated word lists should make short work of the keychain(osx or linux pacgages available)..

You also have his entire hard drive to come up with relevant information that might be combined and tested against the key.

Note: if the guy or gal was paranoid enough then they will use a long password that will never be tested using your bruteforce approach.

share|improve this answer
add comment

As explained in this message, the community-enhanced version of John the Ripper (beginning with 1.7.9-jumbo-6) should support Keychain files, and it runs on most Unix-like systems (e.g. Linux).

share|improve this answer
add comment

First change the password in single user mode:

/sbin/mount -uw /
passwd (short name of the user)

You can also crack the password. To do this, download and install keychaindump. Install by copying the zip file to the home folder of the user whose password you are trying to crack. Log in to the account you want to check the keychain. Open terminal and use this command:

sudo ./keychaindump ~/Library/Keychain/login.keychain

and it will list all the passwords.

share|improve this answer
add comment
up vote 0 down vote accepted

Actually just ran crowbarkc with the right library of passwords.

Found it within an hour

Password was : << REDACTED>> just kidding.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.