简体   繁体   中英

Program I just made is apparently a virus? C++

Okay so I just made a C++ program that is basically a notebook, you write stuff in it and it saves it to a .dat file and then you can read it later.

I compiled it with Microsoft Visual C++ and now I sent it to a friend and it's saying that it is a virus? I scan it online and it also says that it's a virus. I don't know why this is happening, as I literally just used some if/else statements, created some strings and used a couple getlines. (and fstream to create the .dat files).

This is the virus report: https://www.virustotal.com/en/file/a1b72280a32915429607fd5abeef1aad4f8310867df1feb7707ea0f7a404026e/analysis/1455735299/

Here is my code. (Its 400+ lines). And I'm almost certain there's nothing wrong with it. http://pastebin.com/ZwJZrRSu

Any idea why this is happening?

Most probably your PC is already infected by a virus, which adds itself to any executable it can find on your machine. That would easily explain this behavior. Try to compile the same program on PC that is clean for sure and check your PC by antivirus.

我不确定,但我认为是因为你导入了 kernel32.dll 再次,没有源很难说也看看报告中的文件详细信息

报告说它包含 Razy 木马,可能是它感染了文件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM