Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

C++ Hello World.exe Virus


TROY's Avatar
The Krazy Bastard
0 0

I was making a hello world program in C++ on Dev C++, it was just a simple hello world program, that i learnt from a video on youtube, so i copied it to see what it was like, mess around with it, edit it etc. This is the code:

1 #include <iostream> 2 using namespace std; 3 4 int main(void) 5 { 6 cout <<"Hello World!"; 7
8 }

So i compiled it and ran it, and to my suprise AVG's resident shield gave me a multiple threat detection, 3 infections to be exact, saying this for all three of them:

Infection List: 1 File Name: C:\Users\Matt Sutton\Desktop\Hello World.exe Threat name: Trojan Horse Generic12.PNY Detected on open.

Im not really woried because i know its obviously not a virus, but what's going on with this? lol, Thanks for your help


ghost's Avatar
0 0

Probably just your AV going crazy over nothing. Put all your C++ stuff into a folder and add that folder to your AV's exception list (and just make sure that nothing that could be a virus goes in there without being scanned first).


ghost's Avatar
0 0

mastergamer wrote: Probably just your AV going crazy over nothing. Put all your C++ stuff into a folder and add that folder to your AV's exception list (and just make sure that nothing that could be a virus goes in there without being scanned first).

This. AVG gives the most false positives I've ever seen in an AV software. Try and compile it under a different name and see if you still return the same results.

I say that because IIRC, there's a virus/trojan or something malicious that was released under the name 'hello world'.


TROY's Avatar
The Krazy Bastard
0 0

Ahhh, thanks, i suppose its just AVG being overprotective then