8

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)

8 Answers 8

9

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

5
  • 2
    That was my initial plan... but he has been deceased ... not likely to talk Commented Nov 26, 2010 at 4:08
  • Then you're left with a technology option only, I agree.
    – user185
    Commented Nov 26, 2010 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
    Commented Nov 26, 2010 at 8:16
  • 2
    @Avid: I bet it's "joshua" ;-)
    – user185
    Commented Nov 26, 2010 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
    Commented Nov 28, 2010 at 13:36
3

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

1
  • 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 Commented Feb 7, 2011 at 19:15
2

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

4
  • What kind of encryption is it ? Commented Nov 19, 2010 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
    Commented Nov 19, 2010 at 20:20
  • I think you mean opensource.apple.com Commented Nov 20, 2010 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
    Commented Nov 20, 2010 at 11:22
1

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.

1
  • 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) Commented Nov 29, 2010 at 21:11
1

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.

1

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).

1

Actually just ran crowbarkc with the right library of passwords.

Found it within an hour

Password was : << REDACTED>> just kidding.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .