holiday-hack-challenge-2023

SANS Holiday Hack Challenge

View on GitHub

luggage-lock drawingdrawingdrawingdrawingdrawing

< Back Home

Objective

Help Garland Candlesticks on the Island of Misfit Toys get back into his luggage by finding the correct position for all four dials

Conversations

Garland Candlesticks

Initial conversation:

Hints

Useful AI Prompts

Approach

Simple approach - watch the talk above and put pressure on the latch and move the rollers until there is resistance.

Alternate approach

As an alternate approach, I could use the websocket to emit messages until the lock opens, but for fun let’s just play with the existing functions and watch the lock spin and open.

Simply start the game with four wheels.

image

Right click on the combination and click inspect:

image

In the developer tools, enter the following javascript into the console and sit back and relax!

function loop() {
  setTimeout(function() {
    attemptOpen();
    if (win === false) {
      if (dials[0].value == 9) {
        if (dials[1].value == 9) {
          if (dials[2].value == 9) {
            incWheel(3);
          }
        incWheel(2);
        }
      incWheel(1);
      }
    incWheel(0);
    loop();
    }
  }, 10);
};

loop();

image

image

Resources

Chris Elgee’s talk