Results 1 to 28 of 28

Thread: Installing ATI drivers, AMD APP SDK, CAL++, and Pyrit

  1. #1
    Join Date
    2013-Nov
    Posts
    4

    Installing ATI drivers, AMD APP SDK, CAL++, and Pyrit

    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.

    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.
    Code:
    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:
    Code:
    # 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:
    Code:
    apt-get update
    Step 4: Install Linux headers:
    Code:
    apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
    Step 5: Attempt installation of ATI drivers:
    Code:
    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:
    Code:
    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:
    Code:
    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:
    Code:
    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:
    Code:
    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-s...nload-archive/

    Step 2: Install the SDK:
    Code:
    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:
    Code:
    # 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:
    Code:
    source ~/.bashrc



    Installing CAL++

    Step 1: Install prerequisites:
    Code:
    apt-get install cmake libboost-all-dev
    Step 2: Download calpp 0.90 from:
    http://sourceforge.net/projects/calp...ar.gz/download

    Step 3: Install CAL++:
    Code:
    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:
    Code:
    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:
    Code:
    cmake .
    make
    make install



    Installing Pyrit

    Step 1: Install prerequisites
    Code:
    apt-get install libpcap-dev
    Step 2: Remove existing installation of pyrit
    Code:
    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:
    Code:
    rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/
    Step 3: Download pyrit
    Code:
    svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
    Step 4: Install pyrit
    Code:
    cd pyrit_svn/pyrit/
    ./setup.py build install
    Step 5: Install CAL++ plugin
    Code:
    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:
    Code:
    ./setup.py build install
    There will be several warnings, but hopefully no errors and everything will be installed.

    Step 6: Test cpyrit
    Code:
    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)'


    Code:
    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)

  2. #2
    Thanks for this hexed6. Worked for me as well.
    I've added this to my website with credits for you.

  3. #3
    worked for me. oclhashcat-lite worked with --force

  4. #4
    Join Date
    2013-Nov
    Posts
    4
    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.

  5. #5
    Join Date
    2013-Mar
    Posts
    7
    hexed6, blackmore: issuing the apt-get remove --purge pyrit says that kali-linux and kali-linux-full will also be removed. is this ok?

  6. #6
    Join Date
    2013-Nov
    Posts
    4
    Quote Originally Posted by hdcase View Post
    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:
    Code:
    apt-cache show kali-linux

  7. #7
    Join Date
    2013-May
    Posts
    7
    Awesome! Worked like a charm for a Radeon 5650.

  8. #8
    Join Date
    2013-Dec
    Posts
    1
    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.

  9. #9
    Join Date
    2013-Dec
    Posts
    1
    Works great with my AMD 7770 !



    Thank you hexed6

  10. #10
    Join Date
    2013-Mar
    Posts
    14
    The new version of kali has a new kernel and I cannot install the 3.7 kernel sources anymore. Please help.

  11. #11
    Join Date
    2013-Mar
    Location
    unknown
    Posts
    61
    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?
    Last edited by Lancha; 2014-01-18 at 20:49.

  12. #12
    Join Date
    2013-Oct
    Posts
    3
    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.p...=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.

  13. #13
    Join Date
    2013-Oct
    Posts
    3
    Anybody know if this works with the new kernel? Anybody? srsly

  14. #14
    Join Date
    2013-Nov
    Posts
    4
    Quote Originally Posted by mister View Post
    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.

  15. #15
    Join Date
    2013-Mar
    Location
    localhost
    Posts
    41
    nice post keep up
    r00tv.org
    moosy.org
    telegram @bondbenz

  16. #16
    Join Date
    2014-Feb
    Posts
    8
    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.
    Last edited by Alexcreator; 2014-02-23 at 17:06.

  17. #17
    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.

  18. #18
    Join Date
    2014-Mar
    Posts
    1
    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 ([email protected]) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.12.6-2kali1 (2014-01-06)

  19. #19
    Join Date
    2014-Apr
    Posts
    9
    Quote Originally Posted by amo001 View Post
    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 ([email protected]) (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/...al-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/.

  20. #20
    Join Date
    2014-Apr
    Posts
    9
    Ok, here is what happened to me since last night:

    SOFTWARE:
    Code:
    #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/...ersion-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
    Code:
    lsmod | grep fglrx
    and the output was
    Code:
    fglrx                7372039  101  
    button                 12944  1 fglrx
    5)Then i jumped onto this tutorial :http://www.blackmoreops.com/2013/11/...dk-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
    Code:
    export LD_LIBRARY_PATH=${AMDAPPSDKROOT}/lib/x86_64:${LD_LIBRARY_PATH}
    .If you don't do it ,your $LD_LIBRARY_PATH will be
    Code:
    /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/...al-kali-linux/
    Now run cmake . and we get this output:
    Code:
    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 :
    Code:
    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
    Code:
    cmake .
    command.I got this output :
    Code:
    Configuring done
    -- Generating done
    -- Build files have been written to: /root/Desktop/calpp-0.90
    NOTE: DON'T FORGET TO RUN
    Code:
    make
    AND
    Code:
    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/...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
    Code:
    ./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.
    Last edited by hunter86_bg; 2014-04-10 at 17:37. Reason: Adding credits

  21. #21
    Quote Originally Posted by hunter86_bg View Post
    .As you see I'm not the author of these guides- so all credits are for www.blackmoreops.com
    You're too kind, please credit hexed6.

  22. #22
    Join Date
    2014-Apr
    Posts
    1
    Quote Originally Posted by hexed6 View Post
    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!

  23. #23
    Join Date
    2014-Jan
    Location
    India
    Posts
    10
    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?

  24. #24
    Join Date
    2014-Jan
    Location
    India
    Posts
    10
    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;

  25. #25
    Join Date
    2014-Jun
    Posts
    5
    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.

  26. #26
    Join Date
    2014-Apr
    Posts
    9
    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

    Code:
    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
    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 :
    Code:
    cp -r * /opt/AMDAPPSDK-3.0/include/
    - then the usual
    Code:
     cmake .
    ,
    Code:
     make
    and
    Code:
     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/.If you meet an error about
    Code:
    fatal error: openssl/hmac.h: No such file or directory
    Issue this command:
    Code:
    # apt-get install libssl-dev
    And "voilÃ*" - Kali 2.0 with AMD and Pyrit
    Last edited by hunter86_bg; 2015-09-10 at 06:35.

  27. #27
    Join Date
    2015-Sep
    Posts
    1
    Quote Originally Posted by hunter86_bg View Post
    2).AMD Drivers : Catalyst 15.7
    I have used this guide Kali2.0-AMD Drivers
    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 and getting SLiM, which finally removed all gnome-related dependencies.
    Last edited by lygraf; 2015-09-19 at 16:27.

  28. #28
    Join Date
    2015-Sep
    Posts
    1
    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?

Similar Threads

  1. Installing Nvidia drivers, Cuda 5.5 and Pyrit [SOLVED]
    By mattt in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2015-04-14, 17:36
  2. Replies: 7
    Last Post: 2014-09-20, 03:28
  3. Replies: 0
    Last Post: 2013-10-16, 21:37

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •