From 799f91b2292e292ab6a8fce3bf916501c7c1bbd5 Mon Sep 17 00:00:00 2001 From: Jeroen Willemsen Date: Fri, 15 Dec 2023 09:01:48 +0100 Subject: [PATCH] Fix Webtop again --- Dockerfile_webdesktop | 2 +- Dockerfile_webdesktopk8s | 2 +- wrongsecret-desktop-resources/startwm.sh | 4 ++-- wrongsecret-desktop-resources/welcome.md | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile_webdesktop b/Dockerfile_webdesktop index 06b55b1bc..e39e6f109 100644 --- a/Dockerfile_webdesktop +++ b/Dockerfile_webdesktop @@ -1,4 +1,4 @@ -FROM lscr.io/linuxserver/webtop:4.16-r0-ls72 +FROM lscr.io/linuxserver/webtop:4.16-r0-ls95 LABEL NAME="OWASP WrongSecrets Web Desktop" MAINTAINER="Jeroen Willemsen" RUN \ diff --git a/Dockerfile_webdesktopk8s b/Dockerfile_webdesktopk8s index 5c7cbec9a..56572afcb 100644 --- a/Dockerfile_webdesktopk8s +++ b/Dockerfile_webdesktopk8s @@ -1,4 +1,4 @@ -FROM lscr.io/linuxserver/webtop:4.16-r0-ls72 +FROM lscr.io/linuxserver/webtop:4.16-r0-ls95 LABEL NAME="OWASP WrongSecrets Web Desktop" MAINTAINER="Jeroen Willemsen" RUN \ diff --git a/wrongsecret-desktop-resources/startwm.sh b/wrongsecret-desktop-resources/startwm.sh index 9002cf1e4..0e1e941a8 100755 --- a/wrongsecret-desktop-resources/startwm.sh +++ b/wrongsecret-desktop-resources/startwm.sh @@ -1,7 +1,7 @@ #!/bin/bash /startpulse.sh & -cp -r /var/tmp/wrongsecrets /config/Desktop/wrongsecrets -cp -r /var/tmp/wrongsecrets/welcome.md /config/Desktop +ln -s -r /var/tmp/wrongsecrets /config/Desktop/wrongsecrets +ln -s /var/tmp/wrongsecrets/welcome.md /config/Desktop/welcome.md sudo chown abc /config/.config/pulse /usr/bin/startxfce4 > /dev/null 2>&1 diff --git a/wrongsecret-desktop-resources/welcome.md b/wrongsecret-desktop-resources/welcome.md index 0c8937a0a..ee5fa9ea8 100644 --- a/wrongsecret-desktop-resources/welcome.md +++ b/wrongsecret-desktop-resources/welcome.md @@ -45,6 +45,9 @@ Where the SERVICE_HOST IP might be different. You can find the right IP with the kubectl -n kube-system get pod -l component=kube-apiserver -o=jsonpath="{.items[0].metadata.annotations.kubeadm\.kubernetes\.io/kube-apiserver\.advertise-address\.endpoint}" ``` +### Need to save your work? + +Feel free to write files to your Desktop: that's where we created a small volume where you can write to. ### When you are in a CTF