Ubuntu搭建巡风扫描系统

admin 2024年3月21日13:37:05评论31 views字数 2770阅读9分14秒阅读模式

1 前言

巡风是一款适用于企业内网的漏洞快速应急、巡航扫描系统。其主体分为网络资产识别引擎与漏洞检测引擎两个部分通过强大的搜索功能,可以查看企业内部网络资产的基本信息和布局情况。同时,巡风扫描系统允许用户灵活指定各类漏洞检测插件对已发现的网络资产进行深度扫描,从而在短时间内完成全面漏洞排查,并最终生成详尽、专业的检测报告。

2 搭建过程

(1)更新源

以Ubuntu系统下安装巡风为例,在源文件中配置

vi /etc/apt/source.list

添加内容如下:

deb http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiversedeb http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiversedeb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse

更新apt-get

sudo apt-get update &&sudo apt-get upgrade&& sudo apt-get dist-upgrade

(2)安装依赖环境

在ubuntu中安装相应的依赖环境:

sudo apt-get update && sudo apt-get install gcc libssl-dev libffi-dev python-dev libpcap-dev

安装python,这里的python据说要求2.7以上的版本:

su  rootwget https://sec.ly.com/mirror/get-pip.py --no-check-certificate && python get-pip.py

安装完成后更新pip

pip install -U pip

(3)下载安装包    

可以在线下载:

sudo git clone https://github.com/ysrc/xunfeng

也可以在网页上直接下载,然后解压到指定的目录下:

https://github.com/ysrc/xunfeng

Ubuntu搭建巡风扫描系统

使用pip安装python依赖库,我这里是已经安装好的:

cd xunfengpip install -r requirements.txt -i https://pypi.doubanio.com/simple/

Ubuntu搭建巡风扫描系统

(4)安装mongo数据库

据说mongo要安装3.2及以上的

安装公钥:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927

添加mongodb-3.2的源:

echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.listsudo apt-get update

安装mongo数据库:

sudo apt-get install -y mongodb

配置mongodb服务:

vi /etc/systemd/system/mongodb.service

添加如下内容:

[Unit]Description=High-performance, schema-free document-oriented databaseAfter=network.targetDocumentation=https://docs.mongodb.org/manual[Service]User=mongodbGroup=mongodbExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf[Install]WantedBy=multi-user.target

(5)启动mondodb服务

使用命令启动mongodb服务:

sudo systemctl start mongodb

查看mongodb运行状态

sudo systemctl status mongodb

Ubuntu搭建巡风扫描系统

配置mongodb,这里的密码修改为自己的密码:

  mongo> use xunfeng> db.createUser({user:'scan',pwd:'密码',roles:[{role:'dbOwner',db:'xunfeng'}]})> exit

导入数据库,这里的ip可以是服务器的ip,也可以是127.0.0.1:

cd xunfeng/dbmongorestore -h x.x.x.x --port 27017 -d xunfeng .

修改配置文件

cd ../vi config.py

Ubuntu搭建巡风扫描系统

(6)启动巡风服务

修改run.sh配置文件:

vi run.sh

具体修改内容如下:

Ubuntu搭建巡风扫描系统

启动服务:

sh run.sh

Ubuntu搭建巡风扫描系统

这里会打印一些错误信息,没关系

(7)访问主页面

在浏览器地址栏中输入ip地址:

例如:http://192.168.2.23:80    

Ubuntu搭建巡风扫描系统

输入默认的账户名:admin,密码xunfeng321,即可进入主界面

Ubuntu搭建巡风扫描系统

到这里巡风扫描器就已经安装完成了

欢迎关注「技术分享交流」公众号 ,如果有建议或者疑问的话,欢迎大家评论留言,如果喜欢公众号文章的话可以点【在看】,您的鼓励就是我的动力哈!!!

原文始发于微信公众号(技术分享交流):Ubuntu搭建巡风扫描系统

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2024年3月21日13:37:05
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Ubuntu搭建巡风扫描系统https://cn-sec.com/archives/2591730.html

发表评论

匿名网友 填写信息