PerimeterX/restringer

Request - Handle proxy functions in variable declarator

Closed this issue · 2 comments

It would be great to see restringer handle these type of proxy functions:

var proxyFunctions = {
    "WEa": function _0x2bf71d(_0x3b0fe0, _0x58f947) {
        return _0x3b0fe0 + _0x58f947;
    },
    "zaC": function _0x483098(_0x2bedf4, _0x1b7fd1) {
        return _0x2bedf4(_0x1b7fd1);
    },
    "zqK": function _0x18c763(_0x417183, _0x547f63) {
        return _0x417183(_0x547f63);
    },
    "Hpk": function _0x196ce5(_0x4adbf1) {
        return _0x4adbf1();
    },
    "JgD": function _0x3e3a03(_0x38abb8, _0x187aad) {
        return _0x38abb8(_0x187aad);
    },
};

Example;

const a1 = 2;
const a2 = 3;
const a = proxyFunctions.WEa(a1, a2) // output is 5

Should be simplified to;

const a = a1 + a2

I'm getting a = 5 when running the code.
@tsothcott Are you getting something else with the latest version?

@tsothcott I will close this issue now. Please re-open it if necessary. Thank you for your input :)