CentOS6.7 Building Honeypot Dionaea

Source: Internet
Author: User
Tags install openssl install django

Yum-y install epel-release wget tar git autoconf* libtool-*

Mkdir/opt/dionaea

1. Install the LIBLCFG software.
git clone https://github.com/ThomasAdam/liblcfg.git liblcfg
CD liblcfg/code/
Autoreconf-vi
echo $?
* Note: If an error does not copy ltmain.sh here. Execute cp/usr/share/libtool/config/ltmain.sh./and then autoreconf-vi OK.
./configure--prefix=/opt/dionaea
echo $?
Make install
echo $?

2. Install the LIBEMU software.
Cd/root
git clone https://github.com/buffer/libemu.git Libemu
CD libemu/
Autoreconf-vi
echo $?
* Note: If an error does not copy ltmain.sh here. Execute cp/usr/share/libtool/config/ltmain.sh./and then autoreconf-vi OK.
./configure--prefix=/opt/dionaea
echo $?
Make install
echo $?

3. Install the Libev software.
Cd/root
wget http://dist.schmorp.de/libev/Attic/libev-4.04.tar.gz
Tar XF libev-4.04.tar.gz
CD libev-4.04
./configure--prefix=/opt/dionaea
echo $?
Make install
echo $?


4. Install the Python software.
Cd/root
Yum-y Groupinstall "Development tools"
Yum-y Install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
wget http://www.python.org/ftp/python/3.2.2/Python-3.2.2.tgz
Tar XF python-3.2.2.tgz
CD Python-3.2.2
./configure--enable-shared--prefix=/opt/dionaea--with-computed-gotos--enable-ipv6 LDFLAGS= "-Wl,-rpath=/opt/ dionaea/lib/-l/usr/lib/x86_64-linux-gnu/"
echo $?
Make
echo $?
Make install
echo $?

5. Install the Cython software.
Cd/root
wget http://cython.org/release/Cython-0.15.tar.gz
Tar Xfz cython-0.15.tar.gz
wget http://pkgs.fedoraproject.org/repo/pkgs/Cython/Cython-0.15.tar.gz/md5/794b93c4c1c4cc031f90302cacd834ca/ Cython-0.15.tar.gz
Tar XF cython-0.15.tar.gz
CD Cython-0.15
/opt/dionaea/bin/python3 setup.py Install
echo $?

6. Install the Udns software.
Cd/root
wget http://pkgs.fedoraproject.org/repo/pkgs/udns/udns_0.0.9.tar.gz/md5/78843added6f6b690bc6019ab8ef03c9/udns_0.0.9.tar.gz
TAR-XF udns_0.0.9.tar.gz
CD udns-0.0.9/
./configure
echo $?
Make shared
echo $?
CP Udns.h/opt/dionaea/include
CP *.so*/opt/dionaea/lib/
cd/opt/dionaea/lib/
Ln-s libudns.so.0 libudns.so

7. Install the LIBPCAP software.
Cd/root
wget http://www.tcpdump.org/release/libpcap-1.1.1.tar.gz
Tar XF libpcap-1.1.1.tar.gz
CD libpcap-1.1.1
./configure--prefix=/opt/dionaea
echo $?
Make
echo $?
Make install
echo $?

8. Install the Curl software (it is recommended to use Yum installation).
① source Installation Curl.
Cd/root
git clone Https://github.com/bagder/curl.git Curl
Autoreconf-vi
Yum-y Install Openssl-devel
Yum-y Install Libssh2-devel
./configure--prefix=/opt/dionaea
Yum-y Install *gssapi*
Make
Make install
②yum installation.
Yum-y Install Curl Curl-devel

9. Install the Dionaea software.
Cd/root
git clone https://github.com/rep/dionaea.git Dionaea
CD dionaea/
Autoreconf-vi
echo $?

./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-curl-config=/usr/bin/--with-pcap-include=/opt/dionaea/include--with-pcap-lib=/opt/dionaea/lib/
Echo $?
The above./configure error, similar to the following: no better than to read document.
Workaround:
yum-y install libgnomeui-devel
yum-y install *netlink-devel
yum-y install Libnl*-devel
Yum-y in Stall openscap-devel
Yum-y install loudmouth-devel

Here to re-execute the./configure command, use echo $? To view the configuration through.
mv/usr/include/netlink/netlink.h/root/
* Note: If the MV operation is not performed here, make will error.
Make
echo $?
Make install
echo $?
mv/root/netlink.h/usr/include/netlink/

11. Start the Dionaea software.
Groupadd Dionaea
Useradd-g dionaea-s/usr/sbin/nologin Dionaea
Chown-r dionaea:dionaea/opt/dionaea/
Cd/opt/dionaea/bin
./dionaea-c/opt/dionaea/etc/dionaea/dionaea.conf-u dionaea-g Dionaea &
Netstat-antple|grep Dionae


* Installation python2.7.6
Cd/root
wget HTTP://WWW.PYTHON.ORG/FTP/PYTHON/2.7.6/PYTHON-2.7.6.TAR.XZ
Tar XF python-2.7.6.tar.xz
CD Python-2.7.6
./configure--with-threads--enable-shared--prefix=/usr/local
echo $?
Make
echo $?
Make Altinstall
echo $?
Ln-s/usr/local/lib/libpython2.7.so.1.0/lib64/


* Install Setuptools and PIP software.
Cd/root
wget--no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
Tar XF setuptools-1.4.2.tar.gz
CD setuptools-1.4.2
python2.7 setup.py Install

Cd/root
wget--no-check-certificate https://github.com/pypa/pip/archive/8.1.2.tar.gz
Tar XF 8.1.2.tar.gz
CD PIP-8.1.2/
python2.7 setup.py Install


* Install Django Software.
Cd/root
pip2.7 Install Django Pygeoip django-pagination django-tables2 django-compressor django-htmlmin django-filter
git clone https://github.com/benjiec/django-tables2-simplefilter.git Django-tables2-simplefilter
CD Django-tables2-simplefilter
python2.7 setup.py Install


* Install NETADDR software.
Cd/root
wget https://pypi.python.org/packages/b6/59/0310603662573a10e96537a2e329152599fa8b204f42d3de4599b7212e31/ Netaddr-0.7.11.tar.gz
Tar xzvf netaddr-0.7.11.tar.gz
CD netaddr-0.7.11
python2.7 setup.py Install

* Installation Pysubnettree
Cd/root
git clone git://git.bro-ids.org/pysubnettree.git
CD pysubnettree/
python2.7 setup.py Install


* Install Nodejs software.
Cd/root
wget http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz
Tar XF node-v0.8.16.tar.gz
CD node-v0.8.16
./configure
echo $?
Make
echo $?
Make install
echo $?
NPM Install-g Less
cd/opt/
wget Https://github.com/RootingPuntoEs/DionaeaFR/archive/master.zip-O Dionaeafr.zip
Unzip Dionaeafr.zip
MV Dionaeafr-master/dionaeafr

CentOS6.7 Building Honeypot Dionaea

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.