example challenges
This commit is contained in:
@@ -0,0 +1 @@
|
||||
This directory is a "category" of challenges. It can hold multiple levels (with multiple variants per level) along with global files.
|
||||
@@ -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.
|
||||
@@ -0,0 +1 @@
|
||||
The files from the level directory are copied into /challenge, set up to be owned by root, and made SUID-executable.
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/opt/pwn.college/python
|
||||
|
||||
print(open("/flag").read())
|
||||
@@ -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!
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/opt/pwn.college/python
|
||||
|
||||
print(open("/flag").read())
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp /flag /tmp/here_it_is
|
||||
chmod 644 /tmp/here_it_is
|
||||
@@ -0,0 +1 @@
|
||||
This level has a `.init` file that is run by root when the challenge is started!
|
||||
Reference in New Issue
Block a user