Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.06 KB

File metadata and controls

54 lines (42 loc) · 1.06 KB

Installation

Prerequisites

Python 3.7

7zip

Make sure 7zip and python are added to your PATH

Installation

Download or clone the Secure Coding app
Open cmd and go to the project directory
Install virtualenv and create a virtual environment

pip install virtualenv
virtualenv venv

Activate the virtual environment

venv\Scripts\activate

install requirements

pip install -r requirements.txt 

Create application db:

flask db upgrade 

Run the application

flask run

A web server should running. Browse to it in your browser.

Usage

You can register a user. Then you can use upload check (vulnerable to command injection), and view check status (vulnerable to reflected and stored XSS, via check_id and message respectively)

Clean Linux prep

To install on a blank linux (debian or ubuntu) instance, do the following before:

# In the repository folder:
sudo apt-get update
sudo apt-get install python3-pip
pip3 install -r requirements.txt
python3 -m flask db upgrade
sudo python3 -m flask run -h 0.0.0.0 -p 80