Pyrit setup

From ivc wiki
Revision as of 12:31, 20 March 2010 by Ivc (talk | contribs)
Jump to navigationJump to search

Pyrit is a tool used to pre-compute all possible SSID:PASSWORD combinations to generate a list of PMK tokens.

Pre-requisite

Pyrit version 0.3.0 and up depend on Scapy2 (package inspection) and SQLAlchemy 0.5.6 (database interface).

Scapy: On a Debian bases distribution, get the package using aptitude. Backtrack 4 final include the Scapy2.

aptitude update
aptitude install python-scapy scapy2

SQLAlchemy: As of writing, Backtrack 4 pwnsource, does only include version 0.4.5. Version 0.5.6 or later is required for pyrit 0.3.0.

Get the latest stable release, extract, build and install.

wget http://downloads.sourceforge.net/project/sqlalchemy/sqlalchemy/0.5.8/SQLAlchemy-0.5.8.tar.gz
tar zxvf SQLAlchemy-0.5.8.tar.gz
cd SQLAlchemy-0.5.8
sudo python easy_install SQLAlchemy

Install

Download the latest pyrit from pyrit.googlecode.com.

wget http://pyrit.googlecode.com/files/pyrit-0.3.0.tar.gz

Extract, build and install the package.

tar zxvf pyrit-0.3.0.tar.gz
cd pyrit-0.3.0
python setup.py build
sudo python setup.py install

Test to verify the core modules work.

pyrit eval
pyrit list_cores
pyrit -e linksys create_essid

Now, to install the GPU accelerated modules.

Not tested for now

Nvidia CUDA: Make sure the Nvidia graphics drivers work with the graphics card. Next install the CUDA-Toolkit to get the required Nvidia compiler.

To install the pyrit CUDA module.

wget http://pyrit.googlecode.com/files/cpyrit-cuda-0.3.0.tar.gz
tar zxvf cpyrit-cuda-0.3.0
python setup.py build
sudo python setup.py install

Test to verify the new module is ready.

pyrit list_cores

OpenCL (Nvidia/AMD/Cell): Install the Nvidia OpenCL SDK or the ATI Stream SDK. Check the included instructions.

And for the pyrit OpenCL module.

wget http://pyrit.googlecode.com/files/cpyrit-opencl-0.3.0.tar.gz
tar zxvf cpyrit-opencl-0.3.0
python setup.py build
sudo python setup.py install

Test to verify the new module is ready.

pyrit list_cores

References