Updated challenges showing off dojo features

This commit is contained in:
Connor Nelson
2023-02-01 12:20:34 -07:00
parent abc2ab7c7d
commit f553033b3b
29 changed files with 172 additions and 15 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/opt/pwn.college/python
import pathlib
dir = pathlib.Path(__file__).parent
planets = (dir / "planets.txt").read_text().strip().splitlines()
for planet in planets:
planet_path = dir / planet.lower()
planet_path.write_text(planet)
+14
View File
@@ -0,0 +1,14 @@
# world
## earth
This challenge is named `earth`, and is located within module `world`.
When users start this challenge, their environment will have:
- `/flag`
- `/challenge/earth`
- `/challenge/planets.txt`
- `/chalenge/.init`
Symbolic links which are relative to the dojo root-directory are supported.
When a challenge starts, and before users have access to their environment, `.init` will automatically be run as the root user.
+4
View File
@@ -0,0 +1,4 @@
#!/opt/pwn.college/python
with open("/flag") as f:
print(f.read())
+1
View File
@@ -0,0 +1 @@
../planets.txt