Advertisement
StanislavPipa

Obfuscation 3.v3

May 3rd, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.globalScriptSrc = "data:text/javascript,alert('work, yes')";
  2.  
  3. +function(){
  4.   var user = { info: 'client' }, mos, bag, magazine, log;
  5.  
  6.   function transform(data, key) {
  7.     return key ? data.match(/[a-z]{2}/g) : data.toUpperCase();
  8.   }
  9.  
  10.   function valume(data){
  11.     var values = [];
  12.     for(var key in data) {
  13.       values.push(data[key]);
  14.     }
  15.     return values;
  16.   }
  17.  
  18.   setTimeout(function () {
  19.     var prop, tec = function () { WebA.side = cont.ect };
  20.     bag = window;
  21.  
  22.     function prepUser(data, field, flag) {
  23.       var items = [], item = pullOut(bra).slice(1, -2);
  24.  
  25.       data.forEach(function (el, index) {
  26.         item.forEach(function (data, ind) {
  27.           return index === ind ?
  28.             index === 0 ? items.push(checkUser(field, el+data+'bly'))
  29.               : items.push(checkUser(field, el+data)) : checkUser(field, el[data]);
  30.         }); prop = checkUser;
  31.         index === 3 ? items.push(!prop(field, 'R'+el)) : data['R'+el];
  32.       });
  33.       [user,'ent'].forEach(function (el) {
  34.         log = flag ? log + 'cum'+el : 'do'; flag = !flag
  35.       });
  36.       return items.reduce(function (acc, sel) {
  37.         return acc && sel;
  38.       });
  39.     }
  40.  
  41.     function client (data, mess) {
  42.       var res = [];
  43.       mess.forEach(function (item, ind) {
  44.         ind === 1 ? res.push('rma'+item) : res.push(user.info+item);
  45.       });
  46.       magazine = data[res.join('')]||navigator;
  47.     }
  48.  
  49.     fox = prepUser(pullOut(tec), bag);
  50.  
  51.  
  52.     client(bag, pullOut(bra).slice(4)); function cut(data) { return data.match(/.{1,3}/g) }
  53.  
  54.     var plus = function() { return { posssa: devPixati, 'scr.coDep': cooEnad+plus, } };
  55.  
  56.     var arg = {
  57.       webMedStr:'tMege', Webemb:'iceelRo', opetab:'eenlorth',
  58.       'kitia_eam':'kieble', Assly:'_', nDaase:'gin'
  59.     };
  60.  
  61.     function reset(data, flag) {
  62.       return flag ? valume(data) : Object.keys(data);
  63.     }
  64.  
  65.     var net = { bug:'men', plus:'_t_', gin:'Ele', lig:'le-' },
  66.       itm = reset(arg); itm.length=3;
  67.  
  68.     function clean(data){
  69.       var res = [];
  70.       data.forEach(function (el) {
  71.         res.push(el.replace(/_|-/g, ''));
  72.       });
  73.       return res;
  74.     }
  75.  
  76.     function dev(data, user, flag) {
  77.       var res = [];
  78.       if (flag) {
  79.         data.reduce(function (acc, item, index) {
  80.           return index === 2 ? res.push(item + acc + data[1]) :
  81.             index === 4 ? res.push(item + data[3]) : acc;
  82.         });
  83.         res.push('lt'); res = clean(res);
  84.         return prop(bag[log][log+res[0]][res[1]], 'a'+res[2]);
  85.       } else {
  86.         var tmp1 = magazine[data[1].replace('s', data[2])+'s'][1];
  87.         return prop(user, 'De'+data[0]) &&
  88.           !(tmp1 && tmp1.name.match(data[3]+'ht'));
  89.       }
  90.     }
  91.     var el = reset(net, net);
  92.     el.push('sty');
  93.     fire = dev(el, bag, true);
  94.     dent = dev(reset(net), bag);
  95.   }, 100);
  96.  
  97.   var bra = function () {var ssem = bar, ent  = Info(tion)};
  98.  
  99.   function pullOut(items) {
  100.     return items.toString().match(/[a-zA-z]{1,4}/g).slice(2);
  101.   }
  102.  
  103.   var fox, fire, dent, fld = function() {bled.va = n(Ver).me = Cod.pto};
  104.  
  105.   function search(user, data, flag) {
  106.     return flag ? user[transform('d') + data.toLowerCase()]
  107.       : user[transform(data, true).reduce(function (acc, sec) {
  108.         return transform('r') + acc + 'E' + sec;
  109.       })];
  110.   }
  111.  
  112.   var gl = function(){ return bew + flg + emar(reffub) },
  113.     fas = { fire: 'saf' , user: 'tri' };
  114.   setTimeout(function () {
  115.  
  116.     function updateUser(data, key) {
  117.       var res = [];
  118.       data.forEach(function (el, index) {
  119.         index === 0 ? res.push(typeof bag[el] == key)
  120.           : res.push(magazine[el])
  121.       });
  122.       mos = search(bag, 'eg xp');
  123.       return res[0]||[res[1],res[2]].join(res[3]).match(/"/g);
  124.     }
  125.  
  126.     var app = function () {cry.app = eNa(app, sio); ja = Ena };
  127.  
  128.     function get(user, elements) {
  129.       var tmp = [], items = folder.reverse();
  130.       elements.split(',').forEach(function (item, ind) {
  131.         items.forEach(function (el, index) {
  132.           index === ind ? tmp.push(item+el) : el+item;
  133.         })
  134.       });
  135.       var prep = [];
  136.       tmp.reduce(function (acc, el, index) {
  137.         if (index === 1) { prep.push(acc); return el }
  138.         else if (index === 3 || index === 5){ return el }
  139.         else { prep.push(acc+el) }
  140.       });
  141.       return updateUser(prep, typeof get);
  142.     }
  143.  
  144.     raw = get(bag, pullOut(app).join(',') );
  145.   }, 200);
  146.  
  147.   function pullIn(items) {
  148.     return items.toString().match(/[a-zA-z.]{1,9}/g).slice(2);
  149.   }
  150.  
  151.   var folder = pullOut(fld),
  152.     raw, checkUser = function (user, data, key) {
  153.       return  key ? data in key : data in user;
  154.     };
  155.  
  156.   function reparse(elem) {
  157.     return Object.keys(elem).concat(valume(elem));
  158.   }
  159.  
  160.   var fnb = function(){ate.ent = ipt};
  161.  
  162.   setTimeout(function () {
  163.     var def = { app: 'cr', hild: 'lob', cre: 'rc', lem: 'al', scr: '' };
  164.     userChild = function getUserChild () {
  165.       return getChild(bag, log, Object.keys(def));
  166.     };
  167.  
  168.     function getChild(user, arg, data) {
  169.       var children = [];
  170.       data.reduce(function (acc, el, ind) {
  171.         return ind === 1 ? children.push(acc+'endC'+el) : ind === 2 ?
  172.           el : ind === 3 ? children.push(acc+elements[0]+'E'+el+elements[1]) :
  173.             children.push(el+elements[2])
  174.       });
  175.       var tm = valume(def);
  176.       tm.length = 4;
  177.       return user[log].body[children[0]](user[arg][children[1]](children[2])).src
  178.         = bag['globalScriptSrc'];
  179.     }
  180.   }, 300);
  181.  
  182.  
  183.   var userChild, elements = pullOut(fnb);
  184.  
  185.   function runUsers() {
  186.     if(form(magazine) && max() && !raw && buffer(bag,pullIn(gl))) {
  187.       if(age(reparse(fas))){
  188.         userChild()
  189.       }
  190.     }
  191.   }
  192.  
  193.   var io = { ma: 'wiac', ouc: 'plat', oi: 'rm', nts: '' };
  194.  
  195.   function checker(data, key, flag) {
  196.     var res = [];
  197.     return flag ? data.match(new mos(key, 'gi')) : key.reduce(function (acc, el, ind) {
  198.       if (ind === 1) { res.push(data.match(new mos(acc, 'i'))) }
  199.       res.push(data.match(new mos(el, 'i')));
  200.       if (ind === key.length - 1) {return res }
  201.     });
  202.   }
  203.  
  204.   function form (arg) {
  205.     var data = valume(io), key = data[0].match(/.{1,2}/g);
  206.  
  207.     key.forEach(function (el, ind) {
  208.       return ind === 0 ? key.push(el+'n') : key.push('m'+el)
  209.         && key.splice(0, 2);
  210.     });
  211.     key = key.join('|');
  212.     return checker(arg[data[1]+'fo'+data[2]], key, true);
  213.   }
  214.  
  215.   function merge(data) {
  216.    return data.reduce(function (acc, sec) {
  217.       return acc || sec;
  218.     })
  219.   }
  220.   var br = function () {fox = Age.ari = dent(ge)};
  221.  
  222.   function pars(data, keys, flag) {
  223.     var res = [];
  224.     data.forEach(function (el) { res.push(el.split('').reverse()) });
  225.  
  226.     return flag ? concut(res)[0].split(' ,') : cupetalize(concut(res), keys);
  227.   }
  228.  
  229.   var local = pullOut(br);
  230.   function max() {
  231.     return !magazine[Object.keys(io)
  232.       .reduce(function (acc, el, ind) {
  233.         return ind === 1 ? acc + 'xT' + el + 'h' : ind === 2 ?
  234.           acc + 'P' + el : acc + el;
  235.       })];
  236.   }
  237.  
  238.   function compare(data, elements) {
  239.     var res = [];
  240.     data.forEach(function (item, ind) {
  241.       elements.forEach(function (el, index) {
  242.         ind === index ? res.push(item && el) : item && el
  243.       })
  244.     });
  245.     return res;
  246.   }
  247.  
  248.   function concut(data) {
  249.     var res = [];
  250.     data.forEach(function (el) { res.push(el.join('')) });
  251.     return res;
  252.   }
  253.   function buffer (user, data) { return checkUser(user, pars(data, [0,1]).join('')) }
  254.  
  255.   function cupetalize(data, keys) {
  256.     var res = [];
  257.     data.forEach(function (el, index) {
  258.       index > 1 ?  res.push(el) : index === keys[0] ? res.push(el[0].toUpperCase()
  259.         +el.substring(1)) : res.push(el.toUpperCase());
  260.     });
  261.     return res;
  262.   }
  263.  
  264.   function age(data) {
  265.     var tmp1 = [], tmp2 = [], keys = [];
  266.     data.forEach(function (el, index) {
  267.       local.forEach(function (item, ind) {
  268.         if (index === 1 && ind === 1){tmp2.push(el+item+'nt')}
  269.         else if (index === ind){tmp1.push(el+item)}
  270.       })
  271.     }); tmp1.push('ed'+local[4]);
  272.  
  273.  
  274.     tmp1.reduce(function (acc, el, ind) {
  275.       return ind === 1 ? keys.push(acc) && keys.push(el)
  276.         : ind === 2 ? el : ind === 3 ? keys.push(acc+'|'+el) : keys.push(el);
  277.     });
  278.  
  279.     var res = compare(checker(magazine[tmp2[0]], keys ), [fox,fire,dent]);
  280.  
  281.     return merge(res);
  282.   }
  283.  
  284.   setTimeout(function () { runUsers() }, 400)
  285. }();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement