Earnlink Bypass

Automatically decrypt and redirect for earnlink.io

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

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

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

// ==UserScript==
// @name         Earnlink Bypass
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically decrypt and redirect for earnlink.io
// @author       Minoa
// @license MIT
// @match        https://www.earnlink.io/*
// @require      https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to get URL parameters
    function getUrlParam(name) {
        const results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
        return results ? results[1] : null;
    }

    // AES crypto object
    var aesCrypto = {};
    !function(t) {
        "use strict";
        t.formatter = {
            prefix: "",
            stringify: function(t) {
                var r = this.prefix;
                return r += t.salt.toString(),
                r += t.ciphertext.toString();
            },
            parse: function(t) {
                var r = CryptoJS.lib.CipherParams.create({})
                  , e = this.prefix.length;
                return 0 !== t.indexOf(this.prefix) ? r : (r.ciphertext = CryptoJS.enc.Hex.parse(t.substring(16 + e)),
                r.salt = CryptoJS.enc.Hex.parse(t.substring(e, 16 + e)),
                r);
            }
        },
        t.encrypt = function(r, e) {
            try {
                return CryptoJS.AES.encrypt(r, e, {
                    format: t.formatter
                }).toString();
            } catch (n) {
                return "";
            }
        }
        ,
        t.decrypt = function(r, e) {
            try {
                var n = CryptoJS.AES.decrypt(r, e, {
                    format: t.formatter
                });
                return n.toString(CryptoJS.enc.Utf8);
            } catch (i) {
                return "";
            }
        }
    }(aesCrypto);

    // Get the encrypted parameter from the URL
    var encryptedParam = getUrlParam('o');
    if (encryptedParam) {
        // Decrypt the parameter
        var realUrl = aesCrypto.decrypt(convertstr(encryptedParam), convertstr('root'));
        // Redirect to the decrypted URL
        window.location.href = realUrl;
    }

    // Helper function to convert a string (example implementation, adapt as needed)
    function convertstr(str) {
        // Implement your conversion logic here if needed
        return str;
    }
})();