关于javascript:分享一种超简单的js解密方法

43次阅读

共计 8317 个字符,预计需要花费 21 分钟才能阅读完成。

加密代码如下
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k)p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k);return p;}('(E["Y"]=E["Y"]||[]).1h([["1z-1A"],{"1y":4(e,t,c){"1n 1l";c.r(t);7 n=4(){7 e=3,t=e.c,c=e.1w.1F||t;9 e.v?c("R",{q:"j-8-D"},)]):e.1s()},i=[],a=(c("1u"),c("1W"),c("1X"),c("1T")),r=c("1Y"),s=c.n(r),o=c("22"),u=c("23"),d=c("21"),l=c("20"),h=c("1c"),p=c.n(h),f=c("1K");4 g(e,t){7 c=5.1L(e);V(5.1e){7 n=5.1e(e);t&&(n=n.1J((4(t){9 5.13(e,t).1H}))),c.1h.1P(c,n)}9 c}4 A(e){1N(7 t=1;t<T.Q;t++){7 c=F!=T[t]?T[t]:{};t%2?g(5(c),!0).12((4(t){5(a["a"])(e,t,c[t])})):5.X?5.1O(e,5.X(c)):g(5(c)).12((4(t){5.1R(e,t,5.13(c,t))}))}9 e}7 b={1Q:"1M-1I",1S:[f["a"],l["a"]],1Z:{},1i:4(){9{v:!1,6:{},W:[],17:p.a,1U:!1,z:!1,C:!1,B:!1,k:""}},1V:A({},5(o["c"])({N:"N",M:"M"})),1r:4(){},1v:{N:{15:4(e){1o.1q(e)&&e.Q>0&&!3.B&&(3.B=!0,3.W=e,3.C&&3.P())},18:!0},M:{15:4(e){e.k&&!3.C&&(3.k=1C*e.k,3.C=!0,3.B&&3.P())},18:!0}},1B:4(){},1x:{P:4(){7 e=5(d["b"])(3.W,3.k);3.v=e.Q>0,3.v&&(3.6=e[0],3.19(),5(u["b"])({L:"I-J-D-2B",H:3.6.G}))},19:4(e){V(3.6&&3.6.U){7 t=s()(e),c=t.2D("2F-2E-2A"),n=16.2w(3.6.U),i=1;V(n){7 a=n.14(0,10),r=t.2v(a,"2x");(0===r||r<=3.6.2z)&&(i=+n.14(11)+1)}16.2G(3.6.U,"".Z(c,"-").Z(i))}},1a:4(e){7 t=3;3.z||(3.z=!0,5(u["b"])({L:"I-J-D-x",H:3.6.G}),2R((4(){t.z=!1,E.2J(t.6.2I)}),2H))},K:4(){5(u["b"])({L:"I-J-D-1b",H:3.6.G}),3.v=!1}}},y=b,w=(c("1m"),c("2c")),m=5(w["a"])(y,n,i,!1,F,"29",F);t["2C"]=m.1f},"1m":4(e,t,c){"1n 1l";c("1k")},"1c":4(e,t){e.1f="1i:2r/2q;2p,2u////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2t+2s/2k+2j/2i/2n+2f/2l+2m+2o/27+28/24/25+26/2a/2e/2g/2h/2b/2d+2K/2L/2M/2N+2O/2P/2Q+2y"},1k:4(e,t,c){}}]);',62,178,'|||this|function|Object|currentGuidance|var|operate|return||||||||||nd|servertime||||||staticClass|||||guidanceShow||click||locking||listReady|timeReady|guidance|window|null|id|from|web|index|closeGuidance|type|yunData|popupAd|img|showGuidance|length|div|on|arguments|localKey|if|allGuidance|getOwnPropertyDescriptors|webpackJsonp|concat|||forEach|getOwnPropertyDescriptor|slice|handler|localStorage|closeUrl|deep|setTimeStorage|golink|close|9e8f|alt|getOwnPropertySymbols|exports|src|push|data|attrs|b4bc|strict|95a7|use|Array|guidance__img|isArray|created|_2| 经营图片 |3822|watch|_0|methods|0045|chunk|0e9daeac|mounted|1e3|guidance__close|guidance__body|_1|guidance__mask|enumerable|plugin|filter|0a4e|keys|operateGuidance|for|defineProperties|apply|name|defineProperty|mixins|b76f|hasSet|computed|2637|e5fc|2ed8|components|79f8|7f0d|c6b7|30fa|mmUlf5XUXQ8b7W8RWKJVZXdoPOZoxx3ZWP8j|hJptc3wTXj|I6|WTdJUSRNrf8n7RdWvW7uL9XxwINDXN9HN1cXV0zz2zKcT4Tldpoq7NGdJyHiyB76JNjZMrne0UzSgsPahOZ3a8GRM9kLLNhLRoHMyIjWS4|waMeU1jS9PdOQEEWItKM453qmkpNkamp7pfjYzyVvKc5HPhXlXejiUIh2gt5DPeUB|63f6c2e0|5usqwLRG7AmRkhu3j5TjVgkoyj2Oliz460QKLts|2yxWojx2zJlkbpRHWZCP25zjY3KzKmcFWV4Byt6PiCvA|deb0|9Lxv|nkt8pKcL||j6F9caknYMQny84jsHWADPy|UGqDh9XyLHVKKaCm45VkszpJLM8t8njAQz7fCItHAykCs0EADYyFJw2zEMHJw5RkILjIE9QjWMDDrKxc4DjFS2bgIN0cJBQeJmjeH1WzFnKYcag9IdPtwV0uQqH3yocOlxlcSS3CpgU4nA6JPexrpgU6eANIDgAO0nhHXjLWThNtrYtx5tcckzKTS6PFSTMMSmOFR9kyUmSDzKXDoP7ApiRu9YsHaJY9cwxSYX|q9wCa7Gkpbtaf740PLa5EubBrCZupWHUxVkWVCdDuVNwb9M7S|t6gjAMhlNOclKYTHAinnbi|OT48YVwIdXgx1XnodzRFJxPG5hkMirCsKxJNdlaHV29sJlwswAAAi1JREFUSMedl|NRnEwWiyIo|XV|5aFh|lS|base64|png|image|wYCnqT|NgkbwAAAAKHRSTlMAA|iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAe1BMVEUAAAD|diff|getItem|days|HHyKjcAYx6uLPAAAAAElFTkSuQmCC|showDay|DD|show|default|format|MM|YYYY|setItem|400|href|open|b8L1b|q9y|efBvV|wbJP|WzL8J9G87|Rtd|9bav5nnz4dOfz50js|setTimeout'.split('|'),0,{}))
js 解密后
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-0e9daeac"], {"0045": function(e, t, c) {
            "use strict";
            c.r(t);
            var n = function() {
                    var e = this,
                        t = e.c,
                        c = e._0._1 || t;
                    return e.guidanceShow ? c("div", {staticClass: "nd-operate-guidance"}, )]) : e._2()},
                i = [],
                a = (c("3822"), c("2637"), c("e5fc"), c("b76f")),
                r = c("2ed8"),
                s = c.n(r),
                o = c("c6b7"),
                u = c("30fa"),
                d = c("7f0d"),
                l = c("79f8"),
                h = c("9e8f"),
                p = c.n(h),
                f = c("0a4e");

            function g(e, t) {var c = Object.keys(e);
                if (Object.getOwnPropertySymbols) {var n = Object.getOwnPropertySymbols(e);
                    t && (n = n.filter((function(t) {return Object.getOwnPropertyDescriptor(e, t).enumerable
                    }))), c.push.apply(c, n)
                }
                return c
            }

            function A(e) {for (var t = 1; t < arguments.length; t++) {var c = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? g(Object(c), !0).forEach((function(t) {Object(a["a"])(e, t, c[t])
                    })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(c)) : g(Object(c)).forEach((function(t) {Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(c, t))
                    }))
                }
                return e
            }
            var b = {
                    name: "operateGuidance-plugin",
                    mixins: [f["a"], l["a"]],
                    components: {},
                    data: function() {
                        return {
                            guidanceShow: !1,
                            currentGuidance: {},
                            allGuidance: [],
                            closeUrl: p.a,
                            hasSet: !1,
                            locking: !1,
                            timeReady: !1,
                            listReady: !1,
                            servertime: ""
                        }
                    },
                    computed: A({}, Object(o["c"])({
                        popupAd: "popupAd",
                        yunData: "yunData"
                    })),
                    created: function() {},
                    watch: {
                        popupAd: {handler: function(e) {Array.isArray(e) && e.length > 0 && !this.listReady && (this.listReady = !0, this.allGuidance = e, this.timeReady && this.showGuidance())
                            },
                            deep: !0
                        },
                        yunData: {handler: function(e) {e.servertime && !this.timeReady && (this.servertime = 1e3 * e.servertime, this.timeReady = !0, this.listReady && this.showGuidance())
                            },
                            deep: !0
                        }
                    },
                    mounted: function() {},
                    methods: {showGuidance: function() {var e = Object(d["b"])(this.allGuidance, this.servertime);
                            this.guidanceShow = e.length > 0, this.guidanceShow && (this.currentGuidance = e[0], this.setTimeStorage(), Object(u["b"])({
                                type: "web-index-guidance-show",
                                from: this.currentGuidance.id
                            }))
                        },
                        setTimeStorage: function(e) {if (this.currentGuidance && this.currentGuidance.localKey) {var t = s()(e),
                                    c = t.format("YYYY-MM-DD"),
                                    n = localStorage.getItem(this.currentGuidance.localKey),
                                    i = 1;
                                if (n) {var a = n.slice(0, 10),
                                        r = t.diff(a, "days");
                                    (0 === r || r <= this.currentGuidance.showDay) && (i = +n.slice(11) + 1)
                                }
                                localStorage.setItem(this.currentGuidance.localKey, "".concat(c,"-").concat(i))
                            }
                        },
                        golink: function(e) {
                            var t = this;
                            this.locking || (this.locking = !0, Object(u["b"])({
                                type: "web-index-guidance-click",
                                from: this.currentGuidance.id
                            }), setTimeout((function() {t.locking = !1, window.open(t.currentGuidance.href)
                            }), 400))
                        },
                        closeGuidance: function() {Object(u["b"])({
                                type: "web-index-guidance-close",
                                from: this.currentGuidance.id
                            }), this.guidanceShow = !1
                        }
                    }
                },
                y = b,
                w = (c("95a7"), c("deb0")),
                m = Object(w["a"])(y, n, i, !1, null, "63f6c2e0", null);
            t["default"] = m.exports
        },
        "95a7": function(e, t, c) {
            "use strict";
            c("b4bc")
        },
        "9e8f": function(e, t) {e.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAMAAACfWMssAAAAe1BMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////NgkbwAAAAKHRSTlMAA+wYCnqT/OT48YVwIdXgx1XnodzRFJxPG5hkMirCsKxJNdlaHV29sJlwswAAAi1JREFUSMedl+t6gjAMhlNOclKYTHAinnbi/q9wCa7Gkpbtaf740PLa5EubBrCZupWHUxVkWVCdDuVNwb9M7S/5aFh+2f/NRnEwWiyIo+XV+lS/WTdJUSRNrf8n7RdWvW7uL9XxwINDXN9HN1cXV0zz2zKcT4Tldpoq7NGdJyHiyB76JNjZMrne0UzSgsPahOZ3a8GRM9kLLNhLRoHMyIjWS4+waMeU1jS9PdOQEEWItKM453qmkpNkamp7pfjYzyVvKc5HPhXlXejiUIh2gt5DPeUB/mmUlf5XUXQ8b7W8RWKJVZXdoPOZoxx3ZWP8j/hJptc3wTXj+I6/5usqwLRG7AmRkhu3j5TjVgkoyj2Oliz460QKLts/nkt8pKcL/j6F9caknYMQny84jsHWADPy/UGqDh9XyLHVKKaCm45VkszpJLM8t8njAQz7fCItHAykCs0EADYyFJw2zEMHJw5RkILjIE9QjWMDDrKxc4DjFS2bgIN0cJBQeJmjeH1WzFnKYcag9IdPtwV0uQqH3yocOlxlcSS3CpgU4nA6JPexrpgU6eANIDgAO0nhHXjLWThNtrYtx5tcckzKTS6PFSTMMSmOFR9kyUmSDzKXDoP7ApiRu9YsHaJY9cwxSYX/2yxWojx2zJlkbpRHWZCP25zjY3KzKmcFWV4Byt6PiCvA/9Lxv+b8L1b/q9y/efBvV/wbJP+WzL8J9G87/Rtd/9bav5nnz4dOfz50js+HHyKjcAYx6uLPAAAAAElFTkSuQmCC"},
        b4bc: function(e, t, c) {}}
]);
如何解密的

办法很简略

间接关上 jsjiami,将加密的 js 代码复制进去,点击解密间接就解进去了,这么宝藏的网站,必须分享进去哈哈。

正文完
 0