Link to home
Start Free TrialLog in
Avatar of mindwarpltd
mindwarpltd

asked on

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
Avatar of latchways
latchways

Avatar of mindwarpltd

ASKER

It doesn't look very up-to-date

http://www.sdfix.org/
Avatar of Budi Santoso
There's many free anti virus out there that have command line scanner included.
Ex: clamav, PAVCL, trend sysclean, etc
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.
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 ?
What operating system are you looking at using it under? windows , linux etc etc?
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
Ahh I had the wrong program.

Got the right one now.

However, I'm going to need to gain the results of the scan
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
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?
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.
nope, as the gui is a wrapper to the command line as far as i know bud
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?
ASKER CERTIFIED SOLUTION
Avatar of chqshaitan
chqshaitan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent
You accepting answer that not related with your question.
Iam the first one that preferring with clamav,etc.