kxBypass Shortlinks Bypasser

Bypass almost any Keysystem for the low price of FREE!

目前為 2025-03-22 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         kxBypass Shortlinks Bypasser
// @namespace    https://discord.gg/pqEBSTqdxV
// @version      v1.1
// @description  Bypass almost any Keysystem for the low price of FREE!
// @author       awaitlol.
// @match        https://bstlar.com/*
// @match        https://lootlinks.co/*
// @match        https://loot-links.com/*
// @match        https://loot-link.com/*
// @match        https://linksloot.net/*
// @match        https://lootdest.com/*
// @match        https://lootlink.org/*
// @match        https://lootdest.info/*
// @match        https://lootdest.org/*
// @match        https://links-loot.com/*
// @icon         https://i.pinimg.com/736x/aa/2a/e5/aa2ae567da2c40ac6834a44abbb9e9ff.jpg
// @grant       none
// @run-at      document-end
// ==/UserScript==

(function () {
    "use strict";

    function showBypassModal(link) {
        const modalHTML = `
            <div id="kxBypass-modal">
                <div id="kxBypass-modal-content">
                    <img src="https://i.pinimg.com/736x/aa/2a/e5/aa2ae567da2c40ac6834a44abbb9e9ff.jpg" id="kxBypass-logo">
                    <h1>kxBypass Development</h1>
                    <p>Bypass Successful! Here is your link:</p>
                    <input type="text" id="kxBypass-link" value="${link}" readonly>
                    <button id="kxBypass-redirect">Redirect</button>
                    <button id="kxBypass-close">✕</button>
                </div>
            </div>
            <style>
                @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

                #kxBypass-modal {
                    position: fixed;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    background: rgba(0, 0, 0, 0.7);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    z-index: 10000;
                    font-family: 'Poppins', sans-serif;
                }

                #kxBypass-modal-content {
                    background: #fff;
                    padding: 20px;
                    border-radius: 12px;
                    text-align: center;
                    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
                    max-width: 400px;
                    width: 100%;
                    position: relative;
                }

                #kxBypass-logo {
                    width: 50px;
                    height: 50px;
                    border-radius: 50%;
                    margin-bottom: 10px;
                }

                h1 {
                    font-size: 20px;
                    font-weight: 600;
                    margin-bottom: 10px;
                    color: #333;
                }

                p {
                    font-size: 14px;
                    color: #666;
                    margin-bottom: 15px;
                }

                #kxBypass-link {
                    width: 100%;
                    padding: 8px;
                    border: 1px solid #ddd;
                    border-radius: 6px;
                    text-align: center;
                    font-size: 14px;
                    color: #333;
                    margin-bottom: 15px;
                }

                button {
                    width: 100%;
                    padding: 10px;
                    margin-top: 5px;
                    border: none;
                    border-radius: 6px;
                    cursor: pointer;
                    font-weight: 600;
                    transition: 0.3s ease;
                }

                #kxBypass-redirect {
                    background: #3498db;
                    color: #fff;
                }

                #kxBypass-redirect:hover {
                    background: #2980b9;
                }

                #kxBypass-close {
                    background: #e74c3c;
                    color: #fff;
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    width: 30px;
                    height: 30px;
                    border-radius: 50%;
                    padding: 0;
                    line-height: 30px;
                    text-align: center;
                }

                #kxBypass-close:hover {
                    background: #c0392b;
                }
            </style>
        `;

        const modalContainer = document.createElement("div");
        modalContainer.innerHTML = modalHTML;
        document.body.appendChild(modalContainer);

        document.getElementById("kxBypass-redirect").addEventListener("click", () => {
            window.location.href = link;
        });

        document.getElementById("kxBypass-close").addEventListener("click", () => {
            document.getElementById("kxBypass-modal").remove();
        });
    }



    if (window.location.href.includes("bstlar")) {
        console.log("[kxBypass] Bstlar detected. Please wait.");

        const pageText = document.body.innerText || "";
        const pageHTML = document.documentElement.innerHTML

       if (pageText.includes("Just a moment") || pageHTML.includes("Just a moment")) {
            console.log("[kxBypass] Cloudflare detected. Waiting...");
            return;
        }

        let url = window.location.href;
        const path = new URL(url).pathname.substring(1);

        fetch(`https://bstlar.com/api/link?url=${path}`, {
            headers: {
                "accept": "application/json, text/plain, */*",
                "accept-language": "en-US,en;q=0.9",
                "authorization": "null",
                "Referer": window.location.href,
                "Referrer-Policy": "same-origin"
            },
            method: "GET"
        })
            .then(response => response.json())
            .then(data => {
                console.log("[kxBypass] Received Data:", data);

                if (data.tasks && data.tasks.length > 0) {
                    let linkId = data.tasks[0].link_id;
                    console.log("[kxBypass] Extracted link_id:", linkId);

                    return fetch("https://bstlar.com/api/link-completed", {
                        headers: {
                            "accept": "application/json, text/plain, */*",
                            "content-type": "application/json;charset=UTF-8",
                            "authorization": "null",
                            "Referer": window.location.href,
                            "Referrer-Policy": "same-origin"
                        },
                        body: JSON.stringify({ link_id: linkId }),
                        method: "POST"
                    });
                } else {
                    throw new Error("No tasks found in response!");
                }
            })
            .then(response => response.text())
            .then(finalLink => {
                console.log("[kxBypass] Final link:", finalLink);
                showBypassModal(finalLink);
            })
            .catch(error => console.error("[kxBypass] Error:", error));
    }

if (window.location.href.includes("loot")) {
    // Wait 4 seconds before creating and displaying the overlay
    setTimeout(() => {
        const overlay = document.createElement('div');
        overlay.id = 'kxBypass-overlay';
        overlay.innerHTML = `
            <div id="kxBypass-content">
                <img src="https://i.pinimg.com/736x/aa/2a/e5/aa2ae567da2c40ac6834a44abbb9e9ff.jpg" id="kxBypass-logo">
                <div id="kxBypass-text">
                    <h1>kxBypass Lootlinks Bypasser!</h1>
                    <p>Please wait, bypassing...</p>
                    <div id="kxBypass-logs"></div>
                    <button id="kxBypass-redirect" disabled>Waiting...</button>
                    <a href="https://discord.gg/pqEBSTqdxV" class="kxBypass-invite">Join our Discord</a>
                </div>
        `;

        const style = document.createElement('style');
        style.textContent = `
            @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

            /* Overlay covers the entire website */
            #kxBypass-overlay {
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100vh !important;
                background: rgba(255, 255, 255, 0.95) !important;
                display: flex !important;
                justify-content: center !important;
                align-items: center !important;
                z-index: 2147483647 !important;
                font-family: 'Poppins', sans-serif !important;
                animation: fadeIn 0.5s ease-in-out !important;
            }

            @keyframes fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }

            /* Content styling */
            #kxBypass-content {
                display: flex !important;
                align-items: center !important;
                gap: 15px !important;
                max-width: 80% !important;
                background: white !important;
                padding: 20px !important;
                border-radius: 10px !important;
                box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2) !important;
            }

            #kxBypass-logo {
                width: 50px !important;
                height: 50px !important;
                border-radius: 50% !important;
            }

            #kxBypass-text h1 {
                font-size: 18px !important;
                font-weight: 600 !important;
                margin: 0 !important;
                color: #333 !important;
            }

            #kxBypass-text p {
                font-size: 14px !important;
                margin: 5px 0 !important;
                color: #666 !important;
            }

            #kxBypass-logs {
                max-height: 100px !important;
                overflow-y: auto !important;
                font-size: 12px !important;
                padding: 5px !important;
                background: #f4f4f4 !important;
                border-radius: 5px !important;
                width: 100% !important;
                margin-bottom: 10px !important;
            }

            #kxBypass-redirect {
                background: #3498db !important;
                color: white !important;
                border: none !important;
                padding: 10px 20px !important;
                border-radius: 5px !important;
                cursor: pointer !important;
                font-size: 14px !important;
                font-weight: 600 !important;
                transition: background 0.2s ease-in-out !important;
            }

            #kxBypass-redirect:disabled {
                background: #999 !important;
                cursor: not-allowed !important;
            }

            #kxBypass-redirect:not(:disabled):hover {
                background: #2980b9 !important;
            }

            .kxBypass-invite {
                font-size: 14px !important;
                color: #3498db !important;
                text-decoration: none !important;
                font-weight: 600 !important;
            }

            .kxBypass-invite:hover {
                text-decoration: underline !important;
            }
        `;

        document.head.appendChild(style);
        document.body.appendChild(overlay);

        let loggerIncrement = 1;
        function logMessage(type, data) {
            const logContainer = document.getElementById('kxBypass-logs');
            if (logContainer) {
                const logEntry = document.createElement('div');
                logEntry.innerHTML = `<strong>#${loggerIncrement++} ${type}:</strong> ${data}`;
                logContainer.appendChild(logEntry);
                logContainer.scrollTop = logContainer.scrollHeight;
            }
        }

        function decodeBase64WithKey(encodedText, keyLength = 5) {
            let decodedText = '';
            let decodedString = atob(encodedText);
            let key = decodedString.substring(0, keyLength);
            let encodedMessage = decodedString.substring(keyLength);

            for (let i = 0; i < encodedMessage.length; i++) {
                let encodedCharCode = encodedMessage.charCodeAt(i);
                let keyCharCode = key.charCodeAt(i % key.length);
                let decodedCharCode = encodedCharCode ^ keyCharCode;
                decodedText += String.fromCharCode(decodedCharCode);
            }

            return decodedText;
        }

        // WebSocket Proxy
        const oldWS = window.WebSocket;
        window.WebSocket = new Proxy(oldWS, {
            construct: function (target, args) {
                const wsUrl = args[0];
                const obj = new target(...args);

                logMessage("Connection", "Successfully connected to Lootlink WS!");

                const wsInterval = setInterval(() => {
                    if (obj.readyState === WebSocket.OPEN) {
                        obj.send("0");
                        logMessage("Spamming", "Spamming WS...");
                    }
                }, 2000);

                obj.addEventListener('message', (event) => {
                    const message = event.data;

                    if (message.startsWith("r:")) {
                        const response = message.substring(2); // Remove "r:"

                        // Check if the response is a direct link
                        if (response.includes("https://") || response.includes("www.")) {
                            logMessage("Response", `Detected direct link: ${response}`);
                            const redirectButton = document.getElementById('kxBypass-redirect');
                            redirectButton.disabled = false;
                            redirectButton.innerText = `Redirect to destination`;
                            redirectButton.addEventListener('click', () => {
                                window.location.href = response;
                            });
                        } else {
                            // Decode the Base64 token
                            const decodedUrl = decodeBase64WithKey(response);
                            logMessage("Response", `Decoded URL: ${decodedUrl}`);
                            const redirectButton = document.getElementById('kxBypass-redirect');
                            redirectButton.disabled = false;
                            redirectButton.innerText = `Redirect to destination`;
                            redirectButton.addEventListener('click', () => {
                                window.location.href = decodedUrl;
                            });
                        }
                    }
                });

                // Handle WebSocket close
                obj.addEventListener('close', () => {
                    clearInterval(wsInterval); // Stop sending "0" when the connection is closed
                });

                return obj;
            }
        });

        // Button click logic
        function clickButton() {
            window.open = function() {
                return null;
            };
            const button = document.querySelector("div.btn-shadow");
            if (button) {
                button.click();
            }
        }

        clickButton();
    }, 4000);
}
})();