-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdfr.sh
More file actions
79 lines (64 loc) · 2.49 KB
/
dfr.sh
File metadata and controls
79 lines (64 loc) · 2.49 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
79
#!/bin/sh
RED='\033[0;31m'
NC='\033[0m'
echo -e "${RED}Updating your System${NC}"
sudo apt-get update && sudo apt-get dist-upgrade -y
echo -e "${RED}Installing PIP${NC}"
sudo apt-get install build-essential -y
echo -e "${RED}Installing Python Dev${NC}"
sudo apt-get install python-dev -y
echo -e "${RED}Installing git${NC}"
sudo apt-get install git -y
echo -e "${RED}Installing PIP${NC}"
sudo apt-get install python-pip -y
echo -e "${RED}Installing PIP${NC}"
sudo apt-get install python-netaddr -y
echo -e "${RED}Installing Django and his freinds${NC}"
sudo pip install Django==1.6.5
sudo pip install pygeoip
sudo pip install django-pagination
sudo pip install django-tables2==1.0
sudo pip install django-compressor==1.4
sudo pip install django-htmlmin
sudo pip install django-filter==0.7
sudo pip install six==1.5.2
echo -e "${RED}Cloning Django-Tables2-simplerfilter${NC}"
cd /opt/
sudo wget https://github.com/benjiec/django-tables2-simplefilter/archive/master.zip -O django-tables2-simplefilter.zip
sudo unzip django-tables2-simplefilter.zip
sudo mv django-tables2-simplefilter-master/ django-tables2-simplefilter/
cd django-tables2-simplefilter
sudo python setup.py install
echo -e "${RED}Cloning SubnetTree${NC}"
cd /opt/
sudo git clone git://git.bro-ids.org/pysubnettree.git
cd pysubnettree
sudo python setup.py install
echo -e "${RED}Downloading and Installing NodeJS${NC}"
cd /opt/
sudo wget http://nodejs.org/dist/v4.7.1/node-v4.7.1.tar.gz
sudo tar xzvf node-v4.7.1.tar.gz;
cd node-v4.7.1
sudo ./configure
sudo make
sudo make install
echo -e "${RED}Installing promise and less${NC}"
sudo npm install -g promise
sudo npm install -g less
echo -e "${RED}Downloading and Installing DionaeaFR${NC}"
cd /opt/
sudo wget https://github.com/rubenespadas/DionaeaFR/archive/master.zip -O DionaeaFR.zip
sudo unzip DionaeaFR.zip
sudo mv DionaeaFR-master/ DionaeaFR
echo -e "${RED}Downloading and Installing Geo stuff${NC}"
cd /opt/
sudo wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
sudo wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
sudo gunzip GeoLiteCity.dat.gz
sudo gunzip GeoIP.dat.gz
sudo mv GeoIP.dat DionaeaFR/DionaeaFR/static
sudo mv GeoLiteCity.dat DionaeaFR/DionaeaFR/static
echo -e "${RED}Moving and editing Settings...${NC}"
sudo cp /opt/DionaeaFR/DionaeaFR/settings.py.dist /opt/DionaeaFR/DionaeaFR/settings.py
cd /opt/DionaeaFR/DionaeaFR
echo -e "${RED}Now just edit the file: /opt/DionaeaFR/DionaeaFR/settings.py and change sqlite DB location...${NC}"