# Guia de instalação do cuckoo sandbox
# https://cuckoo.sh/docs/installation/host/installation.html

sudo apt-get install g++ python-dev python-dpkt python-jinja2 python-magic python-pymongo python-gridfs python-libvirt python-bottle python-pefile python-chardet python-pip

sudo apt-get install libxml2-dev libxslt1-dev volatility libjpeg-dev
sudo apt-get install python libffi-dev libssl-dev

sudo apt-get install python-virtualenv python-setuptools
sudo apt-get install zlib1g-dev swig
sudo apt-get install mongodb
sudo apt-get install postgresql libpq-dev
sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
sudo apt-get install apparmor-utils
sudo apt-get install libfuzzy-dev

sudo apt-get install tcpdump # If not installed
# Allow tcpdump to read raw TCP data without root:
sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump

sudo pip install XenAPI
sudo pip install sqlalchemy yara
sudo pip install cybox==2.0.1.4
sudo pip install maec==4.0.1.0
sudo pip install python-dateutil
sudo pip install yara-python==3.5.0
sudo pip install pydeep
# Install the libraries that volatility wants:
sudo pip install distorm3

virtualenv venv
. venv/bin/activate

pip install -U pip setuptools
pip install -U cuckoo