Honeyd 安装教程
Honeyd
官网版下载安装教程
Honeyd官网下载:https://www.honeyd.org/releases/
- 安装必要环境
sudo apt-get install libevent-dev libdumbnet-dev libpcap-dev libpcre3-dev libedit-dev bison flex libtool automake g++ gcc make cmake git python-dev
- libevernt安装
下载地址:https://libevent.org/ ,下载 1.4.15 版本,非此版本基本都会报错
./configure -prefix=/usr/lib/libevent
make
sudo make install
- libdnet安装
下载地址:https://libdnet.sourceforge.net/ ,下载 1.11 版本
./configure
make
sudo make install
- zlib 安装
下载 1.3 应该就行
./configure
make
sudo make install
- arpd 安装
不安装arpd也行,我们需要一个可以代理 arp 的程序
./configure
make
sudo make install
可能问题解决:https://blog.csdn.net/weixin_30770783/article/details/95773730
因为 honeyd 不支持arp协议,所以我们需要一个专门的程序模拟arp协议,上面 arpd 可以完成这个任务,但是arpd会和ubuntu自带的冲突,所以可以使用下面这个开源程序
git clone https://github.com/quinot/choparp.git
#编译得到chopar可执行文件
gcc -o choparp choparp.c -lpcap
安装 Honeyd
# 如果出现以下两个错误 需要进行库链接
# Error: Couldn't figure out how to access libc
# 需要先定位libc.so.6 的位置,然后建立软链接
sudo ln -s /lib64/libc.so.6 /usr/lib/libc.so
# Error:error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
sudo ln -s /usr/local/lib/libdnet.1 /usr/lib/libdnet.1
./configure
make
sudo make install
使用 Honeyd
启动honeyd程序
sudo honeyd -d -f /etc/honeypot/honeyd.conf
在之前编译choparp的目录下启动arp代理程序。
sudo ./choparp eth0 00:0c:29:08:56:f6 192.168.32.100
上述指令表示在eth0接口上监听目的IP为192.168.32.100的ARP请求,并为回复ARP响应,MAC地址为00:0c:29:08:56:f6。
实际在测试时,honeyd和choparp都运行在虚拟机里面,eth0是虚拟机的NAT接口,地址为192.168.32.131。我们想在eth0接口上再模拟一个IP地址为192.168.32.100的Cisco路由器。
GitHub版本安装指南
以下教程在1804上测试有效,官方版本的安装需要按照readme完成:
一定不要自己编译安装 libevent,需要使用apt安装:
sudo apt-get install libevent-dev libdumbnet-dev libpcap-dev libpcre3-dev libedit-dev bison flex libtool automake
需要安装上面的zlib、arpd,然后再安装 honeyd

0 评论