Files
VulnRange/start.sh
wintrysec 173dbc4ab5 🎉VulnRange
2020-09-21 23:19:59 +08:00

7 lines
440 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export RANGES_HOME=~/VulnRange/Ranges/ #设置靶机题库家目录,临时的只在这一个bash中有用
echo 1 > /proc/sys/net/ipv4/ip_forward && source /proc/sys/net/ipv4/ip_forward #开启IP转发否则无法访问题目容器的端口
export FLASK_APP=flaskr #设置运行环境
export FLASK_ENV=development #开启debug模式有错误可以调试一下
flask run --host=0.0.0.0 #运行项目绑定0.0.0.0可外网访问