theseanl / deob

0 stars 0 forks source link

Detect scope constant var #6

Closed theseanl closed 7 years ago

theseanl commented 7 years ago

Transforms

(function() {
    var a = 'lSto',b = 'tIt', c = 'em', d='rag';
    return window['loca' + a + d]['ge' + b + c]('date');
})();

to

(function() {
    return window['localStorage']['getItem']('date');
})();
theseanl commented 7 years ago

Please discard this, I should've made a pull request to master.