06-19-2014, 04:08 PM
I'm running RHEL6 on one of my cracker boxes and have had similar issues. Actually first started happening with hashcat 64bit a while back where it wanted glibc 2.14. Now oclhashcat wants 2.15. I've been able to work around it thus far by compiling a separate install of glibc and preloading the libraries. From my understanding that isn't really a 100% safe way of doing it but it does appear to work for this use case. YMMV, no warranty, etc.
Steps I took to set it up this way:
Steps I took to set it up this way:
- Download and unpack glibc 2.15 (http://ftp.gnu.org/gnu/libc/glibc-2.15.tar.gz). cd into that dir.
- Decide where you want to put this 2nd version of glibc, I used /opt/glibc. I create that directory as root and assign ownership of it to my build user.
sudo mkdir /opt/glibc && sudo chown `whoami`:`groups | cut -f1 -d' '` /opt/glibc
- To work around a bug in glibc-2.15, edit the 'Makeconfig' file in the glibc source dir and change this line:
vardbdir = /var/db
to
vardbdir = <the-prefix-root-you-plan-to-use>/var/db
so in my case
vardbdir = /opt/glibc/var/db
- mkdir build
- cd build
- NOTE: I run make install as my build user and not root to eliminate the possibility of something in the distribution's files being overwritten. This is important as glibc 2.15 tries to write to /var/db/ even with --prefix set (which is why we edited vardbdir above.) It is also just a safe practice when playing around with glibc.
../configure --prefix=/opt/glibc && make && make install
- Test out oclHashcat using LD_PRELOAD to force the alternate glibc.
LD_PRELOAD="/opt/glibc/lib/libc.so.6 /opt/glibc/lib/libdl.so.2" sudo /opt/hashcat/oclHashcat-1.21/oclHashcat64.bin -b