Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Latest commit

 

History

History
63 lines (35 loc) · 2 KB

WindowsInstall.md

File metadata and controls

63 lines (35 loc) · 2 KB

Windows

To deploy Tiny-CTF-Platform on a Windows platform (Recommend using Windows 7 or later; or Server 2008 or later), follow these instructions:

Make sure you have the latest updates/service pack:

Use Windows Update to accomplish this

Download the .zip file of this repository Here

Unzip it to the location of your choice. C:\TinyCtf will be used for these instructions.

Download Python 2.7.10 Here

When you launch the installer, make sure to install all components and keep the default location! As shown here:

As shown here

If you changed the install location, you will need it for this next part

After Python is done installing, open command prompt as an Administrator.

Then execute these commands:

Add python to PATH

setx path "%path%;C:\Python27;"         (Change C:\Python27 to your installation path if you did not use the default)

Close command prompt

Download This file and run it.

Wait for it to finish the install. (The command prompt window will close automatically when it is finished)

Re-open command prompt as an Administrator.

Run these commands:

Move into the directory

cd C:\TinyCtf           (or whatever your directory was)

Install Flask, dataset, and simplejson

easy_install Flask
easy_install flask-seasurf
easy_install dataset
easy_install simplejson

Import the tasks (Must do after every task-change)

python task_import.py
(If you want to clear all old tasks, then import the tasks from tasks.json, run:
    python task_import.py purge

Start the server

python server.py

After you run this command, it should ask you to allow access

Note: Flask should run on top of a proper web server if you plan to have many players.