How to install CAL++ in Kali Linux?


This guide (How to install CAL++ in Kali Linux) is part of a series that guides readers on How to install FGLRX, AMD APP SDK, CAL++ and Pyrit in Kali Linux. The idea is to install correct drivers in Kali Linux for your GPU and use CPU+GPU combination with Pyrit to make raw data crunching faster. An example would be to utilize this combined processing power to crunch though WPA/WPA2 capture file to find Wifi password.




Readers, please follow this series in the following order:

  1. Install AMD ATI Driver (fglrx) in Kali Linux 1.x

  2. How to install CAL++ in Kali Linux?

  3. How to install Pyrit in Kali Linux?



Check FGLRX Installation


First check if fglrx module is installed:
lsmod | grep fglrx

You should get a response similar to:
fglrx 2635205 82
button 12945 1 fglrx

If not installed follow this guide to install it.

Install AMD ATI Driver (fglrx) in Kali Linux 1.x

Check AMD APP SDK Installation


Check if AMD APP SDK is installed. If not installed follow this guide to install it.

How to install AMD APP SDK in Kali Linux?

Installing CAL++


CAL++ is a simple library to allow writing ATI CAL kernels directly in C++. The syntax is very similar to OpenCL. Also C++ wrapper for CAL is included.

This project was registered on SourceForge.net on Feb 19, 2010.

Install prerequisites:


apt-get install cmake libboost-all-dev

Download CAL++


Download calpp 0.90 from: SourceForge CAL++ Website

Install CAL++


tar -xvf calpp-0.90.tar.gz
cd calpp-0.90/

Edit CMakeLists.txt:

Find the lines starting with FIND_LIBRARY and FIND_PATH and replace them with this:
FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "$ENV{ATISTREAMSDKROOT}" )
FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "$ENV{ATISTREAMSDKROOT}" )
FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "$ENV{ATISTREAMSDKROOT}/include/CAL" )

Save and quit,

Make and Install CAL++


Issue the following commands:
cmake .
make
make install

No comments:

Post a Comment