{"id":141,"date":"2012-12-29T19:38:25","date_gmt":"2012-12-30T01:38:25","guid":{"rendered":"http:\/\/www.schwie.com\/brad\/?p=141"},"modified":"2014-03-16T22:34:21","modified_gmt":"2014-03-17T04:34:21","slug":"john-the-ripper","status":"publish","type":"post","link":"https:\/\/www.schwie.com\/brad\/?p=141","title":{"rendered":"John The Ripper"},"content":{"rendered":"<p>I normally don&#8217;t have a use for a password cracking application like John the Ripper, but a family member was having problems logging in to their Mac and they couldn&#8217;t remember what password they were using for the keychain.  I decided to give John the Ripper a try and I&#8217;m glad I did.  It picked the password for the keychain in about a minute using its built-in dictionary.  If you get in a similar bind, the following worked for me running Mountain Lion Server.<\/p>\n<p>The family member was remote, so they zipped up the login.keychain file and sent it to me.  I moved the file to my local machine running Mountain Lion Server, but this should work on Mountain Lion, Lion, Snow Leopard, and maybe further back&#8230;  I downloaded a <a href=\"http:\/\/openwall.info\/wiki\/_media\/john\/john-1.7.9-jumbo-7-macosx-Intel-2.zip\">jumbo build<\/a> of John the Ripper, moved the login.keychain file into the same directory as the &#8220;run&#8221; directory of the downloaded JtR, and ran the following commands from JtR&#8217;s run directory with Terminal.app:<\/p>\n<pre>.\/keychain2john login.keychain<\/pre>\n<p>(running keychain2john spews out a few lines of characters, copy all of the lines to a .txt file and save it to the JtR directory &#8211; I copied keychain2john&#8217;s output to &#8220;clwlogin.txt&#8221;) and then I ran the following command from Terminal:<\/p>\n<pre>.\/john -i=all clwlogin.txt<\/pre>\n<p>While the command above is running, you can press &#8220;enter&#8221; and see JtR&#8217;s status.  When JtR picks the password, it will automatically throw it up on the screen followed by a question mark in parentheses.  At this point, JtR will keep running to look for more passwords, so I press Control-C to force it to quit.  Success!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I normally don&#8217;t have a use for a password cracking application like John the Ripper, but a family member was having problems logging in to their Mac and they couldn&#8217;t remember what password they were using for the keychain. I &hellip; <a href=\"https:\/\/www.schwie.com\/brad\/?p=141\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":8,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schwie.com\/brad\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}