-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
49 lines (39 loc) · 1.87 KB
/
install.sh
File metadata and controls
49 lines (39 loc) · 1.87 KB
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
#!/bin/bash
if ! [[ $EUID == 0 ]]; then
echo "[*] This script must be run as root" 1>&2
exit 1
fi
echo -e "[*] Installing required software. Please press [ENTER] to continue";
read continue
#Install required software
if [ ! -f $HOME/.mobilesandbox.txt ]; then
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list
apt-get update
apt-get install adb python neo4j python-pip virtualbox postgresql python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg-dev tcpdump libcap2-bin automake autoconf libtool python-psycopg2 libpq-dev apache2 apache2-utils libexpat1 ssl-cert libapache2-mod-wsgi -y
#setting for tcpdump to run as root
setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
systemctl enable postgresql && systemctl start postgresql
systemctl enable neo4j && systemctl start neo4j
touch $HOME/.mobilesandbox.txt
else
echo -e "[*] This script was already executed and all required applications should be installed.
If you want to re-run the installation please delete the .mobilesandbox.txt in your root folder"
fi
echo -e "Please enter the full path to your requirements.txt (eg. /home/MS/requirements.txt) and press [ENTER]";
read requirements
if ! [ $requirements == "" ]; then
pip install -r $requirements
BUILD_LIB=1 pip install ssdeep
wget http://chilkatdownload.com/9.5.0.65/chilkat-9.5.0-python-2.7-x86_64-linux.tar.gz
tar -xvzf chilkat-9.5.0-python-2.7-x86_64-linux.tar.gz
cd chilkat-9.5.0-python-2.7-x86_64-linux && python installChilkat.py
rm -rf chilkat-9.5.0-python-2.7-x86_64-linux*
else
echo -e "[*] You did not provide the requirements file!\n exit installation routine";
exit 1
fi
echo -e "\n\n"
echo -e "[*] Installation is finished!"
echo -e "[*] You can now start to configure cuckoo, postgresql and mobilesanbox."
exit 1