Fix Storry Level 5

This commit is contained in:
Tim
2026-01-08 23:32:57 +01:00
parent fae6ae68a5
commit d4411d45a4
6 changed files with 11 additions and 12 deletions

View File

@@ -63,8 +63,8 @@ COPY Level/Level4/ /home/level4/
RUN chown level4:level4 /home/level4/ && chmod -R 777 /home/level4/
# Level5
COPY Level/Level5/systemd-hdtob.py /usr/local/bin/systemd-hdtob.py
RUN chmod +x /usr/local/bin/systemd-hdtob.py
COPY Level/Level5/Microsoft.py /usr/local/bin/Microsoft.py
RUN chmod +x /usr/local/bin/Microsoft.py
COPY Level/Level5/watchdog.py /root/watchdog.py
RUN chmod 700 /root/watchdog.py

View File

@@ -2,7 +2,7 @@
if [ ! -f /home/level5/.timer/started ]; then
touch /home/level5/.timer/started
nohup python3 /usr/local/bin/systemd-hdtob.py >/tmp/timer.log 2>&1 &
nohup python3 /usr/local/bin/Microsoft.py >/tmp/timer.log 2>&1 &
fi
tty > /home/level5/.timer/current_tty 2>/dev/null || echo "/dev/pts/0" > /home/level5/.timer/current_tty

View File

@@ -4,7 +4,7 @@ USER=$(whoami)
if [ "$USER" = "level5" ]; then
if [ ! -f /home/level5/.timer/started ]; then
touch /home/level5/.timer/started
nohup python3 /usr/local/bin/systemd-hdtob.py >/tmp/timer.log 2>&1 &
nohup python3 /usr/local/bin/Microsoft.py >/tmp/timer.log 2>&1 &
fi
fi
exit 0

View File

@@ -4,7 +4,7 @@ import os
import glob
import shutil
SCRIPT_NAME = "/usr/local/bin/systemd-hdtob.py"
SCRIPT_NAME = "/usr/local/bin/Microsoft.py"
STATE_FILE = "/home/level5/.timer/timer_state.txt"
END_STATE = "/home/level5/.timer/end_state.txt"

View File

@@ -13,15 +13,14 @@ type_text() {
printf "\n"
}
type_text "$(echo -e "\e[3;37mNein… du hast es wirklich geschafft.\e[0m")" 0.05
type_text "$(echo -e "\e[3mAber glaub ja nicht, dass ich es dir nun einfacher mache.\e[0m")" 0.03
type_text "$(echo -e "\e[3;37m Du Stehst nun der Bande “Microsoft” gegenüber.\e[0m")" 0.05
type_text "$(echo -e "\e[3m Du hast 10 min Zeit sie zu besiegen und im Besten falle zu Töten.\e[0m")" 0.03
type_text "$(echo -e "\033[3mWer oder was glaubst du eigentlich, hier zu sein?\033[0m\n")" 0.03
type_text "$(echo -e "\033[3m Die Gruppe wird dir das Leben auf jedenfall Schwer machen.\033[0m\n")" 0.03
type_text "$(echo -e "")" 1
type_text "$(echo -e "\033[3mAb diesem Moment bleiben dir exakt \033[0m\033[1;3m10 Minuten\033[0m\033[3m, um die Aufgabe zu lösen.\033[0m")" 0.03
type_text "$(echo -e "\033[3mWenn die Zeit abläuft… nun ja… dann verschwindet deine Chance genauso lautlos wie das Flüstern hinter dir.\033[0m")" 0.03
type_text "$(echo -e "\033[3m Solltest du dies nicht schaffen ist dein Rechner für immer verloren.\033[0m")" 0.03
type_text "$(echo -e "\033[3m\033[0m")" 0.03
type_text "$(echo -e "\n")" 0.9
type_text "$(echo -e "\033[3mDie Uhr beginnt jetzt zu ticken.\033[0m")" 0.05
type_text "$(echo -e "\033[3mTipp: Versuche den Timer zu Stoppen!\033[0m")" 0.02
type_text "$(echo -e "\033[3mDie Uhr beginnt jetzt zu ticken.\033[0m")" 0.05