How can i make an antivirus in c++ or vbasic

Programming, for all ages and all languages.
Post Reply
nuno_silva_pt

How can i make an antivirus in c++ or vbasic

Post by nuno_silva_pt »

How can i make an antivirus in c++ or vbasic
Whatever5k

Re:How can i make an antivirus in c++ or vbasic

Post by Whatever5k »

The way a AntiVirus program works is (in my oppinion) quite boring but very exhausting...
It has a database with informations about every virus (that is: file size, file name, location, etc). Now when scanning a file, it searches through the database and compares it with the file attributes (file size, file name, etc.).
Much work and not very interesting as I think ;)
Mastermind

Re:How can i make an antivirus in c++ or vbasic

Post by Mastermind »

What's the point? There are many antivirus software out in the world that you could use. Besides, programming one would be very tedious and time-wasting
fstream

Re:How can i make an antivirus in c++ or vbasic

Post by fstream »

i do agree with u mastermind that there are tons of anti-virii stuff out there, but i wouldnt discourage anyone by saying why bother. The best way to learn to do something is to do it yourself. Sure it may take a while, but you learn A LOT, more so than if you didnt do anything...
Haik

Re:How can i make an antivirus in c++ or vbasic

Post by Haik »

I made an antivirus program once. It had an ini file with data something like this:
[av]
number=3
1=subsevengold
2=someother
3=someother
[0]
name=SubSeven Gold someversion
crop=19965
cropmd5=ndasjkJkJBDkj98429KJd84
[1]
...
[2]
...

So the antivirus program would do this:

+should check file
start loop "checkvir" for >ini group "av" item "number"< loops
+on loop "checkvir"
crop file to >ini group str$(loopstep) item "crop"<
+on loop "checkvir"
+cropped file's md5 = ini group str$(loopstep) item "md5"
do some virus warning

I don't remember it fully, but that's how it should go.
Post Reply