Installasi Dionaea

sudo su
apt-get install update
apt-get install upgrade

aptitude 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 python2.6-pysqlite2 sqlite3 libsqlite3-0 libxslt1-dev libxml2-dev

cd /opt/

mkdir /opt/dionaea

mkdir /home/’your user’/Downloads

cd /home/’your user’/Downloads

git clone git://git.carnivore.it/liblcfg.git liblcfg
cd liblcfg/code
autoreconf -vi
./configure –prefix=/opt/dionaea
make install
cd ..
cd ..

git clone git://git.carnivore.it/libemu.git libemu
cd libemu
autoreconf -vi
./configure –prefix=/opt/dionaea
make install
cd ..
git clone git://git.kernel.org/pub/scm/libs/netlink/libnl.git
cd libnl
autoreconf -vi
export LDFLAGS=-Wl,-rpath,/opt/dionaea/lib
./configure –prefix=/opt/dionaea
make
make install
cd ..

wget http://dist.schmorp.de/libev/libev-4.04.tar.gz
tar xfz libev-4.04.tar.gz
cd libev-4.04
./configure –prefix=/opt/dionaea
make install
cd ..

wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz
tar xfz sqlite-autoconf-3070701.tar.gz
cd sqlite-autoconf-3070701
./configure
make
make install
cd ..

apt-get install sqlite3

wget http://python.org/ftp/python/3.2/Python-3.2.tgz
tar xfz Python-3.2.tgz
cd Python-3.2/
./configure –enable-shared –prefix=/opt/dionaea –with-computed-gotos –enable-ipv6 LDFLAGS=”-Wl,-rpath=/opt/dionaea/lib/”
make
make install
cd ..
git clone https://github.com/cython/cython.git
cd cython
/opt/dionaea/bin/python3 setup.py install
cd ..

git clone https://github.com/lxml/lxml.git lxml
cd lxml
/opt/dionaea/bin/2to3 -w src/lxml/html/_diffcommand.py
/opt/dionaea/bin/2to3 -w src/lxml/html/_html5builder.py
/opt/dionaea/bin/python3.2 setup.py build
/opt/dionaea/bin/python3.2 setup.py install
cd ..

wget http://www.corpit.ru/mjt/udns/old/udns_0.0.9.tar.gz
tar xfz udns_0.0.9.tar.gz
cd udns-0.0.9/
./configure
make shared

cp udns.h /opt/dionaea/include/

cp *.so* /opt/dionaea/lib/
cd /opt/dionaea/lib
ln -s libudns.so.0 libudns.so
cd –
cd ..

wget http://c-ares.haxx.se/download/c-ares-1.7.5.tar.gz
tar xfz c-ares-1.7.5.tar.gz
cd c-ares-1.7.5
./configure –prefix=/opt/dionaea
make
make install
cd ..

wget http://curl.haxx.se/download/curl-7.20.0.tar.bz2
tar xfj curl-7.20.0.tar.bz2
rm curl-7.20.0.tar.bz2
cd curl-7.20.0
./configure –prefix=/opt/dionaea
make
make install
cd ..

wget http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz
tar xfz libpcap-1.1.1.tar.gz
cd libpcap-1.1.1
./configure –prefix=/opt/dionaea
make
make install
cd ..

cd usr/local/src
git clone git://git.carnivore.it/dionaea.git dionaea
cd dionaea
autoreconf -vi
./configure –with-lcfg-include=/opt/dionaea/include/ \
–with-lcfg-lib=/opt/dionaea/lib/ \
–with-python=/opt/dionaea/bin/python3.2 \
–with-cython-dir=/opt/dionaea/bin \
–with-udns-include=/opt/dionaea/include/ \
–with-udns-lib=/opt/dionaea/lib/ \
–with-emu-include=/opt/dionaea/include/ \
–with-emu-lib=/opt/dionaea/lib/ \
–with-gc-include=/usr/include/gc \
–with-ev-include=/opt/dionaea/include \
–with-ev-lib=/opt/dionaea/lib \
–with-nl-include=/opt/dionaea/include \
–with-nl-lib=/opt/dionaea/lib/ \
–with-curl-config=/opt/dionaea/bin/ \
–with-pcap-include=/opt/dionaea/include \
–with-pcap-lib=/opt/dionaea/lib/
make
make install

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s