Antivirus Detection

Hi. I am a new C++ programmer and I recently started trying out windows.h stuff. However,my antivirus (MalwareBytes) Keeps flagging it. What my program does is that is just makes the mouse fly in random directions.Can anyone give me an explanation why my antivirus does that? Here is a sample of my scan at virustotal. https://www.virustotal.com/en/file/e8f42a6e79c317bd0569c52bfd8485d7d5335750a1e7eb604ffd5477580cc51c/analysis/1386232510/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include <windows.h>
using namespace std;
int main (int argc, char argv){
    FreeConsole(); //Makes the console go away. Nuff said
    int X,Y;
    int stuff;
    for (stuff = 1; stuff < 1000; stuff++) //For stuff to be 1,It must be less 1k
    {
    X = rand()%1025; //Randomizing positions
    Y = rand()%969;
    SetCursorPos(X , Y );
    Sleep (100);
    }    
    return 0; //It's an infinite loop. Pretty simple
}
Last edited on
Topic archived. No new replies allowed.