Giter Club home page Giter Club logo

vulnrange's Introduction

VulnRange的定位是一个漏洞靶场,用于快速的启动漏洞环境,便于漏洞复现和研究

使用VulnRange可以快速的部署含有未修复漏洞的Shiro和S2等第三方组件的测试环境,方便复现漏洞。

安装部署🚀

注意事项

  1. 项目需要放到 ~/ 当前用户目录下
  2. ubuntu 需要将start.sh中的~/改为绝对路径,如/home/ubuntu
  3. 关闭Linux防火墙后请重启docker
  4. python使用python3.8以上版本
  5. 不建议部署在VPS上,小心被人GetShell

环境配置

以Centos为例

1、Centos安装python3.8和PIP

#安装python3.8
yum -y install yum-utils
yum-builddep python
curl -O https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xf Python-3.8.0.tgz
cd Python-3.8.0
./configure
make
make install

#设置python3.8为默认版本
vi /etc/profile.d/python.sh         #编辑用户自定义配置,输入alias参数
alias python='/usr/local/bin/python3.8'  #这里写你的python路径
source /etc/profile.d/python.sh     #重启会话使配置生效

#安装pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simple/

2、安装docker和docker-compose [把docker源换掉,推荐阿里云的源]

#安装docker
yum install -y yum-utils	# yum-config-manager需要用这个包
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo	#安装docker官方源
yum makecache
yum -y install docker-ce
systemctl start docker

#安装docker-compose
pip install docker-compose -i https://pypi.mirrors.ustc.edu.cn/simple/

更换阿里源:阿里云帮助手册,用淘宝账号登陆后获取一个独有的加速地址

3、关闭防火墙和SELinux

firewall-cmd --state				#查看防火墙状态
systemctl stop firewall.service		#停止防火墙
systemctl disable firewall.service	#禁止开机启动

vim /etc/selinux/config/  
#修改为以下内容
SELINUX=disabled

#然后最好重启一下系统

下载安装VulnRange

git clone https://github.com/wgpsec/VulnRange.git
cd VulnRange
pip install -e . -i https://pypi.tuna.tsinghua.edu.cn/simple/	#安装项目
pip install Flask	#自动安装完启动项目Flask报错后,更新pip安装Flask

功能介绍:memo:

启动

#进入项目根目录下启动项目即可
cd ~/VulnRange
sh start.sh

Web安全基础靶场

集合了常见的Web安全漏洞,多数是直接拉取开源的靶场环境,比如DVWA、sqli-labs、upload-labs

组件靶场分类

以组件名称分类展示各个中间件和CMS的靶场环境

开启靶机

点击 "启动靶机环境" 即可开启相关靶机。

等的时间过长的话可以切换到系统中看看环境构建进度

靶机环境构建完成后,点击链接即可访问

vulnrange's People

Contributors

wintrysec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vulnrange's Issues

ubuntu下无法运行

感觉文档有点粗略,python需要用到的模块都没有安装,导致搭建后各种报错
image
image

如何添加靶机

请问一下如何可以快速的添加靶机呢,我看后台可以添加,但是没有可以添加docker镜像命令的地方

这个怎么弄?

NoAppException: While importing "flaskr", an ImportError was raised:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 240, in locate_app
import(module_name)
File "/root/VulnRange/flaskr/init.py", line 4, in
from .import db
ImportError: cannot import name db

Traceback (most recent call last)
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 343, in call
rv = self._load_unlocked()
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 330, in _load_unlocked
self._app = rv = self.loader()
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 388, in load_app
app = locate_app(self, import_name, name)
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 247, in locate_app
"\n\n{tb}".format(name=module_name, tb=traceback.format_exc())
NoAppException: While importing "flaskr", an ImportError was raised:

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 240, in locate_app
import(module_name)
File "/root/VulnRange/flaskr/init.py", line 4, in
from .import db
ImportError: cannot import name db
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.
To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

dump() shows all variables in the frame
dump(obj) dumps all that's known about the object

靶机地址显示的是内网的地址

应该可以搭建在腾讯云上吧?
启功靶机环境后,显示的是内网的地址,但是访问外网ip对应端口是可以使用的。
请问应该要怎么修改

如何搭建网络靶场

靶场内容很好,但是从零开始如何搭建一个网络靶场有什么好的教程或学习资料吗?

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.