example challenges

This commit is contained in:
Yan
2022-12-04 01:13:12 -07:00
parent 5d7b08f0c0
commit ec0bc04b66
8 changed files with 15 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
This directory is a "category" of challenges. It can hold multiple levels (with multiple variants per level) along with global files.
+1
View File
@@ -0,0 +1 @@
All files from the "_global" directory are also copied into /challenge and made SUID-executable. This can help with common resources for all levels in a module.
+1
View File
@@ -0,0 +1 @@
The files from the level directory are copied into /challenge, set up to be owned by root, and made SUID-executable.
+3
View File
@@ -0,0 +1,3 @@
#!/opt/pwn.college/python
print(open("/flag").read())
+1
View File
@@ -0,0 +1 @@
You can have several variants of a level that will be randomly assigned to users. Just give each variant its own directory!
+3
View File
@@ -0,0 +1,3 @@
#!/opt/pwn.college/python
print(open("/flag").read())
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
cp /flag /tmp/here_it_is
chmod 644 /tmp/here_it_is
+1
View File
@@ -0,0 +1 @@
This level has a `.init` file that is run by root when the challenge is started!