Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

  1. #11
    Just burned his ISO
    Join Date
    Sep 2011
    Location
    kansas
    Posts
    3

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    Awesome, worked for me, and alot easier than anywhere else I've been looking. I been messin with this all day, hp G60 Nvidia Geforce 8200M Ghttp://www.backtrack-linux.org/forums/images/smilies/wink.png

  2. #12
    Just burned his ISO
    Join Date
    Apr 2012
    Posts
    2

    Exclamation Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    Hey guys. So any of you guys can't get pyrit up and running here are some other options if pyrit isn't being nice and is not installing.

    If your getting
    cpyrit/_cpyrit_cpu.c:35:26: error: openssl/hmac.h: No such file or directory
    cpyrit/_cpyrit_cpu.c:36:25: error: openssl/md5.h: No such file or directory
    cpyrit/_cpyrit_cpu.c:37:25: error: openssl/sha.h: No such file or directory
    cpyrit/_cpyrit_cpu.c:38:25: error: openssl/aes.h: No such file or directory

    Try this.

    sudo apt-get install libssl-dev

    if libssl-dev doesn't install and you get
    The following packages have unmet dependencies:
    libssl-dev: Depends: libssl0.9.8 (= 0.9.8k-7ubuntu8.6) but 0.9.8k-7ubuntu8.8 is to be installed
    E: Broken packages

    Try this

    Add the following to /etc/apt/sources.list :

    deb http://security.ubuntu.com/ubuntu lucid-security main
    type in the terminal:

    sudo apt-get update
    Then, delete the newly added entry of the sources.list.

    After that "apt-get install libssl-dev" should be working.

    Thanks to samiux (samiux.blogspot.com/2012/03/howto-backtrack-5-r2-on-intel-x79.html)


    If your still getting the same broken packages error last resort try this

    1. In a terminal window, first type apt-get install synaptic

    Wait for that to install and then start synaptic by typing synaptic in the terminal.

    2. Wait for synaptic to update it’s search results and then in the search bar type dhcp3-common

    3. Click on it and then in the “Package” menu at the top, select “Force Version…” The shortcut is ctrl+e.

    4. In the drop-down menu, select “3.1.3-2ubuntu3.2 (stable)” and click force version and then “Mark”.

    5. Press the “Apply” button with the green checkmark. Double-check to make sure you’re doing the right thing in the pop-up window. You will be removing dhcp3-common, dhcp3-gtk, dhcp3-daemon, and also Wicd.

    6. Wait for Synaptic to do it’s thing and then close it. (Don’t reboot or anything like that!)

    7. Since Wicd is important for starting and stopping networking with a GUI, reopen the terminal window and type apt-get install wicd

    After that "apt-get install libssl-dev" should be working.

    Thanks to thespiritbomber (http://pbnsec.com/?author=2)


    I thought I'd share this with everyone because I had to do the last resort. I've spent a few days filtering though forums and the web for answers before pulling out my hair, nearly throwing my computer across the apartment in furry before finding my fix. I wasn't about to ask for help just yet lol. Hope this collaboration of articles helps someone out.

  3. #13
    Just burned his ISO zoran974's Avatar
    Join Date
    Mar 2012
    Location
    Croatia
    Posts
    8

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    I try this way and it works. But now I have issue with Log Off. If I try to Log Off from xserver my laptop screen is completely black.

    Any suggestions?

  4. #14
    Just burned his ISO zoran974's Avatar
    Join Date
    Mar 2012
    Location
    Croatia
    Posts
    8

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    Quote Originally Posted by zoran974 View Post
    I try this way and it works. But now I have issue with Log Off. If I try to Log Off from xserver my laptop screen is completely black.

    Any suggestions?
    More info: Fresh clean installation of BT 5 R2, two different nvidia drivers used (from nvidia official download site), BT 5 R2 reinstalled four-five times already. Laptop is Sony VPCCW17FX with GeForce M210 family.
    Same thing is happening if I try to reach tty session from x session. But one thing is strange. I am able to type on my keyboard (I am not able to see what I am typing and where) startx and I am back in x session. So something is missing or something is wrong. With nouveau drivers everything works fine.

    Is it something with gdm, plymounth or.........

  5. #15
    Just burned his ISO
    Join Date
    Jan 2012
    Posts
    1

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    i try install CUDA error please help me

    Screenshot.jpg

    root@bt:~# cd pyrit/pyrit/
    root@bt:~/pyrit/pyrit# cd ../cpyrit_cuda/
    root@bt:~/pyrit/cpyrit_cuda# python setup.py build
    running build
    running build_ext
    Skipping rebuild of Nvidia CUDA kernel ...
    Building modules...
    building 'cpyrit._cpyrit_cuda' extension
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.6 -c _cpyrit_cuda.c -o build/temp.linux-x86_64-2.6/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.1-dev (svn r308)"
    gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.6/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-x86_64-2.6/cpyrit/_cpyrit_cuda.so
    /usr/bin/ld: cannot find -lcuda
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1
    root@bt:~/pyrit/cpyrit_cuda#

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

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    i try install the cuda but no CUDA is assigned into my cores ...

    after we do pyrit/cpyrit_cuda/ setup.sh build and install its all success but i doesn't see the one of cores is assigned to CUDA

    root@bt:/source/pyrit/cpyrit_cuda#pyrit list_cores
    Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Leug 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)'
    root@bt:/source/pyrit#

    PS: i've use on my sony vaio laptop series Z115GG that has dual video card, 1 is NVIDIA with CUDA, 2 is Intel Graphics Accelerator

    NVIDIA with CUDA when i search is NVIDIA GT-330M (300 Series Mobile)

    kindly advice what is happen or missed

  7. #17

    Default Re: How to get Pyrit and CUDA working on BT5 R2 (NVIDIA)

    Quote Originally Posted by twocents View Post
    Hi all,

    Found this excellent post on getting pyrit and cuda working. It was written for Backtrack 5 with the old 2.6.x kernel but I thought I would change some things and give it a shot and it worked! 9,307 PMKs/s on an NVIDIA GTX 260!

    Here is the original link:

    http://chee-yang.blogspot.com/2011/1...yrit-with.html

    I broadly followed it but did it slightly differently as follows:

    1) don't use the development driver - it moans about the 3.2.6 kernel - just go to nvidia drivers and get the latest linux build for your card (you can download from website & don't have to use wget). Download it to the suggested location for ease later.

    I used NVIDIA-Linux-x86-295.20.run because thats my card.

    2) go to developer.nvidia.com and get the CUDA Toolkit 4.1

    http://developer.nvidia.com/cuda-toolkit-41

    I selected the Ubuntu 10.04 32 bit option

    3) open a shell and prepare kernel sources (thanks Softize):

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

    4) purge any existing nvidia drivers:

    hit ctrl+alt+f1 to stop xserver

    apt-get --purge remove xserver-xorg-video-nouveau

    (remember to remove any existing drivers using the ./ --uninstall if you are updating)

    5) mine would not let me install the new driver because it was moaning about nouveau

    so, blacklist in Grub (thanks TonyIta)

    nano /etc/default/grub

    "...vga=791 nouveau.modeset=0"

    exit and save then

    update-grub

    reboot

    chmod +x "your-nvidia-driver".run
    ./your-nvidia-driver

    should now install fine.

    chmod +x cudatoolkit_4.1.28_linux_32_ubuntu10.04.run
    ./cudatoolkit_4.1.28_linux_32_ubuntu10.04.run

    (leave the default path when asked)

    once finished:

    nano ~/.bashrc

    change the PATH= and add these lines to the end (after the last fi) so it looks like this:

    PATH=$PATH:/usr/local/cuda/bin
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64
    export PATH
    export LD_LIBRARY_PATH

    exit nano and save changes.

    source /root/.bashrc
    ldconfig

    Then follow Chee Yang's how to from this point on - ie:


    Check NVIDIA compiler:

    root@bt:~# which nvcc
    /usr/local/cuda/bin/nvcc
    root@bt:~# nvcc -V
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2011 NVIDIA Corporation
    Built on Thu_May_12_11:09:45_PDT_2011
    Cuda compilation tools, release 4.0, V0.2.1221

    Setup pyrit

    Setup pyrit dependent packages:

    root@bt:~# apt-get install libssl-dev
    root@bt:~# apt-get install scapy
    root@bt:~# apt-get install python-dev

    Check out Pyrit SVN trunk:

    root@bt:~# svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit

    Build Pyrit:

    root@bt:~# cd pyrit/pyrit/
    root@bt:~/pyrit/pyrit# python setup.py build
    root@bt:~/pyrit/pyrit# python setup.py install

    Test Pyrit:

    root@bt:~/pyrit/pyrit# 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)'
    #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)'

    Setup CUDA for Pyrit

    Build CUDA for Pyrit:

    root@bt:~/pyrit/pyrit# cd ../cpyrit_cuda/
    root@bt:~/pyrit/cpyrit_cuda# python setup.py build
    root@bt:~/pyrit/cpyrit_cuda# python setup.py install

    Test CUDA for Pyrit:

    root@bt:~/pyrit/cpyrit_cuda# 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: 'CUDA-Device #1 'GeForce 8400 GS''
    #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:~/pyrit/cpyrit_cuda# pyrit benchmark
    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+

    Running benchmark (3240.1 PMKs/s)... \

    Computed 3240.14 PMKs/s total.
    #1: 'CUDA-Device #1 'GeForce 8400 GS'': 457.5 PMKs/s (RTT 3.2)
    #2: 'CPU-Core (SSE2)': 425.5 PMKs/s (RTT 3.0)
    #3: 'CPU-Core (SSE2)': 425.9 PMKs/s (RTT 3.0)
    #4: 'CPU-Core (SSE2)': 426.2 PMKs/s (RTT 3.0)
    #5: 'CPU-Core (SSE2)': 425.5 PMKs/s (RTT 2.9)
    #6: 'CPU-Core (SSE2)': 425.6 PMKs/s (RTT 3.1)
    #7: 'CPU-Core (SSE2)': 453.3 PMKs/s (RTT 3.0)
    #8: 'CPU-Core (SSE2)': 422.3 PMKs/s (RTT 3.1)

    Thats it!

    (My GTX260 is showing around 9,300)

    Many thanks to Chee Yang!

    Hope this helps somebody.

    Enjoy
    Thanks so much. It works like a charm. BTR3 Gnome 64
    Everyone has started from ZERO. I'm not an exception but I'm trying to hear more than speak too much.

    http://pentestconsultancy.blogspot.ro

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Pyrit Cuda Nvidia Optimus Power Drain
    By snafu777 in forum BackTrack 5 Fixes
    Replies: 23
    Last Post: 12-13-2012, 08:57 PM
  2. Nvidia 64 drivers / Cuda and pyrit
    By vvpalin in forum BackTrack 5 Beginners Section
    Replies: 7
    Last Post: 07-07-2011, 12:11 AM
  3. pyrit with CUDA support not showing CUDA cores
    By kill_box001 in forum Beginners Forum
    Replies: 7
    Last Post: 08-14-2010, 06:29 PM
  4. pyrit CUDA nvidia Tutorial + Nvidia overclock instructions
    By purehate in forum OLD BT4beta HowTo's
    Replies: 155
    Last Post: 01-26-2010, 12:27 AM
  5. pyrit .2.4 - 0.2.5 not working with cuda?
    By andytof47 in forum OLD BackTrack 4 General Support
    Replies: 9
    Last Post: 01-22-2010, 01:55 AM

Posting Permissions

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