https://lewislitt.life/Store/install.html

已提交的 URL:
https://lewislitt.life/Store/install.html
報告完成時間:

連結 · 找到 0 個

JavaScript 變數 · 找到 6 個

名稱類型
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject
GetCookiefunction
LoadLicenseCookiefunction
ContentRefreshfunction

主控台記錄訊息 · 找到 0 條

HTML

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Loader Install Form</title>
    <link rel="stylesheet" href="style.css">
    <link rel="icon" href="Assets/Logo.png" type="image/x-icon">
    <script>
        function GetCookie(CookieName) {
            var Name = CookieName + "=";
            var DecodedCookie = decodeURIComponent(document.cookie);
            var CA = DecodedCookie.split(';');
            for(var i = 0; i < CA.length; i++) {
                var C = CA[i];
                while (C.charAt(0) == ' ') {
                    C = C.substring(1);
                }
                if (C.indexOf(Name) == 0) {
                    return C.substring(Name.length, C.length);
                }
            }
            return "";
        }

        function LoadLicenseCookie() {
            var License = GetCookie("License");
            if (License != "") {
                document.getElementById('input_field').value = License;
            }
        }

        function ContentRefresh() {
            //Query Required Fields
            var InputField = document.getElementById('input_field');
            var SubmitButton = document.getElementById('submit_button');
            var ResultElement = document.getElementById('web_result');

            //Query Input Value
            var InputValue = InputField.value;

            //Disable Input and Submit Field
            InputField.disabled = true;
            SubmitButton.disabled = true;

            //Build Current Request URL
            var Protocol = window.location.protocol;
            var HostName = window.location.hostname;

            var RequestURL = Protocol + '//' + HostName + '/LoaderAuth/index.php?req=custom_build&input=' + InputValue;

            //Fetch Data with API
            function PersistentFetch() {
                fetch(RequestURL)
                    .then(response => response.text())
                    .then(data => {
                        var InvalidResult = data.toLowerCase().includes('invalid') || data.toLowerCase().includes('rate limited');
                        var SuccessResult = data.toLowerCase().includes('.exe');
                        var QueueContainedResult = data.toLowerCase().includes(';'); //Delimiter Shows Queue Data Contained in Array

                        if (InvalidResult)
                        {
                            InputField.disabled = false;
                            SubmitButton.disabled = false;

                            document.getElementById('web_result').innerHTML = data;
                        }
                        else if (SuccessResult)
                        {
                            var ExpirationDate = new Date();
                            ExpirationDate.setTime(ExpirationDate.getTime() + (7*24*60*60*1000));
                            var Expires = "expires=" + ExpirationDate.toUTCString();
                            document.cookie = "License=" + InputValue + ";" + Expires + ";path=/";

                            document.getElementById('web_result').innerHTML = 'Build Generated, Downloading!';
                            document.location.href = data;

                            SubmitButton.disabled = false;
                        }
                        else
                        {
                            setTimeout(PersistentFetch, 3000);

                            if (QueueContainedResult)
                            {
                                var DataParse = data.split(';');
                                document.getElementById('web_result').innerHTML = DataParse[0];
                                document.getElementById('queue_result').innerHTML = DataParse[1];
                            }
                            else
                            {
                                document.getElementById('web_result').innerHTML = data;
                            }
                        }
                    })
                    .catch(error => console.error('Error:', error));
            }

            //Initial Call to Begin Fetching Process
            PersistentFetch();
        }
    </script>
</head>
<body onload="LoadLicenseCookie()">
<div class="content">
    <h1>Loader Install Request</h1>

    <form onsubmit="ContentRefresh(); return false;">
        <input type="text" id="input_field" placeholder="Enter License" class="license-input" name="InputField" required="">
        <div id="web_result" style="color: #FFFFFF; white-space: pre; margin-top: 5px; margin-bottom: 3px;">&nbsp;</div>
        <div id="queue_result" style="color: #FFFFFF; white-space: pre; margin-top: 5px; margin-bottom: 3px;"></div>

        <input type="submit" id="submit_button" class="gradient-button" value="Request Loader Install">
</form></div>

</body></html>