Skip to content

Instantly share code, notes, and snippets.

@borrell
Created May 9, 2012 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borrell/2643683 to your computer and use it in GitHub Desktop.
Save borrell/2643683 to your computer and use it in GitHub Desktop.
#!/bin/sh -e
# Pyrit Install (Amazon GPU Instance)
sudo yum install subversion python-devel openssl-devel zlib-devel libpcap-devel
svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
wget http://www.secdev.org/projects/scapy/files/scapy-latest.zip
unzip scapy-latest.zip -d scapy
cd pyrit_svn/pyrit
python setup.py build
sudo python setup.py install
cd ../cpyrit_cuda
sed -i -e "s:/NVIDIA_INC_DIRS \= \[\]:NVIDIA_INC_DIRS \= \['/opt/nvidia/cuda/include'\]:" setup.py
python setup.py build
sudo python setup.py install
cd ../../scapy/*/
sudo python setup.py install
cd ~
echo "FOR DISTERIBUTED PROCESSING:"
echo "Open TCP port 17935 on all machines"
echo "On the master server, add the IP addresses of the slaves in .pyrit/config"
echo "Set rpc_server = true on all machines"
echo ""
echo "Start the slaves with pryit serve"
echo "Run pryit benchmark on the master server to see if it all works"
end 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment