0

CodeI am trying to deobfuscate a highly obfuscated JS file for use to be passed in along with an HTTP POST request from my C# application. I don't know much about JS. The file I am trying to deobfuscate is this: https://www.supremenewyork.com/ticket.js. I found a deobfuscation tool on GitHub that was made by a developer of a well known bot (so they specialise in deobfuscating this exact same file), and I ran it. I'm attaching a snippet of the massive code file that came out. From there, what exactly do I do? I'm new to HTTP requests but I know that this (its AES Keys) need to be passed in with the request. Any help/guidance would be much appreciated!

T2aa.Q2aa = Q2aa;
A411.F1G = function() {
var h = 2;
for (; h !== 9;) {
    switch (h) {
        case 5:
            var T;
            try {
                var t = 2;
                for (; t !== 6;) {
                    switch (t) {
                        case 3:
                            throw "";
                            t = 9;
                            break;
                        case 9:
                            delete T.xGZXU;
                            var J = Object.prototype;
                            delete J.GEznc;
                            t = 6;
                            break;
                        case 2:
                            Object.defineProperty(Object.prototype, "GEznc", {
                                get: function() {
                                    var o = 2;
                                    for (; o !== 1;) {
                                        switch (o) {
                                            case 2:
                                                return this;
                                                break;
                                        }
                                    }
                                },
                                configurable: true
                            });
                            T = GEznc;
                            T.xGZXU = T;
                            t = 4;
                            break;
                        case 4:
                            t = typeof xGZXU === "undefined" ? 3 : 9;
                            break;
                    }
                }
            } catch (Q) {
                T = window;
            }
            return T;
            break;
        case 1:
            return globalThis;
            break;
        case 2:
            h = typeof globalThis === "object" ? 1 : 5;
            break;
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.