Results 1 to 7 of 7

Thread: Help installing pyrit

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    5

    Default Help installing pyrit

    I've ha problem installing pyrit:

    CPU: intel i5-2500k
    GPU: ATI 6950 2GB

    I'm not on a Virtual Machine

    instructions:
    apt-get purge pyrit
    svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
    cd pyrit_svn/pyrit
    ./setup.py build
    ./setup.py install --record ~/pyrit.txt
    cd ../cpyrit_calpp
    ./setup.py build
    ./setup.py install --record ~/pyritcalpp.txt


    I do:

    command: apt-get purge pyrit

    root@bt:~# apt-get purge pyrit
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Couldn't find package pyrit
    root@bt:~#

    i go on anyway
    Command:svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
    result OK

    command: cd pyrit_svn/pyrit
    ./setup.py build


    root@bt:~/pyrit_svn/pyrit# ./setup.py build
    cpyrit/_cpyrit_cpu.c:1589: warning: implicit declaration of function ‘PyString_FromString’
    cpyrit/_cpyrit_cpu.c:1590: error: ‘PcapDevice’ has no member named ‘datalink_name’
    cpyrit/_cpyrit_cpu.c:1597: error: ‘PcapDevice’ has no member named ‘type’
    cpyrit/_cpyrit_cpu.c:1598: error: ‘PcapDevice’ has no member named ‘type’
    cpyrit/_cpyrit_cpu.c:1599: error: ‘PcapDevice’ has no member named ‘type’
    cpyrit/_cpyrit_cpu.c:1605: error: ‘PcapDevice’ has no member named ‘device_name’
    cpyrit/_cpyrit_cpu.c:1606: error: ‘PcapDevice’ has no member named ‘device_name’
    cpyrit/_cpyrit_cpu.c:1607: error: ‘PcapDevice’ has no member named ‘device_name’
    cpyrit/_cpyrit_cpu.c:1613: error: ‘PcapDevice’ has no member named ‘status’
    cpyrit/_cpyrit_cpu.c: At top level:
    cpyrit/_cpyrit_cpu.c:1619: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1621: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1650: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1652: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1681: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1683: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1750: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1752: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1795: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1797: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1840: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1843: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1851: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1854: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:1883: error: expected ‘)’ before string constant
    cpyrit/_cpyrit_cpu.c:1886: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cpyrit/_cpyrit_cpu.c:2020: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CPUDevice_methods’
    cpyrit/_cpyrit_cpu.c:2026: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CPUDevice_type’
    cpyrit/_cpyrit_cpu.c:2071: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EAPOLCracker_methods’
    cpyrit/_cpyrit_cpu.c:2077: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EAPOLCracker_type’
    cpyrit/_cpyrit_cpu.c:2122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CCMPCracker_methods’
    cpyrit/_cpyrit_cpu.c:2128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CCMPCracker_type’
    cpyrit/_cpyrit_cpu.c:2173: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CowpattyResult_methods’

    (.......)

    cpyrit/_cpyrit_cpu.c:2294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PcapDevice_members’
    cpyrit/_cpyrit_cpu.c:2303: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PcapDevice_methods’
    cpyrit/_cpyrit_cpu.c:2314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PcapDevice_type’
    cpyrit/_cpyrit_cpu.c:2360: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CPyritCPUMethods’
    cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’:
    cpyrit/_cpyrit_cpu.c:2399: error: ‘PlatformString’ undeclared (first use in this function)
    cpyrit/_cpyrit_cpu.c:2427: error: ‘ccmp_encrypt’ undeclared (first use in this function)
    cpyrit/_cpyrit_cpu.c:2428: error: ‘ccmp_encrypt_openssl’ undeclared (first use in this function)
    cpyrit/_cpyrit_cpu.c: At top level:
    cpyrit/_cpyrit_cpu.c:2441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_cpyrit_cpu’
    error: command 'gcc' failed with exit status 1
    root@bt:~/pyrit_svn/pyrit#

    I think there is a problem with the compiler....

    I followed all the previous instruction and all gone fine
    which is my mistake?

  2. #2
    Just burned his ISO
    Join Date
    Nov 2009
    Posts
    4

    Default Re: Help installing pyrit

    You might want to make sure you have all the dependencies installed. I see they call for python-devel which in ubuntu does not exist but python-all-dev does which says it provides all python development sources for your system. I see that none of the python dev packages are installed in my bt5 by default so I thought I would throw that out there.

    Heres the pyrit installation wiki page with more info on compiling it.

    http://code.google.com/p/pyrit/wiki/Installation

    Good Luck

  3. #3
    Junior Member cr1p70's Avatar
    Join Date
    Jan 2010
    Location
    Inside your network
    Posts
    32

    Default Re: Help installing pyrit

    GPU: ATI 6950 2GB
    That maybe your problem.. I could be wrong try this
    (http://www.backtrack-linux.org/forum...kde-64bit.html)
    Last edited by cr1p70; 06-24-2011 at 02:45 AM.

  4. #4
    Senior Member
    Join Date
    Jan 2011
    Location
    over the under
    Posts
    197

    Default Re: Help installing pyrit

    check to make sure you have all required dependencies installed.

  5. #5
    Junior Member
    Join Date
    Jan 2010
    Posts
    27

    Default Re: Help installing pyrit

    Looks like dependencies here

    is there something "python-gcc-dev" pkg ? try apt-cache search

  6. #6
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    5

    Default Re: Help installing pyrit

    I did it!

    Were missing any pyton library!!

    I found the solution
    http://www.backtrack-linux.org/forum...kde-64bit.html (it work also for GNOME)
    The solution has been suggested by an user, it's not in the guide!

    Thank you all!

  7. #7
    Just burned his ISO
    Join Date
    Nov 2011
    Posts
    1

    Default Re: Help installing pyrit bt5

    Here is a quick guide to get ati sdk, pyrit and opencl working on your system (tested on a g73jh ati 5870 with an i7), most of this guide has been taken from
    various other guides and then put together to be as simple as possible.

    First prepare kernel sources by:

    Code:

    prepare-kernel-sources
    cd /usr/src/linux
    cp -rf include/generated/* include/linux/

    you must now download the ati driver to your root or home folder from the website and change the code below to the correct one
    ie.. the present driver that i have is ati-driver-installer-11-9-x86.x86_64.run but the next one
    will be ati-driver-installer-11-10-x86.x86_64.run

    Now install ati driver by running:

    Code:

    sh ati-driver-installer-11-9-x86.x86_64.run

    Follow install and then restart computer.

    Download the AMD-APP SDK from
    http://orwell.fiit.stuba.sk/~nou/amd-app_2.4_amd64.deb
    Install amd-app (SDK) by clicking on the
    amd-app_2.4_amd64.deb file and clicking install.
    *** Note this installs the amd app sdk with opencl support only ***

    Also download the AMD-APP-SDK-v2.4-lnx64.tgz (With CAL++ Libraries) from:
    http://developer.amd.com/gpu/AMDAPPS...s/default.aspx
    Untar by typing:
    Code:

    tar -xvzf AMD-APP-SDK-v2.4-lnx64.tgz

    Then go into the directory:
    Code:

    cd AMD-APP-SDK-v2.4-lnx64
    tar -xvzf icd-regisration.tgz
    make
    make install

    Install the boost library and dev tools by typing:
    Code:

    apt-get install libboost1.40-all-dev

    apt-get install cmake
    Download cal++ to your root directory from:
    http://sourceforge.net/projects/calp...ar.gz/download

    Now untar calpp-0.90 by typing:
    Code:

    tar -xvzf calpp-0.90.tar.gz

    cd calpp-0.90

    First edit the CMakeLists.txt file in the cal++ directory so that it knows where ATI APP is installed.
    Open the file in nano by:

    Code:

    nano CMakeLists.txt

    Find the lines that start with FIND_LIBRARY() and edit to look like this:

    FIND_LIBRARY( LIB_ATICALCL aticalcl PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" )
    FIND_LIBRARY( LIB_ATICALRT aticalrt PATHS "/root/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/" )
    FIND_PATH( LIB_ATICAL_INCLUDE NAMES cal.h calcl.h PATHS "/root/AMD-APP-SDK-v2.4-lnx64/include/CAL" )

    Then press crtl + x followed by 'y' and then enter

    Then edit the bashrc file by typing:
    Code:

    nano ~/.bashrc

    Go to the bottom and add this:

    ATISTREAMSDKROOT=/root/AMD-APP-SDK-v2.4-lnx64/
    ATISTREAMSDKSAMPLESROOT=/root/AMD-APP-SDK-v2.4-lnx64/samples
    LD_LIBRARY_PATH=opt/oracle/instantclient_10_2:$ATISTREAMSDKROOT/lib/x86_64
    export ATISTREAMSDKROOT
    export ATISTREAMSDKSAMPLESROOT

    Then press crtl + x followed by 'y' and then enter


    Then install cal++ by going into the cal++ directory (cd calpp-0.90) and typing:

    Code:

    cmake . (dont forget to type the period)

    once that's finished, type
    Code:

    make

    make install

    next we download the pyrit directory by typing:

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

    We have just created a dir /pyrit_svn
    This will install libs and other stuff needed:

    Code:

    apt-get install libssl-dev


    Going to build pyrit

    Code:

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

    next build cpyrit_opencl

    cd pyrit_svn/cpyrit_opencl
    python setup.py build
    python setup.py install


    now you can type: pyrit list_cores

    and hopefully you will get something like this:


    root@bt:~# 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: 'OpenCL-Device 'Juniper''
    #2: 'CPU-Core (SSE2)'
    #3: 'CPU-Core (SSE2)'
    #4: 'CPU-Core (SSE2)'
    #5: 'CPU-Core (SSE2)'
    #6: 'CPU-Core (SSE2)'
    #7: 'CPU-Core (SSE2)'
    #8: 'CPU-Core (SSE2)'
    root@bt:~#


    This is on a Asus g73-jh with an i7 processor and an ati 5870 graphics card.
    I can get anything from 16000 to 21000 pkms depending on the word lenghts
    i have tried very hard to get cal++ working on this laptop but all of my attempt have been futile,
    if anyone else can manage to get working on one of these rigs i would love to hear from you.

Similar Threads

  1. WPA+Pyrit
    By 0v3rl04d in forum Angolo Wireless
    Replies: 1
    Last Post: 03-05-2011, 06:05 PM
  2. Pyrit
    By bringeber in forum Beginners Forum
    Replies: 1
    Last Post: 11-12-2010, 02:52 PM
  3. Possible Pyrit bug.
    By Fiack Yiu in forum Beginners Forum
    Replies: 4
    Last Post: 02-22-2010, 11:59 PM
  4. Pyrit on LAN
    By blingblouw in forum OLD Newbie Area
    Replies: 2
    Last Post: 09-04-2009, 11:09 PM
  5. installing modules vs installing in general.
    By imported_seven in forum OLD Newbie Area
    Replies: 12
    Last Post: 05-20-2007, 06:13 PM

Posting Permissions

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