Advertisement
StanislavPipa

Obfuscation 3.v2

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