Coder Social home page Coder Social logo

beholder_scanner's Introduction

beholder

beholder是一款简洁而小巧的系统,主要作用是通过监控端口变化来发现企业内部的信息孤岛。例如:运维或开发新部署了一台机器未通知安全。没有采用masscan+nmap的组合进行检测,原因是在实际的使用中发现,虽然masscan可以提高扫描速度,但是漏报的情况太严重了。最终还是只使用nmap来进行探测。

系统由 beholder_scannerbeholder_web 两个部分组成。这两个部分可以部署在一台机器上,也可以分开部署在不同的机器上。当前项目为 beholder_scanner部分beholder_web部分可以查看这里

  • beholder_scanner:对IP进行端口扫描、比较端口变化,可部署多个beholder_scanner来组成集群加快扫描速度。
  • beholder_web:提供前端界面展示。

支持平台

  • Linux
  • Windows

安装指南

Python 2.7 Mongodb 3.x Redis 3.x

Demo版部署

如果只是测试和尝鲜可以部署Demo版:

优点是部署简单,缺点是不利于扩展和管理。


常规部署

依赖:项目运行依赖于mongodb和redis,所以需准备好mongodb和redis,mongodb和redis安装请参考:


常规部署步骤如下:

1. 添加mongodb认证

在 mongodb 服务器上新建 db 用户,这里新建了一个用户名为scan密码为123456的用户。

# mongo
> use admin
> db.createUser({user:'scan',pwd:'123456', roles:[{role:'readWriteAnyDatabase', db:'admin'}]})
> exit

2. 导入数据库

把beholder_scanner项目下的db文件夹导入 mongodb在 mongodb 服务器上执行如下命令:

# git clone https://github.com/zj1244/beholder_scanner.git
# cd beholder_scanner/db/
# mongorestore -u scan -p 123456 --authenticationDatabase admin -d portscan .

3. 选择

接下来你有两个选择:

选择一:

源码部署请参考:

如准备好了mongodb和redis,只需要部署scanner和web即可。

选择二:

分布式部署请参考:

建议准备至少两台机器,把mongodb和redis安装在一台机器上,另一台机器安装web端和scanner端。

beholder_scanner's People

Contributors

zj1244 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.