c++ - I accidentally created a virus. Just how is this a virus? -


so doing experimenting strings, see whether store string in variable , display contents of variable onto screen. apparently, antivirus wasn't happy that.

here code:

#include <iostream> #include <string> using namespace std;  int main() {     string boy = "hello";     cout << boy << endl;      system("pause");     return 0; } 

active software may cause harm computer or data has been detected. detected: trojan.win32.shutdowner.aadw

just how on earth did manage that? first year in computer science , enumerations far we've gotten.

is virus or antivirus being 'paranoid'? or in other words mistaking virus due loophole or another?

p.s. i'm using devc++

it antivirus being paranoid. antivirus programs largely based on byte signatures known virus code (some rely on heuristic analysis of runtime behavior). program compiled binary code happened contain random byte signature antivirus recognized known virus, that's all. not unusual antivirus program report false positives once in awhile, on development machines. can add source/output folder(s) antivirus program's list of exceptions not scan them anymore.


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -