What is the meaning of this Script?

Discussion in 'Programming' started by KingCobra, Dec 18, 2013.

  1. #1
    Dear friends,

    Hackers hacked my web server and added the following script inside my websites footer.html.
    I don't know the meaning of the script or whats its execute. If you know please let me know.

    <script>
    function rand(min, max){
      min = parseInt(min);
      max = parseInt(max);
      return Math.floor( Math.random() * (max - min + 1) ) + min;
    }
        for(var i=0;i<250;i++){
            var newScript = document.createElement('img');
            newScript.src = 'http://worldofplayers.ru/members/'+rand(11111,70000)+'/';
        }
    
        for(var i=0;i<500;i++){
            var newScript = document.createElement('img');
            newScript.src = 'http://worldofplayers.ru/threads/'+rand(11111,35000)+'/';
        }
    
        for(var i=0;i<500;i++){
            var newScript = document.createElement('img');
            newScript.src = 'http://worldofplayers.ru/forums/'+rand(111,800)+'/';
        }
    
    </script>
    Code (markup):

     
    KingCobra, Dec 18, 2013 IP
  2. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #2
    They are creating 1250 images from the domain
    'http://worldofplayers.ru'
    Code (markup):
    . I'm guessing they have some tracking code or something.
     
    HuggyStudios, Dec 18, 2013 IP
  3. KingCobra

    KingCobra Well-Known Member

    Messages:
    289
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #3
    @HuggyStudios , thank you for your reply.
    What type of image? Why they are doing this?
     
    KingCobra, Dec 18, 2013 IP
  4. HuggyStudios

    HuggyStudios Well-Known Member

    Messages:
    724
    Likes Received:
    20
    Best Answers:
    26
    Trophy Points:
    165
    #4
    I don't know why exactly as I'm not going to go to that domain name as they are probably trying to load some malware or something.
     
    HuggyStudios, Dec 18, 2013 IP
  5. Priyaasharma9595

    Priyaasharma9595 Greenhorn

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    they are creating images from website..
     
    Priyaasharma9595, Dec 26, 2013 IP
  6. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #6
    The purpose of the script is to generate several requests to an image file which is actually random posts/threads/members profiles on a forum to massively boost the hit counter so members are tricked in to thinking the message board is MUCH busier than it is.

    Clever. Retarded but clever... Harmless too...but retarded :)
     
    NetStar, Dec 27, 2013 IP