Skip to content

commonsmith/moodylamectf

 
 

Repository files navigation

lamectf

A very simple CTF scoring engine

Live Demo

Using this Scoring Engine

What You Need

  • A Linux cloud server machine
  • Some questions and answers for students

Purpose

To easily create CTF-style gamified learning contests. This system is designed to be simple and easy to set up. It is probably not very secure--if you hack it, please let me know!

Task 1: Making a Web Server

Installing Apache and PHP

You need Apache and PHP.
On Ubuntu 18.04, these commands work:

sudo apt update
sudo apt install apache2 php libapache2-mod-php -y

Testing Apache

Open your server's IP address in a Web browser. You should see the default Apache page, as shown below.

Testing PHP

Execute this comman to make a simple PHP test file: echo "<?php phpinfo() ?>" | sudo tee /var/www/html/test.php

Open your server's IP address followed by "/test.php" in a Web browser. You should see a PHP info page, as shown below.

Task 2: Installing the CTF Engine

In a Terminal, execute these commands:

sudo apt install git -y
cd /var/www/html
sudo git clone https://github.com/sambowne/lamectf.git
sudo bash lamectf/setup.sh

Open your server's IP address in a Web browser. You should see the demonstration CTF.

Customize the answers.php file to use it.

About

A very simple CTF scoring engine specifically adjusted for Moodle and teachers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors