-
Notifications
You must be signed in to change notification settings - Fork 29
/
bootstrap.sh
64 lines (64 loc) · 1.9 KB
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
echo "[*] Starting installation of Malzoo & Co. (requirements)..."
sleep 2
cd $HOME
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq vim build-essential python-dev libtool bison autoconf python-magic tmux ssdeep git unzip zip python-pip python-bottle python-requests libldap-dev libsasl2-dev libldap2-dev libssl-dev
#Mongo
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -yq mongodb-org
export LC_ALL=C
sudo service mongod start
sleep 2
#YARA
wget https://github.com/VirusTotal/yara/archive/v3.5.0.tar.gz
tar -zxf v3.5.0.tar.gz
cd yara-3.5.0
./bootstrap.sh
./configure
make
sudo make install
sudo echo "/usr/local/lib" >> /etc/ld.so.conf
sudo ldconfig
cd $HOME
sleep 2
#SSDeep
wget http://sourceforge.net/projects/ssdeep/files/ssdeep-2.13/ssdeep-2.13.tar.gz/download
mv download ssdeep.tar.gz
tar -xf ssdeep.tar.gz
cd ssdeep-*
./configure
make
sudo make install
cd $HOME
sleep 2
#Pydeep
wget https://github.com/kbandla/pydeep/archive/master.zip
unzip master.zip
cd pydeep-master
python setup.py build
sudo python setup.py install
cd $HOME
sleep 2
#malzoo
git clone https://github.com/nheijmans/malzoo.git
cd malzoo
python2 -m virtualenv .env
source .env/bin/activate
pip install -r requirements.txt -U
deactivate
cp config/malzoo.conf.dist config/malzoo.conf
mkdir attachments storage uploads logs
cd $HOME
rm -r master.zip pydeep-master ssdeep-2.13 ssdeep.tar.gz v3.5.0.tar.gz yara-3.5.0
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
sleep 2
#malzoo community modules
#cd malzoo/malzoo/modules/
#git clone https://github.com/nheijmans/malzoo-community.git
#cd $HOME
#sleep 2
echo "[+] Done installing!"