This is a simple CTF platform built using PHP. It contains basic features like, adding categories, challenges, leaderboard etc. This is far from perfect, any contributions on improving code quality and features are welcomed.
Clone the repository to your local machine. Hit big green button on the top right to download the project as zip. Extract the contents.
If you are using windows, u need to install XAMPP You can use the same for linux too, else you gotta setup a lamp server in your linux system.
- Copy/Move the extracted files into
c:/xampp/htdocs/anton
and gotolocalhost/anton
to check the site live. - Goto
localhost/phpmyadmin
, sign in and navigate to import tab. - Click on upload .sql file and browse for the
anton.sql
file in the project's root directory. - This will setup all the databases and table with sample contents for the project.
If you are using XAMMP on linux, you can follow the same steps above except the htdocs folder will residing in /opt/lampp/htdocs
either you can copy the extracted project files there or you can create a sym link to the project folder.
eg:
$ sudo ln -s PATH_OF_YOR_EXTRACTED_FOLDER /opt/lampp/htdocs
Sign up as a normal user into the platform. Goto phpmyadmin
and change the role of the user to admin.
If you are using mysql shell, execute the following query.
> use anton
> update users set role="admin" where email="YOUR-USER_EMAIL";