Pyrit: Difference between revisions
From charlesreid1
No edit summary |
|||
| Line 1: | Line 1: | ||
The code for Pyrit is here: https://code.google.com/p/pyrit/downloads/list | The code for Pyrit is here: https://code.google.com/p/pyrit/downloads/list | ||
=Building | =Building Pyrit on Ubuntu AWS Instance= | ||
To build Pyrit on any AWS machine, you'll want to grab the NVidia drivers, since those are the only kinds of GPUs currently offered by AWS. | To build Pyrit on any AWS machine, you'll want to grab the NVidia drivers, since those are the only kinds of GPUs currently offered by AWS. | ||
==Getting Set Up== | |||
Installing on Ubuntu will require the OpenSSL and Libpcap development libraries (i.e., headers), which aren't on Ubuntu by default: | Installing on Ubuntu will require the OpenSSL and Libpcap development libraries (i.e., headers), which aren't on Ubuntu by default: | ||
| Line 19: | Line 17: | ||
</pre> | </pre> | ||
==Installing Pyrit== | |||
Now we're ready to install Pyrit: | Now we're ready to install Pyrit: | ||
| Line 28: | Line 26: | ||
</pre> | </pre> | ||
==Installing Pyrit CUDA== | |||
===Installing CUDA=== | |||
Before you can install CPyrit Cuda, you have to install CUDA. | Before you can install CPyrit Cuda, you have to install CUDA. | ||
| Line 57: | Line 55: | ||
===Build CPyrit Cuda=== | |||
Now if everything went well you should be able to build CPyrit Cuda: | Now if everything went well you should be able to build CPyrit Cuda: | ||
Revision as of 19:32, 2 August 2015
The code for Pyrit is here: https://code.google.com/p/pyrit/downloads/list
Building Pyrit on Ubuntu AWS Instance
To build Pyrit on any AWS machine, you'll want to grab the NVidia drivers, since those are the only kinds of GPUs currently offered by AWS.
Getting Set Up
Installing on Ubuntu will require the OpenSSL and Libpcap development libraries (i.e., headers), which aren't on Ubuntu by default:
$ apt-get update $ apt-get install build-essential $ apt-get install python python-dev $ apt-get install libssl-dev $ apt-get install libpcap-dev
Installing Pyrit
Now we're ready to install Pyrit:
$ python setup.py build $ python setup.py install
Installing Pyrit CUDA
Installing CUDA
Before you can install CPyrit Cuda, you have to install CUDA.
Some instructions here: http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/ (outdated)
More instructions here: http://markus.com/install-theano-on-aws/
You have two options:
Dive into the gauntlet of privacy violations required in signing up for an account with Nvidia,
Or use the link from the above blog post to download the CUDA developer package (hint: do this one):
sudo wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.0-28_amd64.deb
Now install it:
$ deb -i cuda-repo-ubuntu1404_7.0-28_amd64.deb $ apt-get update $ apt-get install -y cuda
Build CPyrit Cuda
Now if everything went well you should be able to build CPyrit Cuda:
$ python setup.py build && python setup.py install running build running build_ext Compiling CUDA module using nvcc 7.0, V7.0.27... Executing '/usr/local/cuda/bin/nvcc -m64 --host-compilation C -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' nvcc warning : option 'host-compilation' has been deprecated Building modules... building 'cpyrit._cpyrit_cuda' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.7 -c _cpyrit_cuda.c -o build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -Wall -fno-strict-aliasing -DVERSION="0.4.0" creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/cpyrit x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -lcrypto -lcuda -lz -o build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so running install running build running build_ext Skipping rebuild of Nvidia CUDA kernel ... Building modules... running install_lib copying build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so -> /usr/local/lib/python2.7/dist-packages/cpyrit running install_egg_info Writing /usr/local/lib/python2.7/dist-packages/cpyrit_cuda-0.4.0.egg-info