How To Install dionaea on CentOS 8
Introduction
In this tutorial we learn how to install dionaea
on CentOS 8.
What is dionaea
Dionaea honeypot is meant to be a nepenthes successor, embedding python as scripting language, using libemu to detect shell-codes, supporting ipv6 and TLS.
We can use yum
or dnf
to install dionaea
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dionaea.
Install dionaea on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install dionaea
using dnf
by running the following command:
sudo dnf -y install dionaea
Install dionaea on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install dionaea
using yum
by running the following command:
sudo yum -y install dionaea
How To Uninstall dionaea on CentOS 8
To uninstall only the dionaea
package we can use the following command:
sudo dnf remove dionaea
dionaea Package Contents on CentOS 8
/etc/dionaea
/etc/dionaea/dionaea.cfg
/etc/dionaea/ihandlers-available
/etc/dionaea/ihandlers-available/cmdshell.yaml
/etc/dionaea/ihandlers-available/emu_scripts.yaml
/etc/dionaea/ihandlers-available/emuprofile.yaml
/etc/dionaea/ihandlers-available/fail2ban.yaml
/etc/dionaea/ihandlers-available/ftp.yaml
/etc/dionaea/ihandlers-available/hpfeeds.yaml
/etc/dionaea/ihandlers-available/log_db_sql.yaml
/etc/dionaea/ihandlers-available/log_incident.yaml
/etc/dionaea/ihandlers-available/log_json.yaml
/etc/dionaea/ihandlers-available/log_sqlite.yaml
/etc/dionaea/ihandlers-available/nfq.yaml
/etc/dionaea/ihandlers-available/p0f.yaml
/etc/dionaea/ihandlers-available/store.yaml
/etc/dionaea/ihandlers-available/submit_http.yaml
/etc/dionaea/ihandlers-available/submit_http_post.yaml
/etc/dionaea/ihandlers-available/tftp_download.yaml
/etc/dionaea/ihandlers-available/virustotal.yaml
/etc/dionaea/ihandlers-enabled
/etc/dionaea/ihandlers-enabled/cmdshell.yaml
/etc/dionaea/ihandlers-enabled/emuprofile.yaml
/etc/dionaea/ihandlers-enabled/ftp.yaml
/etc/dionaea/ihandlers-enabled/log_sqlite.yaml
/etc/dionaea/ihandlers-enabled/store.yaml
/etc/dionaea/ihandlers-enabled/tftp_download.yaml
/etc/dionaea/services-available
/etc/dionaea/services-available/blackhole.yaml
/etc/dionaea/services-available/epmap.yaml
/etc/dionaea/services-available/ftp.yaml
/etc/dionaea/services-available/http.yaml
/etc/dionaea/services-available/memcache.yaml
/etc/dionaea/services-available/mirror.yaml
/etc/dionaea/services-available/mongo.yaml
/etc/dionaea/services-available/mqtt.yaml
/etc/dionaea/services-available/mssql.yaml
/etc/dionaea/services-available/mysql.yaml
/etc/dionaea/services-available/pptp.yaml
/etc/dionaea/services-available/sip.yaml
/etc/dionaea/services-available/smb.yaml
/etc/dionaea/services-available/tftp.yaml
/etc/dionaea/services-available/upnp.yaml
/etc/dionaea/services-enabled
/etc/dionaea/services-enabled/blackhole.yaml
/etc/dionaea/services-enabled/epmap.yaml
/etc/dionaea/services-enabled/ftp.yaml
/etc/dionaea/services-enabled/http.yaml
/etc/dionaea/services-enabled/memcache.yaml
/etc/dionaea/services-enabled/mirror.yaml
/etc/dionaea/services-enabled/mongo.yaml
/etc/dionaea/services-enabled/mqtt.yaml
/etc/dionaea/services-enabled/mssql.yaml
/etc/dionaea/services-enabled/mysql.yaml
/etc/dionaea/services-enabled/pptp.yaml
/etc/dionaea/services-enabled/sip.yaml
/etc/dionaea/services-enabled/smb.yaml
/etc/dionaea/services-enabled/tftp.yaml
/etc/dionaea/services-enabled/upnp.yaml
/etc/logrotate.d/dionaea
/etc/sysconfig/dionaea
/usr/bin/gnuplotsql
/usr/bin/readlogsqltree
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/a6fd0233ba204607fcbea1e1a055bfbe871fd4
/usr/lib/.build-id/24
/usr/lib/.build-id/24/3ba5230b7f4de24bd1af924dddc0566bc7676f
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/125f16eba414545be8325fd1193d8bbdfd8a33
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/6d86883def0d35b3d4e936609ed8d7707fb93c
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/f6fb49b775a312902668353c3b2940add174f1
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/2970c9aae0cc79690a560f6a03ab4473e945e3
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/f838c9506584da7e30e6d3a53f468a2f0b5d28
/usr/lib/systemd/system/dionaea.service
/usr/lib64/dionaea
/usr/lib64/dionaea/curl.so
/usr/lib64/dionaea/emu.so
/usr/lib64/dionaea/nc.so
/usr/lib64/dionaea/nfq.so
/usr/lib64/dionaea/nl.so
/usr/lib64/dionaea/pcap.so
/usr/sbin/dionaea
/usr/share/doc/dionaea
/usr/share/doc/dionaea/README.md
/usr/share/licenses/dionaea
/usr/share/licenses/dionaea/LICENSE
/usr/share/man/man1/dionaea.1.gz
/var/lib/dionaea
/var/lib/dionaea/binaries
/var/lib/dionaea/bistreams
/var/lib/dionaea/dionaea.sqlite
/var/lib/dionaea/dionaea_incident.sqlite
/var/lib/dionaea/roots
/var/lib/dionaea/roots/ftp
/var/lib/dionaea/roots/tftp
/var/lib/dionaea/roots/upnp
/var/lib/dionaea/roots/www
/var/lib/dionaea/share
/var/lib/dionaea/share/python
/var/lib/dionaea/share/python/http
/var/lib/dionaea/share/python/http/template
/var/lib/dionaea/share/python/http/template/nginx
/var/lib/dionaea/share/python/http/template/nginx/autoindex.html.j2
/var/lib/dionaea/share/python/http/template/nginx/error.html.j2
/var/lib/dionaea/sipaccounts.sqlite
/var/log/dionaea
References
Summary
In this tutorial we learn how to install dionaea
on CentOS 8 using yum and dnf.