RainbowCrack on Mac Intel

[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’t require that you install openssl, it’s universal and last but not least it performs better than the one that I hack (see rest of the post).

I definitely recommend you to use this version instead of mine.

RainbowCrack at macunix.net

[/upd2]

Unfortunately there is no RainbowCrack Mac build.

Here at your disposition a release 1.2 build for intel processor Mac . It needs OpenSSL 0.9.8.g installed in order to work (and of course OS X comes with an earlier version [0.9.7.l]).

How to build by yourself:

OpenSSL 0.9.8.g

  1. download OpenSSL 0.9.8.g from http://www.openssl.org/source/openssl-0.9.8g.tar.gz
  2. open the archive and navigate with a terminal till the openssl-0.9.8g directory
  3. enter the following command ./configure shared
  4. enter the following command make
  5. enter the following command make test
  6. enter the following command sudo make install

RainboCrack 1.2

  1. patch the source file Public.cpp such as the procedure unsigned int GetAvailPhysMemorySize() looks like:
        int mib[2];
        int memSize;
        size_t len;
        mib[0] = CTL_HW;
        mib[1] = HW_PHYSMEM;
        len = sizeof(memSize);
        // This function is FreeBSD-specific
        sysctl(mib, 2, &memSize, &len, NULL, 0);
        return memSize;
  2. modify the makefile.linux such as instead of having the -lssl flag (that is pointing to the default installed 0.9.7.l version) you read:
    -L "/usr/local/ssl/lib/libssl.dylib"
    -L "/usr/local/ssl/lib/libcrypto.dylib"
  3. build RainbowCrack normally then

If I have enought time and motivation I’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.

[upd 23.03.2008] The source code of my modified version is now available: rainbowcrack-12-src.zip .

[/upd]