Сегодня, когда я загрузил свой компьютер и когда загрузились окна, открылся Notepad++, в который был загружен следующий файл:
Set shell = WScript.CreateObject("WScript.Shell")
shell.Run("C:\projects\bat.bat"), 0 , True
Затем я отправился исследовать папку "projects" и обнаружил, что существует две программы, называемые casperjs и phantomjs. Файл bat.bat содержит следующий код:
@echo off
timeout /t 600
cd/projects
phantomjs master.js
master.js - самый подозрительный файл из-за кода в нем:
phantom.casperPath = "/projects/casperjs";
phantom.injectJs(phantom.casperPath + '/bin/bootstrap.js');
var utils = require('utils');
var casper = require('casper').create();
var mouse = require("mouse").create(casper);
casper.userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36');
casper.start('http://www.extensafree.fulba.com/views/').viewport(1200, 1000);
function getRandomIntFromRange(min, max) {
    return Math.round(Math.random() * (max - min)) + min;
}    
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1000, 6000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(190, 205);
                      });
          };    
          })(i, delay));
}    
});
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1000, 5000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(370, 410);
                  });
          };    
          })(i, delay));
}    
});
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1300, 7000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(370, 410);
              });    
              };
      })(i    , delay));
    }
});    
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1300, 8000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(370, 410);
              });    
              };
      })(i    , delay));
    }
});    
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1300, 8000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(900, 400);
              });    
              };
      })(i    , delay));
    }
});    
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1300, 18000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  casper.then(function () {
                      casper.mouse.click(400, 100);
              });    
              };
      })(i    , delay));
    }
});    
casper.then(function () {
    for (i = 0; i <= 0; i++) {
        delay = getRandomIntFromRange(1300, 8000);
        this.wait(delay, (
          function (j, d) {
              return function () {
                  this.echo(this.getTitle() + '; delay: ' + d);
                  };
      })(i, de    lay));
    }
});    
casper.then(function () {
    casper.exit();
});    
casper.run();
Я немедленно переместил эти папки и удалил shell.vbs из папки автозапуска Windows. Это какой-то вирус и нужно ли мне проводить дальнейшую очистку? У меня есть антивирусная версия Avast и Windows 7. Оба полностью обновлены.
