discord x-fingerprint 分析(未完待续)

滲透逆向 · 20 天前 · 20 人浏览
discord x-fingerprint 分析(未完待续)

在請求頭裏面有這麽個參數,嘗試逆向。
2024-12-05T21:14:48.png
看到如下代碼,找到了h和x,代碼類型為 webpack
2024-12-05T21:16:22.png
2024-12-05T21:17:05.png

我盡力了,雖然沒有報錯,但是輸出不了結果,如下是代碼,有解決方案可以在下面評論
2024-12-05T21:19:00.png

var encryption_obj;
var window = global;


!function(e){
    t = {};
    function n(r) {
        var i = t[r];
        if (void 0 !== i)
            return i.exports;
        var a = t[r] = {
            id: r,
            loaded: !1,
            exports: {}
        };
        console.log(r)
        return e[r].call(a.exports, a, a.exports, n),
        a.loaded = !0,
        a.exports
    }

    n.o = function(e, t) {
        return Object.prototype.hasOwnProperty.call(e, t)
    }

    n.d = function(e, t) {
        for (var r in t)
            n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
                enumerable: !0,
                get: t[r]
            })
    }

    encryption_obj=n


}({
    37082: function(e, t, n) {
        "use strict";
        let r;
        n.d(t, {
            R: function() {
                return i
            },
            y: function() {
                return a
            }
        });
        try {
            r = window.localStorage
        } catch (e) {}
        try {
            delete window.localStorage
        } catch (e) {}
        class i {
            get(e, t) {
                return this.storage.hasOwnProperty(e) ? this.storage[e] : t
            }
            set(e, t) {
                this.storage[e] = t
            }
            remove(e) {
                delete this.storage[e]
            }
            clear() {
                this.storage = {}
            }
            stringify() {
                return JSON.stringify(this.storage)
            }
            asyncGetRaw(e, t) {
                return Promise.resolve(r.getItem(e))
            }
            setRaw(e, t) {
                r.setItem(e, t)
            }
            getAfterRefresh(e) {
                return Promise.resolve(this.get(e))
            }
            constructor() {
                var e, t, n;
                e = this,
                n = void 0,
                (t = "storage")in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n,
                this.storage = {}
            }
        }
        let a = !function() {
            let e = "test";
            try {
                return r.setItem(e, e),
                r.removeItem(e),
                !0
            } catch (e) {
                return !1
            }
        }() ? new i : new class e {
            get(e, t) {
                let n = r.getItem(e);
                if (null != n)
                    try {
                        n = JSON.parse(n)
                    } catch (e) {
                        n = t
                    }
                else
                    n = t;
                return n
            }
            set(e, t) {
                r.setItem(e, JSON.stringify(t))
            }
            remove(e) {
                r.removeItem(e)
            }
            clear() {
                r.clear()
            }
            stringify() {
                return JSON.stringify(r || {})
            }
            asyncGetRaw(e, t) {
                return Promise.resolve(r.getItem(e))
            }
            setRaw(e, t) {
                r.setItem(e, t)
            }
            getAfterRefresh(e) {
                return Promise.resolve(this.get(e))
            }
        }
    },

    433517: function(e, t, n) {
        "use strict";
        let r;
        n.d(t, {
            K: function() {
                return r
            }
        });
        r = n(37082).y
    },

})
x = "fingerprint"
h = encryption_obj(433517)
Z = h.K.get(x)
console.log(Z)
本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao