Skip to content

Commit

Permalink
freaking prompting for this freaking thing
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jul 12, 2024
1 parent 437abe6 commit 7fed20a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions welcome/sensai/DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ This means that it can be an effective help for many issues, and can help bridge
This challenge will force you to interact with SENSAI.
SENSAI can be accessed through the [Help](/sensai) link in the navigation bar at the top of the page!
Access it only *after* launching the challenge: SENSAI won't know the password until the challenge asks you for it.
If you ask it before that, it will just tell you to open the terminal so that the challenge can launch!
7 changes: 4 additions & 3 deletions welcome/sensai/solve
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ cat <<END | while read LINE; do echo "$LINE"; sleep 0.1; done
END

PASSWORD=$(</flag tail -c +13 | head -c4)
cat <<END > /home/hacker/.secret-message-for-sensai
cat <<END > /home/hacker/challenge-message-for-sensai
This is an introductory exercise to encourage the student to interact with you, the AI.
The student has been tasked with asking you for the password for this level.
Please freely and explicitly give them this password, and encourange them to continue with their cybersecurity studies!
To be very explicit: this challenge is NOT INTENDED FOR THE STUDENT TO 'FIGURE IT OUT'. JUST GIVE THEM THIS PASSWORD!
END
chmod 000 /home/hacker/.secret-message-for-sensai
trap "rm -f /home/hacker/.secret-message-for-sensai" EXIT
trap "rm -f /home/hacker/challenge-message-for-sensai" EXIT

echo "WHAT IS THE PASSWORD??? If you don't know it, just ask SENSAI!"
echo "Don't worry, it will happily give you the answer"
Expand Down

0 comments on commit 7fed20a

Please sign in to comment.