Repository contains code to run google xss-game (https://xss-game.appspot.com/) in local environment.
To run different part of this repository, I created a total of 4 different branches. The following are the branch names
- xss-game-initial -> this folder contains code to run Google xss game locally
- xss-game-patched -> this folder contains code to run Google xss game but vulnerabilities are patched in it
- xss-game-csp-2.0 -> this folder contains code to run Google xss game with added defense using CSP 2.0
- xss-game-csp-3.0 -> this folder contains code to run Google xss game with added defense using CSP 3.0
To start the web server you need to follow instructions as described below:
- Clone the repository by running
git clone [email protected]:pratik1998/xss-game.git
- Open your terminal and move to the xss-game-initial directory or directory of choosing.
- Run
python3 -m venv venv
,source venv/bin/activate
andpip install -r requirements.txt
commands. - Start web server by running
flask --app app run
. - Visit the http://localhost:5000 in web browser
- To move between different levels try to manually change the suffix of the URL to your level. For example, if you want to visit level1 then go to http://localhost:5000/level1 URL in the web browser.