niwamo/linuxCTF
Last updated
Photo Credits: Unsplash
Introduction
A simple, containerized Linux CTF intended to assess a student's familiarity with basic Linux commands, tools, and services.
The CTF questions (and a narrative write-up) are available here.
Using the project
Building and Exporting the container
Build-from-PowerShell
git clone https://github.com/niwamo/linuxCTF; cd linuxCTF
$image = "tfc/linux-ctf:1.0"
docker build -t $image .
docker save -o linuxCTF.tar $image
Importing and Running the container
Run-from-PowerShell
docker load --input linuxCTF.tar
docker run --rm --privileged -td --volume /sys/fs/cgroup:/sys/fs/cgroup:ro tfc/linux-ctf:1.0
docker exec -it -u tfc (docker ps | select -First 2 | select -Last 1).split(' ')[0] /bin/bash
Source Code
You can find the source code here.