Home » How to install Pyrit in Kali Linux?

How to install Pyrit in Kali Linux?

by blackMOREOps
125 comments

How to install Pyrit in Kali Linux - blackMORE Ops

This guide (How to install Pyrit 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 AMD APP SDK in Kali Linux?
  3. How to install CAL++ in Kali Linux?
  4. How to install Pyrit in Kali Linux?

Credits:

A big thanks goes to hexed6 from Kali Forums for his original post.

Thanks to for his CAL++ project in Sourceforge.

Thanks to Pyrit project

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?

Check CAL++ Installation

Check if CAL++ is installed. If not installed, follow this guide to install it.

How to install CAL++ in Kali Linux?

Why Pyrit?

Pyrit allows to create massive databases, pre-computing part of the IEEE 802.11 WPA/WPA2-PSK authentication phase in a space-time-tradeoff. Exploiting the computational power of Many-Core- and other platforms through ATI-Stream, Nvidia CUDA, OpenCL and VIA Padlock, it is currently by far the most powerful attack against one of the world’s most used security-protocols.

Install Pyrit in Kali

Install prerequisites

apt-get install libpcap-dev

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/

Download pyrit

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

Install Pyrit

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

Install CAL++ plugin

cd ../cpyrit_calpp/

Edit setup.py

Edit setup.py file and modify/replace the followings:
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.

Test cpyrit

List available core

pyrit list_cores
...

Output

The following cores seem available...

#1: 'CAL++ Device #1 'AMD GPU DEVICE''
#2: 'CPU-Core (SSE2)'
#3: 'CPU-Core (SSE2)'
#4: 'CPU-Core (SSE2)'

Benchmark Pyrit

pyrit benchmark
...

Output

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)

You may also like

125 comments

eyebrain September 17, 2015 - 7:24 pm

I just did the re-install after upgrading to kali 2.0 and having kali messing up my device beyond belief… But this time around after downgrading back to kali 1.x Instead of this taking me days it only took me an hour ;) on my macbook pro… Epic… thanks again!! (and don’t goto kali 2.0 if your thinking about this until it gets all the bugs worked out) older kali works better! <3

Reply
Anatolii October 17, 2015 - 6:02 am

My laptop has nvidia GeForce GT 330M. Install NVIDIA-Linux-x86_64-340.93.run and cuda_6.5.19_linux_64.run
Then Install pyrit.

pyrit benchmark

Pyrit 0.5.0 (C) 2008-2011 Lukas Lueg – 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+

Running benchmark (1295.6 PMKs/s)… –

Computed 1295.60 PMKs/s total.
#1: ‘CPU-Core (SSE2)’: 356.5 PMKs/s (RTT 3.0)
#2: ‘CPU-Core (SSE2)’: 355.9 PMKs/s (RTT 3.0)
#3: ‘CPU-Core (SSE2)’: 356.7 PMKs/s (RTT 3.0)
#4: ‘CPU-Core (SSE2)’: 341.5 PMKs/s (RTT 3.2)

No graphic card used. How to use the video card?

Reply
konstantinosmonahopoulo November 5, 2015 - 8:47 pm

ALWAYS “Segmentation fault”, for EVERY configuration that i tried and EVERY possible solution!! I see everybody has the same problem. If the Author or somebody linux expert can’t find the solution i think that this thread is referred to 50% of Kali linux users… Anyway thanks for the tutorial !!

Reply
santhrax November 25, 2015 - 10:01 pm

which card you are using????

Reply
Alice AA December 26, 2016 - 3:31 pm

What would be the steps to update an existing installation of pyrit?
I already have it fully working… but it’s many versions in the past.
Thanks

Reply
sahand May 29, 2017 - 1:38 am

hi
is gigabyte RX 460 work on pyrit?
TNX

Reply
1 2 3

Leave your solution or comment to help others. Comment don't need registration or real email, so feel free.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Us

blackMORE Ops - touch-icon-72x72

blackMORE Ops” does not promote, encourages and excite hackers, its purpose is to make people aware that what is going around. Know Hacking but No Hacking!

Feature Posts

Newsletter