Code Monkey home page Code Monkey logo

kenuoseclab / linbing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from taomujian/linbing

0.0 0.0 0.0 105.88 MB

本系统是对目标进行漏洞扫描的一个系统,前端采用vue技术,后端采用flask.核心原理是扫描主机的开放端口情况,然后根据端口情况逐个去进行poc检测,poc有110多个,包含绝大部分的中间件漏洞,本系统的poc皆来源于网络或在此基础上进行修改,在centons7环境下使用nginx和uwsgi部署,部署起来可能有点麻烦,烦请多点耐心

Python 78.22% CSS 0.42% HTML 0.57% JavaScript 5.77% Vue 13.54% Shell 0.06% Less 1.40%

linbing's Introduction

临兵漏洞扫描系统

本系统是对目标进行漏洞扫描的一个系统,前端采用vue技术,后端采用flask.核心原理是扫描主机的开放端口情况,然后根据端口情况逐个去进行poc检测,poc有110多个,包含绝大部分的中间件漏洞,本系统的poc皆来源于网络或在此基础上进行修改,在centons7环境下使用nginx和uwsgi部署,部署起来可能有点麻烦,烦请多点耐心,在腾讯云centos7上测试成功

安装python3依赖库

pip3 install -r requirements.txt

打包vue源代码(进入到vue_src目录下)

npm run build(有打包好的,即vue文件夹,可直接使用,自行打包需要安装node和vue,参考https://www.runoob.com/nodejs/nodejs-install-setup.html, https://www.runoob.com/vue2/vue-install.html)

部署

nmap

安装nmap

yum install -y nmap

masscan

安装masscan

yum install -y masscan

nginx

安装nginx

yum install -y nginx

启动nginx

systemctl start nginx

开机自启动nginx

systemctl enable nginx

添加nginx用户

useradd -s /sbin/nologin -M nginx

配置

配置文件已配置好,可以直接使用,可以根据自己的需求修改文件路径及端口. 在/etc/nginx/conf.d目录下放入flask.conf和vue.conf文件 在/etc/nginx目录下放入nginx.conf文件 conf配置文件中有注释 把vue目录移到/usr/share/nginx/html中

mariadb

安装mariadb

yum install -y mariadb-server

启动mariadb

systemctl start mariadb

设置mariadb开机自启动

systemctl enable mariadb

进行数据库配置(如设置密码等)

mysql_secure_installation(具体步骤略去,可参考https://www.cnblogs.com/yhongji/p/9783065.html) 配置数据库密码后需要在flask/app文件夹下的mysql文件中配置连接maridab数据库的用户名,密码等信息

邮件

我使用的是QQ邮箱发送的邮件,需要授权码,需要自行到flask/app/sendmail.py文件中去设置,参考https://blog.csdn.net/Momorrine/article/details/79881251

uwsgi

安装uwsgi

yum install -y postgresql-devel(debian系安装libpq-dev)

yum install -y python3-devel(debian系安装python3-dev)

yum install -y uwsgi

yum install uwsgi-plugin-python3(安装的这个包的版本要和python的版本保持一致)

配置uwsgi

把uwsgi.ini文件放到flask文件夹的根目录下(我的flask文件夹路径是/root/flask,如果各位不是这个路径,需要到uwsgi.ini文件和flask.conf中修改文件的路径)

启动uwsgi

进入到/root/flask/目录下,uwsgi --ini uwsgi.ini(uwsgi文件的路径)

docker部署

配置

首先下载项目到本地(https://github.com/taomujian/linbing.git),然后配置flask/app/sendmail.py中发送邮件所用的账号和授权码,然后修改flask/app/mysql.py的mysql数据库账号密码,这个账号密码要和dockerfile中的设置的账号密码保持一致

编译镜像(进入项目根目录)

docker build -t linbing .

启动容器(进入项目根目录)

docker run -it -d -p 11000:11000 linbing

访问

访问http://yourip:11000/login即可

致谢

感谢vulhub项目提供的靶机环境:https://github.com/vulhub/vulhub,还有https://hub.docker.com/r/2d8ru/struts2

POC也参考了很多项目:https://github.com/Xyntax/POC-Thttps://github.com/ysrc/xunfenghttps://github.com/se55i0n/DBScannerhttps://github.com/vulscanteam/vulscan

感谢师傅pan带我入门安全,也感谢呆橘同学在vue上对我的指导

免责声明

工具仅用于安全研究以及内部自查,禁止使用工具发起非法攻击,造成的后果使用者负责

linbing's People

Contributors

kenuoseclab avatar taomujian 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.