Skip to content

Commit 2b15df7

Browse files
committed
Rename custom service to reversing python
1 parent 40cd934 commit 2b15df7

File tree

12 files changed

+17
-17
lines changed

12 files changed

+17
-17
lines changed

dev-advice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
[problem.md](https://github.com/picoCTF/start-problem-dev/blob/master/example-problems/sanity-static-flag/problem.md?plain=1#L24)
5555
- When writing custom Dockerfiles, reference base images by SHA to avoid drift
5656
- See this
57-
[Dockerfile](https://github.com/picoCTF/start-problem-dev/blob/master/example-problems/custom-service/Dockerfile#L1)
57+
[Dockerfile](https://github.com/picoCTF/start-problem-dev/blob/master/example-problems/reversing-python/Dockerfile#L1)
5858

5959
## Challenge Accessibility
6060

example-problems/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ problem development with.
1616
1. [Web CSS](/example-problems/web-css/)
1717
- Demonstrates hosting a simple nginx-based web problem. Also introduces
1818
configuring the container with a Python script.
19-
1. [Custom Service](/example-problems/custom-service/)
19+
1. [Reversing Python](/example-problems/reversing-python/)
2020
- Presents a vulnerable program through a port using socat. Also goes over
2121
some tips on debugging your Dockerfile.
2222
1. [Custom SSH (Multi-stage Dockerfile)](/example-problems/custom-ssh/)

example-problems/custom-ssh/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
1. You have `cmgr` installed and configured.
66
- Refer to the [setup page](/setup-cmgr) if this is not the case for you.
77

8-
2. You have done the [Custom Service Problem Creation
9-
Walkthrough](/example-problems/custom-service/). The Custom Service
8+
2. You have done the [Reversing Python Problem Creation
9+
Walkthrough](/example-problems/reversing-python/). The Reversing Python
1010
walkthrough is a more basic example of using a custom Dockerfile for cmgr
1111
problem development. The file changes presented here will be as compared to
12-
Custom Service.
12+
Reversing Python.
1313

1414
## Overview
1515

@@ -62,7 +62,7 @@ be separate containers, not just secure permissions.
6262
container. "builder" is actually a special name to cmgr, it's the container
6363
that it always expects to find `/challenge/metadata.json` and
6464
`/challenge/artifacts.tar.gz` if applicable. The rest of "builder" is
65-
similar to Custom Service. "sshHost" isn't too different either, but notice
65+
similar to Reversing Python. "sshHost" isn't too different either, but notice
6666
the COPY instructions that grab files from "builder", such as line 40. This
6767
is a critical ability to connect your containers and your other containers
6868
are likely to need to know things from the "builder" container. We copy all

example-problems/custom-service/README.md renamed to example-problems/reversing-python/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Custom Service Problem Creation Walkthrough
1+
# Reversing Python Problem Creation Walkthrough
22

33
## Pre-requisites
44

@@ -37,23 +37,23 @@ This problem is adapted from the live picoGym problem, `Picker-I`.
3737
### File Listing
3838

3939
1. Besides problem details, the most important change in
40-
[problem.md](/example-problems/custom-service/problem.md) is changing Type
40+
[problem.md](/example-problems/reversing-python/problem.md) is changing Type
4141
to "custom".
4242

43-
1. [picker-I.py](/example-problems/custom-service/picker-I.py) this is the
43+
1. [picker-I.py](/example-problems/reversing-python/picker-I.py) this is the
4444
vulnerable script that we will be hosting as a service on this container.
4545

46-
1. [start.sh](/example-problems/custom-service/start.sh) starts a listener that
46+
1. [start.sh](/example-problems/reversing-python/start.sh) starts a listener that
4747
receives connections. This script is ran as the last step in the
4848
Dockerfile. For this problem, we use socat to connect the output of our
4949
vulnerable script to a port, allowing users to interact with our script
5050
through the network.
5151

52-
1. [setup-challenge.py](/example-problems/custom-service/setup-challenge.py)
52+
1. [setup-challenge.py](/example-problems/reversing-python/setup-challenge.py)
5353
This script generates the flag for the problem and saves it in the important
5454
file, `/challenge/metadata.json`, which is required for every cmgr problem.
5555

56-
1. [Dockerfile](/example-problems/custom-service/Dockerfile) this is the main
56+
1. [Dockerfile](/example-problems/reversing-python/Dockerfile) this is the main
5757
setup for our problem. We pull down a pinned Ubuntu image, update it and
5858
install the required packages. We create the `/challenge` directory with
5959
specific permissions so only root can access it. `/challenge` is an
@@ -74,13 +74,13 @@ process goes a long way in being able to determine what is going wrong.
7474

7575
1. Clone this repo
7676
2. Go to the custom-ssh directory
77-
- `cd start-problem-dev/example-problems/custom-service/`
77+
- `cd start-problem-dev/example-problems/reversing-python/`
7878
3. Switch Dockerfiles. `Dockerfile.test` has 1 discrepancy in it.
7979
- `mv Dockerfile Dockerfile.good`
8080
- `mv Dockerfile.test Dockerfile`
8181
4. Build the problem with cmgr
8282
- `cmgr update`
83-
- `cmgr playtest picoctf/custom-service`
83+
- `cmgr playtest picoctf/examples/reversing-python`
8484
- Expected output:
8585

8686
```terminal

example-problems/custom-service/problem.md renamed to example-problems/reversing-python/problem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Custom-Service
1+
# Reversing Python
22

33
- Namespace: picoctf/examples
4-
- ID: custom-service
4+
- ID: reversing-python
55
- Type: custom
66
- Category: Reverse Engineering
77
- Points: 100

example-problems/web-css/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ nginx as a base image. This allowed us to use custom HTML and CSS very simply in
7171
order to hide the flag in one of these files. We used Python to configure this
7272
container which leads to a cleaner implementation.
7373

74-
[Next problem](/example-problems/custom-service)
74+
[Next problem](/example-problems/reversing-python)
7575
[Return to the index](/example-problems#example-problems)

0 commit comments

Comments
 (0)