{"id":229,"date":"2008-03-02T17:30:50","date_gmt":"2008-03-02T16:30:50","guid":{"rendered":"http:\/\/www.spikesoft.ch\/?p=229"},"modified":"2008-03-30T13:47:49","modified_gmt":"2008-03-30T12:47:49","slug":"rainbowcrack-on-mac-intel","status":"publish","type":"post","link":"https:\/\/www.spikesoft.ch\/?p=229","title":{"rendered":"RainbowCrack on Mac Intel"},"content":{"rendered":"<p>[upd2 30.03.2008]<\/p>\n<p>Thanks to Erik Winkler there exists a Mac version of RainbowCrack. Not only this version support more hash algorithms than the official one, it also doesn&#8217;t require that you install openssl, it&#8217;s universal and last but not least it performs better than the one that I hack (see rest of the post).<\/p>\n<p>I <span onclick=\"dr4sdgryt(event)\">definitely<\/span> recommend you to use this version instead of mine.<\/p>\n<p>RainbowCrack at <a href=\"http:\/\/www.macunix.net\/rainbow\/\" target=\"_blank\">macunix.net<\/a><\/p>\n<p>[\/upd2]<\/p>\n<p>Unfortunately there is no <a href=\"http:\/\/www.antsight.com\/zsl\/rainbowcrack\/\" target=\"_blank\">RainbowCrack<\/a> Mac build<a href=\"http:\/\/www.antsight.com\/zsl\/rainbowcrack\/\" target=\"_blank\"><\/a>.<\/p>\n<p><a href=\"http:\/\/www.spikesoft.ch\/wordpress\/upload\/2008\/03\/rainbowcrack-12_os_x_intel.zip\">Here<\/a> at your disposition a release 1.2 build for intel processor Mac . It needs <a href=\"http:\/\/www.antsight.com\/zsl\/rainbowcrack\/\" target=\"_blank\">OpenSSL 0.9.8.g<\/a>  installed in order to work (and of course OS X comes with an earlier version [0.9.7.l]).<\/p>\n<p><u>How to build by yourself:<\/u><\/p>\n<p>OpenSSL 0.9.8.g<\/p>\n<ol>\n<li>download  OpenSSL 0.9.8.g from <a href=\"http:\/\/www.openssl.org\/source\/openssl-0.9.8g.tar.gz\" target=\"_blank\">http:\/\/www.openssl.org\/source\/openssl-0.9.8g.tar.gz<\/a><\/li>\n<li>open the archive and navigate with a terminal till the <em>openssl-0.9.8g<\/em> directory<\/li>\n<li>enter the following command <em>.\/configure shared<\/em><\/li>\n<li>enter the following command <em>make<\/em><\/li>\n<li>enter the following command <em>make test<\/em><\/li>\n<li>enter the following command <em>sudo make install<\/em><\/li>\n<\/ol>\n<p>RainboCrack 1.2<\/p>\n<ol>\n<li>patch the source file <em>Public.cpp<\/em> such as the procedure <code> unsigned int GetAvailPhysMemorySize() <\/code> looks like:\n<pre>\r\n    int mib[2];\r\n    int memSize;\r\n    size_t len;\r\n    mib[0] = CTL_HW;\r\n    mib[1] = HW_PHYSMEM;\r\n    len = sizeof(memSize);\r\n    \/\/ This function is FreeBSD-specific\r\n    sysctl(mib, 2, &amp;memSize, &amp;len, NULL, 0);\r\n    return memSize;<\/pre>\n<\/li>\n<li>modify the <em>makefile.linux<\/em> such as instead of having the -lssl flag (that is pointing to the default installed 0.9.7.l version) you read:\n<pre>\r\n-L \"\/usr\/local\/ssl\/lib\/libssl.dylib\"\r\n-L \"\/usr\/local\/ssl\/lib\/libcrypto.dylib\"<\/pre>\n<\/li>\n<li>build RainbowCrack normally then<\/li>\n<\/ol>\n<p>If I have enought time and motivation I&#8217;ll try to compile OpenSSL and RainbowCrack with the intel compiler and all the optimisations for the Xeon platform. Unfortunately as my preliminary tests tend to prove it is not a straightforward task.<\/p>\n<p>[upd 23.03.2008] The source code of my modified version is now available: <a href=\"http:\/\/www.spikesoft.ch\/wordpress\/upload\/2008\/03\/rainbowcrack-12-src.zip\" title=\"rainbowcrack-12-src.zip\">rainbowcrack-12-src.zip<\/a> .<\/p>\n<p>[\/upd]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[upd2 30.03.2008] Thanks to Erik Winkler there exists a Mac version of RainbowCrack. Not only this version support more hash algorithms than the official one, it also doesn&#8217;t require that you install openssl, it&#8217;s universal and last but not least &hellip; <a href=\"https:\/\/www.spikesoft.ch\/?p=229\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-macintosh"],"_links":{"self":[{"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=229"}],"version-history":[{"count":0,"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=\/wp\/v2\/posts\/229\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.spikesoft.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}