Is there a free command line / programmtically usable up-to-date anti-virus / malware scanner?

I'm looking for a free anti-virus / malware / spyware scanner which can be used from within my program.

So I need it to either run from the command line or via an api or something.

Also need to be able to run with vb.net 2005 prog
mindwarpltdAsked:
Who is Participating?
 
chqshaitanConnect With a Mentor Commented:
you can download a harmless virus called eicar, it is used for testing basic av functionality.

mail posting on the error codes : http://lurker.clamav.net/message/20070209.130308.4cf37458.en.html

eicar virus download : http://www.eicar.org/anti_virus_test_file.htm
0
 
latchwaysCommented:
0
 
mindwarpltdAuthor Commented:
It doesn't look very up-to-date

http://www.sdfix.org/
0
Worried about phishing attacks?

90% of attacks start with a phish. It’s critical that IT admins and MSSPs have the right security in place to protect their end users from these phishing attacks. Check out our latest feature brief for tips and tricks to keep your employees off a hackers line!

 
shanyuenCommented:
There's many free anti virus out there that have command line scanner included.
Ex: clamav, PAVCL, trend sysclean, etc
0
 
chqshaitanCommented:
clamav is open source, and is being actively maintained.

While some of the 'free' antivirus are free for general use, i suspect that to use them in your own program may require a fee or some sort of royalty.
0
 
mindwarpltdAuthor Commented:
Ok I've installed clamav which had two options provide a key or use free.

Now I can't find any help on use it at the command line ?
0
 
chqshaitanCommented:
What operating system are you looking at using it under? windows , linux etc etc?
0
 
mindwarpltdAuthor Commented:
Yes windows...

I think these instructions are out of date, I don't have that program, these are the only exe files  have.

C:\Program Files\ClamAV for Windows\ips.exe
C:\Program Files\ClamAV for Windows\2.0.14\agent.exe
C:\Program Files\ClamAV for Windows\2.0.14\creport.exe
C:\Program Files\ClamAV for Windows\2.0.14\ipsupporttool.exe
C:\Program Files\ClamAV for Windows\2.0.14\iptray.exe
C:\Program Files\ClamAV for Windows\2.0.14\uninstall.exe
C:\Program Files\ClamAV for Windows\2.0.14\updater.exe
C:\Program Files\ClamAV for Windows\tetra\driverctrl.exe
C:\Program Files\ClamAV for Windows\tetra\setloadorder.exe

Hmmm
0
 
mindwarpltdAuthor Commented:
Ahh I had the wrong program.

Got the right one now.

However, I'm going to need to gain the results of the scan
0
 
mindwarpltdAuthor Commented:
This is what I have so far which scans, closes but doesn't produce a log.

"C:\Program Files\ClamWin\bin\ClamWin.exe" --mode=scanner --path="D:\myfile.exe" --log="c:\clamavlog.txt" --close
0
 
chqshaitanCommented:
the program should return a code of 0 if the file is virus free, or 1 if it is infected. do you want more results than this?
0
 
mindwarpltdAuthor Commented:
Oh does it.

No that would be fine.

Can I get it not to show the gui ?

I want to run it from my program and make it as fast as possible.
0
 
chqshaitanCommented:
nope, as the gui is a wrapper to the command line as far as i know bud
0
 
mindwarpltdAuthor Commented:
Unfortunately I have no way of testing the 0 or 1 result, as I don't want to play with viruses, is this documented somewhere?
0
 
mindwarpltdAuthor Commented:
Excellent
0
 
shanyuenCommented:
You accepting answer that not related with your question.
Iam the first one that preferring with clamav,etc.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.