Skip to content

Commit

Permalink
Setup guide
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNewJavaman committed Apr 30, 2024
1 parent 97e2a69 commit 9958092
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ MISSING WRITEUPS:
- Evil Model (ammonia)
- rock paper scissors (mdy)
- token_of_appreciation (honululu)
- rustyneurone (anton00b)
- linear_labyrinth (0xk4l1)

# Website
Expand Down
45 changes: 45 additions & 0 deletions docs/setup/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
title: Setup
---

## Configure CTFd

**Note**: Most challenges were written using Dockerfiles, which are unsupported on Option 1 (self-hosted CTFd). Use Option 2 (paid CTFd) if you need access to all the challenges.

### Option 1: Docker

Install docker and docker-compose:

- [https://docs.docker.com/engine/install](https://docs.docker.com/engine/install)
- [https://docs.docker.com/compose/install](https://docs.docker.com/compose/install)

Download and start CTFd:

```shell
git clone https://github.com/CTFd/CTFd
pushd CTFd
docker compose up
popd
```

Configure the instance at [http://localhost:8000](http://localhost:8000):

- Set the instance name and team configurations however you'd like
- Don't create any challenges
- Create an access token in the admin settings

### Option 2: Paid CTFd

Use the website to configure your instance: [https://ctfd.io/pricing/](https://ctfd.io/pricing/)

## Deploy iCTF challenges

```sh
pipx install ctfcli
mkdir ictf23-instance
pushd ictf23-instance
ctf init
git submodule add https://github.com/shellphish/ictf23-challenges-public
./ictf23-challenges-public/deploy.sh
popd
```
5 changes: 0 additions & 5 deletions docs/setup/installation.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/writeups/ai-mystical-castle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For additional help, see:
- [https://en.wikipedia.org/wiki/Planning_Domain_Definition_Language](https://en.wikipedia.org/wiki/Planning_Domain_Definition_Language)
- [https://planning.wiki/guide/whatis/pddl](https://planning.wiki/guide/whatis/pddl)

We have the domain file ([castle_domain.pddl](castle_domain.pddl)) and the problem, although parts of the PDDL description are transformed into poem ([castle_problem_poem.pddl](castle_problem_poem.pddl)). One can use ChatGPT to transform it back ([castle_problem.pddl](castle_problem_gpt.pddl)).
We have the domain file ([castle_domain.pddl](castle_domain.pddl)) and the problem, although parts of the PDDL description are transformed into poem ([castle_problem_poem.pddl](castle_problem_poem.pddl)). One can use ChatGPT to transform it back ([castle_problem.pddl](castle_problem.pddl)).

You can then use a planner to solve the problem under the domain, and escape the castle:

Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarCards/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const cardData = [
{
title: 'Setup',
subLabel: 'Run iCTF locally',
permalink: '/ictf-docs/setup/installation'
permalink: '/ictf-docs/setup'
},
{
title: 'Writeups',
Expand Down

0 comments on commit 9958092

Please sign in to comment.