美文网首页
ubuntu16.04虚拟机搭建MHN蜜网

ubuntu16.04虚拟机搭建MHN蜜网

作者: AI_Engine | 来源:发表于2018-03-16 12:13 被阅读264次

https://github.com/threatstream/mhn#running

如果是一台全新的系统,建议首先安装git:sudo apt-get install git -y ,安装git之后原本是可以直接安装MHN的,但是鄙人安装时会提示pip版本过低,所以建议在安装MHN之前检查pip的版本,如果需要可以对pip进行更新:pip install --upgrade pip。接下来进行MHN的安装:

$ cd /opt/

$ sudo git clonehttps://github.com/threatstream/mhn.git

$ cd mhn/

$ sudo ./install.sh

安装过程中的一些配置:

Doyou wishtoruninDebugmode?: y/n n 

Superuser email: aaabbbccc@xxx.com 

Superuserpassword:

Superuserpassword: (again): 

Serverbaseurl[“http://1.2.3.4″]:http://192.168.13.148 

Honeymapurl[http://1.2.3.4:3000]:http://192.168.13.148:3000 

Mailserveraddress [“localhost”]: 

Mailserverport [25]: 

UseTLSforemail?: y/n y 

UseSSLforemail?: y/n y 

Mailserverusername [“”]: 

Mailserverpassword[“”]: 

Maildefaultsender [“”]: 

Pathforlogfile[“mhn.log”]:

安装完毕后,测试一哈:

user@precise64:/opt/mhn/scripts$ sudo /etc/init.d/nginx status

* nginx is running

user@precise64:/opt/mhn/scripts$ sudo /etc/init.d/supervisor status

is running

user@precise64:/opt/mhn/scripts$ sudo supervisorctl status

geoloc    RUNNING pid 31443, uptime 0:00:12

honeymap FATAL    pid 30826, uptime 0:08:54 (我被墙了)

hpfeeds-broker RUNNING pid 10089, uptime 0:36:42

mhn-celery-beat RUNNING pid 29909, uptime 0:18:41

mhn-celery-worker RUNNING pid 29910, uptime 0:18:41

mhn-collector RUNNING pid 7872, uptime 0:18:41

mhn-uwsgi RUNNING pid 29911, uptime 0:18:41

mnemosyne RUNNING pid 28173, uptime 0:30:08

如果报出mhn-celery-worker FATAL Exited too quickly (process log may have details)错误,解决办法如下 :sudo chown www-data /var/log/mhn/mhn.log   sudo supervisorctl start mhn-celery-worker

以上配置完成后就可以通过输入server的url进入MHN的webapp了。

相关文章

网友评论

      本文标题:ubuntu16.04虚拟机搭建MHN蜜网

      本文链接:https://www.haomeiwen.com/subject/livlqftx.html