Updated challenges showing off dojo features
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# hello
|
||||
## banana
|
||||
|
||||
This challenge is named `banana`, and is located within module `hello`.
|
||||
|
||||
When users start this challenge, their environment will have:
|
||||
- `/flag`
|
||||
- `/challenge/banana`
|
||||
- `/chalenge/.config`
|
||||
|
||||
Within a challenge's definition, directories which begin with `_` are statically instanced.
|
||||
Users will randomly, but deterministically, be assigned one instance of the challenge.
|
||||
Every time they start the challenge, they will be assigned the same static instance.
|
||||
This allows different users to receive different versions of the same challenge.
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1 @@
|
||||
2
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/opt/pwn.college/python
|
||||
|
||||
import pathlib
|
||||
|
||||
config = (pathlib.Path(__file__).parent / ".config").read_text().strip()
|
||||
|
||||
print(f"Instance: {config}")
|
||||
|
||||
with open("/flag") as f:
|
||||
print(f.read())
|
||||
Reference in New Issue
Block a user