PDA

View Full Version : Installing ATI drivers, AMD APP SDK, CAL++, and Pyrit



hexed6
2013-11-17, 18:48
Installing ATI drivers, AMD APP SDK, CAL++, and Pyrit on Kali Linux 1.05 from start to finish.

I made this how-to in an attempt to gather all the information needed to get cpyrit working on Kali and have it all in one place. Most of the tutorials I have come across are for BackTrack or are focused on one aspect of the process, for example ATI driver installation. I am by no means an expert on the subject, and I have used other tutorials as a guideline. I made this primarily as a reference for myself, but I would like to share it in hopes that someone might find it useful.

This tutorial assumes the following:

You are running a clean install of Kali Linux 1.05 x64. A non clean install may cause issues, as well a different version or architecture may have some differences.
You have an AMD Radeon HD 5xxx or 6xxx series GPU. Series 3xxx or 4xxx require legacy ATI drivers which I do not cover here. Series 7xxx may need some further workarounds.
You are running as root and have some knowledge of Linux command line usage.




Installing ATI drivers:
Credit goes to blackMORE. Most of this was directly copy and pasted from his original post (https://forums.kali.org/showthread.php?17681-Install-AMD-ATI-Driver-in-Kali-Linux-1-x).

Step 1: Remove any previous version of the drivers:
If you are not using a clean install of Kali (not recommended), you may need to clean up previous fglrx drivers.

apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx

Step 2: Edit your /etc/apt/sources.list to look like this:

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130315-11:02]/ kali contrib main non-free
# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot amd64 LIVE/INSTALL Binary 20130315-11:02]/ kali contrib main non-free

deb http://http.kali.org/kali kali main non-free contrib
deb-src http://http.kali.org/kali kali main non-free contrib

## Security updates
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

Step 3: Update your sources:

apt-get update

Step 4: Install Linux headers:

apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

Step 5: Attempt installation of ATI drivers:

apt-get install fglrx-driver fglrx-control fglrx-glx fglrx-atieventsd fglrx-modules-dkms

You will get the following error:
Error! Bad return status for module build on kernel: 3.7-trunk-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/12-6+point/build/make.log for more information.

Step 6: Patch fglrx module:

cd /root
wget http://www.blackmoreops.com/wp-content/uploads/2013/10/fglrx-3.71.patch
cp /var/cache/apt/archives/fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb /root
mkdir -p extract/DEBIAN
dpkg-deb -x fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/
dpkg-deb -e fglrx-modules-dkms_1%3a12-6+point-3_amd64.deb extract/DEBIAN
cp fglrx-3.71.patch extract/usr/src/fglrx-12-6+point/
cd extract/usr/src/fglrx-12-6+point/
patch -p0 < fglrx-3.71.patch

When successful you will see:
patching file firegl_public.c
Hunk #1 succeeded at 3890 (offset -2 lines).
Hunk #2 succeeded at 3924 (offset -2 lines).
Hunk #3 succeeded at 3947 (offset -2 lines).
Hunk #4 succeeded at 3960 (offset -2 lines).
Hunk #5 succeeded at 4006 (offset -2 lines).
Hunk #6 succeeded at 4045 (offset -2 lines).
Hunk #7 succeeded at 4063 (offset -2 lines).
Hunk #8 succeeded at 4088 (offset -2 lines).

Step 7: Repack and install fglrx module:

cd /root
mkdir build
dpkg-deb -b extract/ build/
cd build
dpkg -i *.deb

When successful you will see:
DKMS: install completed.

Step 8: Initial configuration:

aticonfig --initial -f

Step 9: Configure GRUB:
Open /boot/grub/grub.cfg with your favorite text editor. Look for a section that begins with:
### BEGIN /etc/grub.d/10_linux ###

In that section there will be a line similar to this one:
linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet

Append radeon.modeset=0 to the end of the line so it looks like this:
linux /boot/vmlinuz-3.7-trunk-amd64 root=UUID=7f79eea2-1668-407f-b7ed-d5613fecd26c ro initrd=/install/gtk/initrd.gz quiet radeon.modeset=0

Save the file and reboot.

Step 10: Check if fglrx module is installed:

lsmod | grep fglrx

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



Installing AMD APP SDK:

Step 1: Download AMD APP SDK v2.7 from:
http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/downloads/download-archive/

Step 2: Install the SDK:

mkdir amdappsdk
cp AMD-APP-SDK-v2.7-lnx64.tar amdappsdk/
cd amdappsk
tar -xvf AMD-APP-SDK-v2.7-lnx64.tar
./Install-AMD-APP.sh

Step 3: Edit /root/.bashrc, add the following lines to the end of the file:

# AMD APP SDK
export AMDAPPSDKROOT=/opt/AMDAPP
export AMDAPPSDKSAMPLESROOT=/opt/AMDAPP/
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}
export ATISTREAMSDKROOT=$AMDAPPSDKROOT

Save and quit, then issue the following command:

source ~/.bashrc



Installing CAL++

Step 1: Install prerequisites:

apt-get install cmake libboost-all-dev

Step 2: Download calpp 0.90 from:
http://sourceforge.net/projects/calpp/files/calpp-0.90/calpp-0.90.tar.gz/download

Step 3: 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, then issue the following commands:

cmake .
make
make install



Installing Pyrit

Step 1: Install prerequisites

apt-get install libpcap-dev

Step 2: Remove existing installation of pyrit

apt-get remove --purge pyrit

If you are not using a clean install of Kali (not recommended), you may need to issue the following command:

rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/

Step 3: Download pyrit

svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn

Step 4: Install pyrit

cd pyrit_svn/pyrit/
./setup.py build install

Step 5: Install CAL++ plugin

cd ../cpyrit_calpp/

Edit setup.py:
find VERSION = '0.4.0-dev' and replace with VERSION = '0.4.1-dev'
find CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include')) and replace with CALPP_INC_DIRS.append(os.path.join(CALPP_INC_DIR, 'include/CAL'))

Save and quit, then issue the following command:

./setup.py build install

There will be several warnings, but hopefully no errors and everything will be installed.

Step 6: Test cpyrit

pyrit list_cores
...
The following cores seem available...
#1: 'CAL++ Device #1 'AMD GPU DEVICE''
#2: 'CPU-Core (SSE2)'
#3: 'CPU-Core (SSE2)'
#4: 'CPU-Core (SSE2)'


pyrit benchmark
...
Computed 7548.89 PMKs/s total.
#1: 'CAL++ Device #1 'AMD GPU DEVICE'': 5599.3 PMKs/s (RTT 1.4)
#2: 'CPU-Core (SSE2)': 685.6 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 688.5 PMKs/s (RTT 3.0)
#4: 'CPU-Core (SSE2)': 691.9 PMKs/s (RTT 3.0)

blackMORE
2013-11-22, 05:17
Thanks for this hexed6 (https://forums.kali.org/member.php?20053-hexed6). Worked for me as well.
I've added this to my website (http://www.blackmoreops.com/) with credits for you.

viejo verde
2013-11-24, 13:05
worked for me. oclhashcat-lite worked with --force

hexed6
2013-11-24, 17:00
Thanks blackMORE, without you this tutorial wouldn't be possible. Nice website, some cool stuff there. Soon I will write a tutorial for fglrx-legacy (Radeon HD 3xxx and 4xxx) and also a tutorial for networking Pyrit machines, you couild put those on there as well if you want.

hdcase
2013-11-25, 10:03
hexed6, blackmore: issuing the apt-get remove --purge pyrit says that kali-linux and kali-linux-full will also be removed. is this ok?

hexed6
2013-11-26, 23:04
hexed6, blackmore: issuing the apt-get remove --purge pyrit says that kali-linux and kali-linux-full will also be removed. is this ok?

This should be fine, kali-linux and kali-linux-full are metapackages. Metapackages do not contain actual software, they just define dependencies. It's a convenient way to allow you to install many packages without having to type each individual package name on the command line. Pyrit is one of the packages defined as a dependency of the kali-linux metapackage. As far as I know, removing this should not cause an issue. If an apt expert wishes to chime in, please do so.

An exercise for the reader: issue this command to see all the packages installed by the kali-linux metapackage:

apt-cache show kali-linux

Chrifister
2013-11-30, 04:43
Awesome! Worked like a charm for a Radeon 5650.

Rookie
2013-12-13, 09:29
Hi there,

I'm having some trouble installing the CAL++ in my radeon 5470. When I issue the 'make' command I get the following error:

[ 7%] Building CXX object CMakeFiles/coalescingtest.dir/coalescingtest.o
/root/desc/calpp-0.90/examples/coalescingtest.cpp:27:23: fatal error: cal/cal.hpp: No existe el fichero o el directorio
compilation terminated.
make[2]: *** [CMakeFiles/coalescingtest.dir/coalescingtest.o] Error 1
make[1]: *** [CMakeFiles/coalescingtest.dir/all] Error 2
make: *** [all] Error 2

Any ideas?

Thanks in advance.

Nekfh
2013-12-25, 13:09
Works great with my AMD 7770 !

http://i.imgur.com/QTyl7U8.png?1

Thank you hexed6 (https://forums.kali.org/member.php?20053-hexed6)

thomasb9511
2014-01-10, 06:06
The new version of kali has a new kernel and I cannot install the 3.7 kernel sources anymore. Please help.

Lancha
2014-01-18, 19:08
i can´t install with new kernel i think becouse my graphic is the old ones is a series ATI HD 2400 PRO AGP
what i have to change?

mister
2014-01-21, 21:39
Thanks hexed6 for posting this. It is clearly more directed to Kali than many others I've followed as I referenced in this post, that I made a while back. It is also remarkably similar to my hardware.

https://forums.kali.org/showthread.php?18985-ATI-drivers-amp-AMD-APP-SDK-versions-needed-for-using-GPU-with-pyrit-on-Kali-1-0-5&highlight=drivers+Pyrit

Thank goodness for junior members. ;)
One question. Is there any issue following this now, with the new kernel in Kali. I assume not, but wanted to ask before getting to it. Any responses will be appreciated.

mister
2014-01-31, 07:37
Anybody know if this works with the new kernel? Anybody? srsly

hexed6
2014-02-09, 00:15
Anybody know if this works with the new kernel? Anybody? srsly

Sorry, I haven't been able to test as the machine I was using is currently not working. At least one person has reported this guide is not working with the new kernel, but I'm sure it can be done with some modifications. I just don't have the ability to try at the moment.

bond benz
2014-02-10, 10:56
nice post :) keep up

Alexcreator
2014-02-23, 07:23
Please Help:
I Install this thanks to BlackMORE Ops incredible knowledge:

Kali 1.0.6 32-bit on disk with Kernel Linux 3.12-kali1-686-pae
And AMD ATI proprietary driver (fglrx) in Kali Linux 1.0.6 running Kernel version 3.12.6,
And AMD APP SDK in Kali Linux,
And CAL++ in Kali Linux,
And install Pyrit in Kali Linux

I tested my:
lsmod | grep fglrx
fglrx 7418498 97
button 12824 1 fglrx

When i start:
Pyrit benchmark i get this:

Running benchmark (17838.6 PMKs/s)… –
Computed 17838.65 PMKs/s total.
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”: 18623.5 PMKs/s (RTT 1.2)
#2: ‘CPU-Core (SSE2)’: 196.2 PMKs/s (RTT 3.0)

When i start:
Pyrit list_cores i get this:

root@kali:~# pyrit list_cores
The following cores seem available…
#1: ‘CAL++ Device #1 ‘AMD GPU DEVICE”
#2: ‘CPU-Core (SSE2)’
Is that okay?
________________________________________________
My Hardware:
Ram Memory: 3.0 GiB
Processor: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ × 2
Graphich card: AMD Radeon HD 6570
__________________________________________
When I go to test my ruter i have error:


root@kali:~# crunch 8 10 abcdefghijklmnopqrstuvwxyz0123456789 | pyrit -r capfile-01.cap -b XX:XX:XX:XX:XX:XX -i – attack_passthrough
Crunch will now generate the following amount of data: 41258732396544000 bytes
39347393414 MB
38425188 GB
37524 TB
36 PB
Crunch will now generate the following number of lines: 3760539506638848
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

Parsing file ‘capfile-01.cap’ (1/1)…
Traceback (most recent call last):
File “/usr/local/bin/pyrit”, line 6, in
pyrit_cli.Pyrit_CLI().initFromArgv()
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 117, in initFromArgv
func(self, **options)
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 165, in new_f
f(*args, **kwds)
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 917, in attack_passthrough
ap = self._fuzzyGetAP(self._getParser(capturefile), bssid, essid)
File “/usr/local/lib/python2.7/dist-packages/pyrit_cli.py”, line 181, in _getParser
parser.parse_pcapdevice(dev)
File “/usr/local/lib/python2.7/dist-packages/cpyrit/pckttools.py”, line 696, in parse_pcapdevice
for pckt in reader:
File “/usr/local/lib/python2.7/dist-packages/cpyrit/pckttools.py”, line 589, in next
pckt = self.read()
File “/usr/local/lib/python2.7/dist-packages/cpyrit/pckttools.py”, line 580, in read
pckt = self.datalink_handler(pckt_string)
File “/usr/lib/python2.7/dist-packages/scapy/base_classes.py”, line 198, in __call__
i.__init__(*args, **kargs)
File “/usr/lib/python2.7/dist-packages/scapy/packet.py”, line 80, in __init__
self.dissect(_pkt)
File “/usr/lib/python2.7/dist-packages/scapy/packet.py”, line 575, in dissect
s = self.do_dissect(s)
File “/usr/lib/python2.7/dist-packages/scapy/packet.py”, line 549, in do_dissect
s,fval = f.getfield(self, s)
File “/usr/lib/python2.7/dist-packages/scapy/layers/dot11.py”, line 36, in getfield
return MACField.getfield(self, pkt, s)
File “/usr/lib/python2.7/dist-packages/scapy/fields.py”, line 73, in getfield
return s[self.sz:], self.m2i(pkt, struct.unpack(self.fmt, s[:self.sz])[0])
struct.error: unpack requires a string argument of length 6

But when I run this all goes ok

crunch 8 10 abcdefghijklmnopqrstuvwxyz0123456789 | pyrit -e myruter -i – -o – passthrough | cowpatty -d – -r capfile-01.cap -s myruter
And after half an hour my computer is turned off!!!!!!!!!

Please help me because I do not know where I’ve done wrong.
If you think that I did not install a good c + + please help me to check

Thank you, and sorry for my bad…. english.

Anonymous@kali
2014-02-23, 15:45
Hi hexed6, sorry to bother you, but i've faced some problems while installing the ati driver. My graphics hardware details is given below:

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI M96 [Mobility Radeon HD 4650] [1002:9480]

The process was working well till the 6th one. But at the end of the 7th step, with "dpkg -i *.deb" command I still get the error: "Error! Bad return status for module build on kernel.........".

Any help would be appreciable and thanks in advance.

amo001
2014-03-11, 03:03
I don't think Cal++ works with the new kernel anymore...

I’m getting an error with make:

http://pastebin.com/8FFSbVqD

Linux version 3.12-kali1-amd64 (debian-kernel@lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.12.6-2kali1 (2014-01-06)

hunter86_bg
2014-04-08, 11:02
I don't think Cal++ works with the new kernel anymore...

I’m getting an error with make:

http://pastebin.com/8FFSbVqD

Linux version 3.12-kali1-amd64 (debian-kernel@lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.12.6-2kali1 (2014-01-06)

Why don't you use the newest Cal++ ?!? I got it runing with 2.9 but it needed some workarounds i found in the comments on this link :
http://www.blackmoreops.com/2013/11/22/install-cal-kali-linux/

And you will need files from here: https://github.com/clockfort/amd-app-sdk-fixes
By the way - when installing the ATI drivers i didnt need to patch them like described here /just skipped some stuff in the first command and it asked for dependencies,which i installed and all worked fine/.

hunter86_bg
2014-04-09, 08:37
Ok, here is what happened to me since last night:

SOFTWARE:

#lsb_release -a:
Distributor ID: Debian
Description: Debian GNU/Linux Kali Linux 1.0.6
Release: Kali Linux 1.0.6
Codename: n/a
#uname -r:
3.12-kali1-amd64

Install Procedures:
1)I've decided to make a persistent live usb with pyrit and ati cal++.I followed the official guide for persistant live usb stick.
2)Then i followed this tutorial: http://www.blackmoreops.com/2014/02/11/install-amd-ati-proprietary-driver-fglrx-in-kali-linux-1-0-6-running-kernel-version-3-12-6/ but i skipped steps 4 and 5
3) Step 3 was to modify the boot menu which didn't work .
4)Next was a reboot and a simple test
lsmod | grep fglrx and the output was
fglrx 7372039 101
button 12944 1 fglrx
5)Then i jumped onto this tutorial :http://www.blackmoreops.com/2013/11/22/install-amd-app-sdk-kali-linux/ /NOTE: I used 2.9 version as i hate outdated software ;) /Note: replace "export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}" with
export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH}.If you don't do it ,your $LD_LIBRARY_PATH will be
/opt/AMDAPPlib/x86_64: which is invalid location and would cause trouble later!/
6)After a serious upgrade i got left only 500MB /this includes what i managed to get back from apt-get (auto)clean/.Next step is to jump to this tutorial:http://www.blackmoreops.com/2013/11/22/install-cal-kali-linux/
Now run cmake . and we get this output:

LIB_ATICAL_INCLUDE
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/examples
used as include directory in directory /root/Desktop/calpp-0.90/regression
used as include directory in directory /root/Desktop/calpp-0.90/regression.
This is because our 2.8/2.9 SDK doesnt include the CAL folder inside the AMDAPPSDK directory.
7) To fix the mess we go to this website /mentioned in my previous post/:https://github.com/clockfort/amd-app-sdk-fixes and press the "Download ZIP" button on the right side.Then unzip /i used unzip as i got it on my RHEL/ and go to the "amd-app-sdk-fixes-master/include" directory. Then issue a copy command :
cp -r * /opt/AMDAPP/include/. Then we are done with the fix and we can go back to the <calpp-0.90> directory and issue a
cmake . command.I got this output :

Configuring done
-- Generating done
-- Build files have been written to: /root/Desktop/calpp-0.90
NOTE: DON'T FORGET TO RUN
make AND
make install COMMANDS AS I DID!IT WILL SAVE YOU A LOT OF TROUBLES
8)Ati CAL++ is done and we jump to the last tutorial : http://www.blackmoreops.com/2013/11/22/install-pyrit-in-kali-linux/
As i said earlier I'm making a persistent USB Stick /which means it's a fresh install and i skipped the pyrit purging section of the tutorial.
Now we build the pyrit and cpyrit_calpp
./setyp.py build install
NOTE: I got lots of warnings in <cpyrit_calpp>'s setup.py but no asking for cal.hpp --you get these errors of missing cal.hpp file due to forgeting to make and make install commands in the CAL++ section.
I collected all this material and i hope it will help to all of you guys.As you see I'm not the author of these guides- so all credits are for www.blackmoreops.com and hexed6.

blackMORE
2014-04-09, 17:22
.As you see I'm not the author of these guides- so all credits are for www.blackmoreops.com (http://www.blackmoreops.com) You're too kind, please credit hexed6.

Dirt Rich
2014-04-23, 01:43
Thanks blackMORE, without you this tutorial wouldn't be possible. Nice website, some cool stuff there. Soon I will write a tutorial for fglrx-legacy (Radeon HD 3xxx and 4xxx) and also a tutorial for networking Pyrit machines, you couild put those on there as well if you want.

Any chance you've written this tutorial,and I've just been unable to find it? I'm pulling my hair out trying to set this up using my HD 4890. I'd very much appreciate it!

shahbaz
2014-06-27, 14:57
i am using kali with kernel 3.14-kali1-amd64
i get tfollowing error when issuing make command while installing cal++
################################# ERROR####################
[ 6%] Building CXX object examples/CMakeFiles/coalescingtest.dir/coalescingtest.cpp.o
/home/user/calpp-0.90/examples/coalescingtest.cpp: In function ‘void show_result(int, int)’:
/home/user/calpp-0.90/examples/coalescingtest.cpp:224:5: error: reference to ‘int64_t’ is ambiguous
In file included from /usr/include/stdlib.h:314:0,
from /usr/include/c++/4.7/cstdlib:66,
from /usr/include/boost/config/platform/linux.hpp:15,
from /usr/include/boost/config.hpp:53,
from /usr/include/boost/detail/workaround.hpp:41,
from /usr/include/boost/format.hpp:19,
from /home/user/calpp-0.90/examples/coalescingtest.cpp:25:
/usr/include/x86_64-linux-gnu/sys/types.h:197:1: error: candidates are: typedef long int int64_t
In file included from /usr/include/boost/date_time/compiler_config.hpp:54:0,
from /usr/include/boost/date_time/posix_time/posix_time.hpp:14,
from /home/user/calpp-0.90/examples/coalescingtest.cpp:26:
/usr/include/boost/cstdint.hpp:308:50: error: typedef boost::long_long_type boost::int64_t
/home/user/calpp-0.90/examples/coalescingtest.cpp:224:13: error: expected ‘;’ before ‘bytes’
/home/user/calpp-0.90/examples/coalescingtest.cpp:225:29: error: ‘bytes’ was not declared in this scope
make[2]: *** [examples/CMakeFiles/coalescingtest.dir/coalescingtest.cpp.o] Error 1
make[1]: *** [examples/CMakeFiles/coalescingtest.dir/all] Error 2
make: *** [all] Error 2

################################################## ################################
i have searched, but no solution.
can someone help me out here?

shahbaz
2014-06-27, 17:14
I solved this by changing following changes in the file "/usr/include/boost/cstdint.hpp"

1. comment the line : typedef ::boost::long_long_type int64_t;
and write typedef long int int64_t;

2. comment the line : typedef ::boost::ulong_long_type uint64_t;
and write typedef long unsigned int uint64_t;

elios115
2014-06-29, 09:23
hello guys , i am a newbie to kali , hope someone can help me.

my laptop have a switchable graphics architecture intel HD4000/ AMD radeon HD 8730M

root@kali:~# lspci -vnn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee ATI Mars [Radeon HD 8500/8700M Series] [1002:6601] (prog-if 00 [VGA controller])


i have kali linux and trying to use pyrit with my gpu (CAL or opencl) using SDK 2.7 , calpp 0.90 and pyrit

i was able to install the amd drivers and catalyst with no errors:

root@kali:~# fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: AMD Radeon (TM) HD 8500M/8700M
OpenGL version string: 4.4.12874 Compatibility Profile Context 14.10.1006.1001

root@kali:~# lsmod | grep fglrx
fglrx 8675016 77
button 12944 2 i915,fglrx

ATI catalyst center using my AMD graphics.


i installed AMD sdk as well as well as cal++ and pyrit with no errors at all.

root@kali:~# pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'CPU-Core (SSE2/AES)'
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'

i installed pyrit CAL and when i tried to any pyrit command (pyrit list_cores, pyrit benchmark), i get the following error:

root@kali:~# pyrit list_cores
terminate called after throwing an instance of 'cal::Error'
what(): Operational error
Aborted


i made sure cal was installed with no errors but couldnt get pyrit to run with it so i decided to switch to pyrit openCL

after removing pyrit and cleaning and reinstalling pyrit and pyrit opencl, i run the command list_cores but it doesnt recognize my gpu so the output is still

root@kali:~/pyrit_svn/cpyrit_opencl# pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'CPU-Core (SSE2/AES)'
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'


Can anybody help me with this task to get pyrit to use my gpu using cal or opencl?
i am sure that no errors occured at any stage of the installation, and i tried to have a clean install of kali with same results.
is my switchable graphics architecture related to that?

kindly help me in this.

hunter86_bg
2015-09-09, 20:51
Hello again, guys.
A long time have passed since i have installed pyrit on my old Rig! Now I'm writing just to share my experience with you about how I have successfully installed pyrit over KALI 2.0. As you can imagine - I've used my collection of guides (page 2-3 of this thread) with some differences.
Let's sum up the software:

1).OS: #lsb_release -a


No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux 2.0
Release: 2.0
Codename: sana

2).AMD Drivers : Catalist 15.7
I have used this guide http://unix.stackexchange.com/questions/222661/how-to-install-amd-catalyst-15-7-fglrx-15-20-1046-on-kali-2-0-sana (Kali2.0-AMD Drivers)
You must keep in mind that the patched "Catalist-15.7.tar.gz" requires registration on the site where the author uploaded the archive.

3) Next - AMD APP SDK - I have downloaded version 3.0 from AMD ( mind the path where it uses "/opt/AMDAPPSDK-3.0")
4).CAL++ - I've used "calpp-0.90" - as there is no newer version to tinker with :) 2.8/2.9/3.0 SDK don't include the CAL folder inside the AMDAPPSDK directory.To fix the mess we go to this website /mentioned in my previous post/:https://github.com/clockfort/amd-app-sdk-fixes and press the "Download ZIP" button on the right side.Then unzip /i used unzip/ and go to the "amd-app-sdk-fixes-master/include" directory. Then issue a copy command :
cp -r * /opt/AMDAPPSDK-3.0/include/ - then the usual
cmake . ,
make and
make install

5) At the end we build the pyrit and cpyrit_calpp http://www.blackmoreops.com/2013/11/22/install-pyrit-in-kali-linux/ (Guide Pyrit).If you meet an error about
fatal error: openssl/hmac.h: No such file or directory Issue this command:
# apt-get install libssl-dev
And "voil*" - Kali 2.0 with AMD and Pyrit

lygraf
2015-09-15, 21:45
2).AMD Drivers : Catalyst 15.7
I have used this guide Kali2.0-AMD Drivers (http://unix.stackexchange.com/questions/222661/how-to-install-amd-catalyst-15-7-fglrx-15-20-1046-on-kali-2-0-sana)

I have been unable to get this driver working, while following the guide to the letter in regards to the extra steps required because of GNOME. After restart I get a black screen (Catalyst conflicting with the GNOME login module if my googling hasnt led me astray) and have to reinstall.

Firstly, can anyone else confirm they're running this successfully?

Secondly, is there an alternative to reinstalling the entire OS if I wreck the desktop environment?

Any assistance would be greatly appreciated. Thanks!

Update: I was able to get the 15.7 drivers installed, but only after switching to XFCE (https://wiki.debian.org/Xfce) and getting SLiM (https://packages.debian.org/sid/x11/slim), which finally removed all gnome-related dependencies.

SiggiSmalls
2015-09-19, 12:15
I want to use my AMD Radeon HD 7700 Series on Kali 3.18.0-kali3-amd64 for cracking hashes with pyrit.
A year ago, I tried to install the appropriate drivers, but eventually I got no further. Can someone give me help?