Разлика между версии на „Инсталиране на Dionaea и DionaeaFR“
от БАРЗИКТ Wiki
(→Изтегляне на dionaea) |
|||
Ред 14: | Ред 14: | ||
</pre> | </pre> | ||
− | ==Изтегляне на | + | ==Изтегляне на Dionaea== |
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap; word-wrap: break-word"> | <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap; word-wrap: break-word"> | ||
cd /opt/ | cd /opt/ |
Версия от 17:19, 19 май 2016
Процедурата е описана за Ubuntu Server 16.04
Инсталиране на Dionaea
Обновяване на Ubuntu
sudo apt-get update sudo apt-get upgrade
Инсталиране на библиотеки и инструменти
sudo apt-get install libudns-dev libglib2.0-dev libssl-dev libcurl4-openssl-dev libreadline-dev libsqlite3-dev python-dev libtool automake autoconf build-essential subversion git-core flex bison pkg-config libnl-3-dev libnl-genl-3-dev libnl-nf-3-dev libnl-route-3-dev sqlite3 cvs python-pip python3 python3-dev python3-yaml check cython3 libemu-dev libev-dev libloudmouth1-dev libnetfilter-queue-dev libpcap-dev
Изтегляне на Dionaea
cd /opt/ sudo git clone https://github.com/DinoTools/dionaea.git
Компилиране на Dionaea
cd /opt/dionaea sudo autoreconf -vi sudo ./configure --prefix=/opt/dionaea --with-python=/usr/bin/python3 --with-cython-dir=/usr/bin --with-ev-include=/opt/dionaea/include --with-ev-lib=/opt/dionaea/lib --with-emu-lib=/opt/dionaea/lib/ --with-emu-include=/opt/dionaea/include/ --with-nl-include=/opt/dionaea/include --with-nl-lib=/opt/dionaea/lib/ sudo make sudo make install
Копиране на конфигурационния файл
sudo cp /opt/dionaea/etc/dionaea/dionaea.cfg /opt/dionaea/etc/dionaea/dionaea.conf
Стартиране на Dionaea
sudo ./opt/dionaea/bin/dionaea
Инсталиране на DionaeaFR
Инсталиране на библиотеки и инструменти
sudo apt-get install python-pip python-netaddr python-dev git unzip </pre>
Инсталиране на DionaeaFR
sudo pip install Django==1.8 sudo pip install pygeoip sudo pip install django-pagination sudo pip install django-filter==0.11.0 sudo pip install django-tables2 sudo pip install django-compressor sudo pip install django-htmlmin sudo pip install django-appconf sudo pip install htmlmin sudo pip install netaddr 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 cd /opt/ sudo git clone https://github.com/bro/pysubnettree.git cd pysubnettree/ sudo python setup.py install cd /opt/ sudo wget http://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz sudo tar xzvf node-v0.12.0.tar.gz cd node-v0.12.0 sudo ./configure sudo make sudo make install sudo npm install -g less sudo npm install -g promise cd /opt/ sudo wget https://github.com/RootingPuntoEs/DionaeaFR/archive/master.zip -O DionaeaFR.zip sudo unzip DionaeaFR.zip sudo mv DionaeaFR-master/ DionaeaFR 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 sudo cp /opt/DionaeaFR/DionaeaFR/settings.py.dist /opt/DionaeaFR/DionaeaFR/settings.py
Редактиране на файл manage.php
Изтриват се редовете след from.django.import до execute_from_command_line: