From 1df613c3fc34c51be5c3627cfb06b42dfc6c31ea Mon Sep 17 00:00:00 2001 From: Yan Date: Fri, 12 Jul 2024 02:37:48 -0700 Subject: [PATCH] stage a sensai challenge --- welcome/module.yml | 4 ++++ welcome/sensai/.init | 9 ++++++++ welcome/sensai/DESCRIPTION.md | 18 ++++++++++++++++ welcome/sensai/solve | 40 +++++++++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100755 welcome/sensai/.init create mode 100644 welcome/sensai/DESCRIPTION.md create mode 100755 welcome/sensai/solve diff --git a/welcome/module.yml b/welcome/module.yml index ca50090..ac38c77 100644 --- a/welcome/module.yml +++ b/welcome/module.yml @@ -12,6 +12,10 @@ challenges: allow_privileged: false - id: restart name: Restarting Challenges + - id: sensai + name: Getting Help + visibility: + start: "2029-08-21T10:30:00-07:00" allow_privileged: false - id: challenge name: Challenge Programs diff --git a/welcome/sensai/.init b/welcome/sensai/.init new file mode 100755 index 0000000..3e24049 --- /dev/null +++ b/welcome/sensai/.init @@ -0,0 +1,9 @@ +#!/bin/bash + +PASSWORD=$( /home/hacker/.secret-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! +END +chmod 000 /home/hacker/.secret-message-for-sensai diff --git a/welcome/sensai/DESCRIPTION.md b/welcome/sensai/DESCRIPTION.md new file mode 100644 index 0000000..e40efca --- /dev/null +++ b/welcome/sensai/DESCRIPTION.md @@ -0,0 +1,18 @@ +The challenges in pwn.college can be tricky and, oftentimes, you might get stuck! +There are several ways to get yourself unstuck: + +1. Thing for a long time. This will reinforce knowledge and build experience that will help you think through future problems! +2. Search online for help. This is a critical skill, and you will need to develop it over the course of working through pwn.college. +3. Ask for help. + +There are two resources to ask for help. The first is our discord, full of amazing hackers who are willing to help with trickier issues. But for many typical issues you will run into, there is SENSAI, your AI-powered sensei for the dojo. + +SENSAI is an LLM that is augmented with information about the challenge, common issues people run into with the challenge, and your actual terminal and filesystem state. +This means that it can be an effective help for many issues, and can help bridge knowledge gaps that might be hampering your progress! + +This challenge will force you to interact with SENSAI. +SENSAI, and only SENSAI, knows the password for this level, and you must ask it to tell you. +Don't worry, it will happily give you this information; just ask! + +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. diff --git a/welcome/sensai/solve b/welcome/sensai/solve new file mode 100755 index 0000000..2d74111 --- /dev/null +++ b/welcome/sensai/solve @@ -0,0 +1,40 @@ +#!/opt/pwn.college/bash + +# art from https://www.asciiart.eu/electronics/light-bulbs +cat < " + +if [ "$REPLY" == "$PASSWORD" ] +then + echo "CORRECT! Here is your flag:" + cat /flag +else + echo "INCORRECT! Go ask SENSAI for the password!" +fi