John the Ripper 1.7.9 Jumbo 7 with Nvidia CUDA GPU Support

Install the latest John the Ripper 1.7.9 with the Jumbo 7 patch. Before downloading John you will need to install the CUDA development files. See this blog article for instructions on how to install the latest Nvida drivers for Ubuntu 13.10 and latest CUDA development files.

$ cd ~/source
~/source$ wget http://openwall.com/john/g/john-1.7.9-jumbo-7.tar.gz
~/source$ tar zxvf john-1.7.9-jumbo-7.tar.gz
~/source$ cd john-1.7.9-jumbo-7/src
~/source/john-1.7.9-jumbo-7/src$ make linux-x86-64-cuda

/usr/bin/ld: error: /usr/local/lib/libcrypto.a(md5_dgst.o): multiple definition of 'MD5_Update'
/usr/bin/ld: md5.o: previous definition here
/usr/bin/ld: error: /usr/local/lib/libcrypto.a(md5_dgst.o): multiple definition of 'MD5_Final'
/usr/bin/ld: md5.o: previous definition here
/usr/bin/ld: error: /usr/local/lib/libcrypto.a(md5_dgst.o): multiple definition of 'MD5_Init'
/usr/bin/ld: md5.o: previous definition here
collect2: error: ld returned 1 exit status
make[1]: *** [../run/john] Error 1
make[1]: Leaving directory `/home/edge/tools/john-1.7.9-jumbo-7/src'

Please see this for details on the issue https://github.com/magnumripper/JohnTheRipper/pull/255/

~/source/john-1.7.9-jumbo-7/src$ make clean
~/source/john-1.7.9-jumbo-7/src$ vim Makefile

For this tutorial the line you need to modify is 60 so don’t follow exactly what issue 255 tells you to change.
Change this one line…

CFLAGS = -c -Wall -O2 -fomit-frame-pointer -Wdeclaration-after-statement -I/usr/local/include $(HAVE_NSS) $(OMPFLAGS) $(JOHN_CFLAGS) $(AMDAPP)

To these two lines…

HAVE_OPENSSL = -DHAVE_OPENSSL
CFLAGS = -c -Wall -Wdeclaration-after-statement -O2 -fomit-frame-pointer -I/usr/local/include $(HAVE_NSS) $(HAVE_GMP) $(HAVE_KRB5) $(HAVE_OPENSSL) $(OMPFLAGS) $(JOHN_CFLAGS) $(AMDAPP)

~/source/john-1.7.9-jumbo-7/src$ make linux-x86-64-cuda
~/source/john-1.7.9-jumbo-7/src$ cd ..
~/source/john-1.7.9-jumbo-7$ sudo mv run /opt/john

To use john from the command line invoke the full path.

# /opt/john/john

Twitter
Follow by Email
LinkedIn
YouTube
Google+
RSS

One thought to “John the Ripper 1.7.9 Jumbo 7 with Nvidia CUDA GPU Support”

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.