Updated challenges showing off dojo features
This commit is contained in:
@@ -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)
|
||||
@@ -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.
|
||||
@@ -0,0 +1,4 @@
|
||||
#!/opt/pwn.college/python
|
||||
|
||||
with open("/flag") as f:
|
||||
print(f.read())
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
../planets.txt
|
||||
Reference in New Issue
Block a user