Add demo module, with desktop auto launch demo

This commit is contained in:
Connor Nelson
2025-03-20 10:35:08 -07:00
parent adb60f18df
commit 57f2e662d1
4 changed files with 25 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
This module demonstrates some more interesting ideas.
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
PATH="/run/dojo/bin:$PATH"
USER="hacker"
xfce_env() {
local session_pid
session_pid=$(pgrep -u "$USER" xfce4-session | head -n1)
xargs -0 -a /proc/"$session_pid"/environ
}
xfce_run() {
setsid su "$USER" -c "env - $(xfce_env) $*"
}
# Consider using `--geometry` to set the window size and position
# Consider using `--fullscreen` to launch the application in fullscreen mode
xfce_run exo-open --launch TerminalEmulator
+4
View File
@@ -0,0 +1,4 @@
name: Demo
challenges:
- id: desktop-auto-launch
name: Desktop Auto Launch
+1
View File
@@ -7,3 +7,4 @@ image: pwncollege/challenge-simple
modules:
- id: hello
- id: world
- id: demo