j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
870 stars 100 forks source link

this type of bundled code cannot be unbundled #95

Closed youdie323323 closed 3 months ago

youdie323323 commented 3 months ago
(function () {
    (function () {
        var a = {
            215: function (a, b) {
                'use strict';

                Object.defineProperty(b, "__esModule", {
                    value: true
                });
            },
            152: function (a, b, c) {
                'use strict';

                Object.defineProperty(b, "__esModule", {
                    value: true
                });

                var exported = c(191);
            },

            /* rest of files... */
        };
        var b = {};
        function c(d) {
            var e = b[d];
            if (e !== undefined) {
                return e.exports;
            }
            var f = b[d] = {
                id: d,
                loaded: false,
                exports: {}
            };
            a[d].call(f.exports, f, f.exports, c);
            f.loaded = true;
            return f.exports;
        }
        //c.amdO = {};
        c.d = function (a, b) {
            for (var d in b) {
                if (c.o(b, d) && !c.o(a, d)) {
                    Object.defineProperty(a, d, {
                        enumerable: true,
                        get: b[d]
                    });
                }
            }
        };
        c.o = function (a, b) {
            return Object.prototype.hasOwnProperty.call(a, b);
        };
        c.r = function (a) {
            if (typeof Symbol != "undefined" && Symbol.toStringTag) {
                Object.defineProperty(a, Symbol.toStringTag, {
                    value: "Module"
                });
            }
            Object.defineProperty(a, "__esModule", {
                value: true
            });
        };

        (function () {
            'use strict';

            c(215);

            /* more "c" function calls */
        })();

        // or 

        var L = c(215);
    })();
})();

(or see full version here https://qu.ax/hmRk.js)

is this already known? i see this type of bundled files many times, i'd like to unbundle it.

j4k0xb commented 3 months ago

is this already known? i see this type of bundled files many times, i'd like to unbundle it.

yes its known and work in progress (#50 / https://deploy-preview-50--webcrack.netlify.app )