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
39391 . 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
75751 . Clone this repo
76762 . Go to the custom-ssh directory
77- - ` cd start-problem-dev/example-problems/custom-service / `
77+ - ` cd start-problem-dev/example-problems/reversing-python / `
78783 . Switch Dockerfiles. ` Dockerfile.test ` has 1 discrepancy in it.
7979 - ` mv Dockerfile Dockerfile.good `
8080 - ` mv Dockerfile.test Dockerfile `
81814 . 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
0 commit comments