This repository was archived by the owner on Dec 30, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·78 lines (69 loc) · 1.77 KB
/
install.sh
File metadata and controls
executable file
·78 lines (69 loc) · 1.77 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo " [!]This script must be run as root" 1>&2
exit 1
fi
IFS='/' read -a array <<< pwd
if [[ "$(pwd)" != *setup ]]
then
cd ./setup
fi
version=$( lsb_release -r | grep -oP "[0-9]+" | head -1 )
if lsb_release -d | grep -q "Fedora"; then
Release=Fedora
dnf install -y python-devel m2crypto python-m2ext swig python-iptools python3-iptools
pip install zlib_wrapper
pip install pycrypto
pip install iptools
pip install pydispatcher
pip install macholib
pip install flask
pip install pyinstaller
elif lsb_release -d | grep -q "Kali"; then
Release=Kali
apt-get install python-dev
apt-get install python-m2crypto
apt-get install swig
apt-get install python-pip
pip install zlib_wrapper
pip install pycrypto
pip install iptools
pip install pydispatcher
pip install macholib
pip install flask
pip install pyinstaller
elif lsb_release -d | grep -q "Ubuntu"; then
Release=Ubuntu
apt-get install python-pip python-dev build-essential
pip install --upgrade pip
apt-get install python-m2crypto
apt-get install swig
pip install zlib_wrapper
pip install pycrypto
pip install iptools
pip install pydispatcher
pip install macholib
pip install flask
pip install pyinstaller
else
echo "Unknown distro - Debian/Ubuntu Fallback"
apt-get install python-pip python-dev build-essential
pip install --upgrade pip
apt-get install python-m2crypto
apt-get install swig
pip install zlib_wrapper
pip install pycrypto
pip install iptools
pip install pydispatcher
pip install macholib
pip install flask
pip install pyOpenSSL
fi
# set up the database schema
./setup_database.py
# generate a cert
./cert.sh
# Support non-root instalation of DB
chown $(logname):$(logname) ../data/empyre.db
cd ..
echo -e '\n [*] Setup complete!\n'