Virus scan document before uploading

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I have a vb.net in winforms application using webservices\ remoting to
upload documents to a remote webserver. And before these are saved to the
webservice i want to check them for any kind of viruses i.e do a virus scan,
how can i do that, have any body done this before.

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that server
that i can use for this purpose.

thanks
sameer
 
At the worst case you may want to spawn a new process with the virus scanner
passing the file to be scanned as the argument for it. Later check the log.
Many anti-virus apps provide a command line version with options to create
log files and specify file(s) to be scanned.

Hope this helps?

Hi all,

I have a vb.net in winforms application using webservices\ remoting to
upload documents to a remote webserver. And before these are saved to the
webservice i want to check them for any kind of viruses i.e do a virus scan,
how can i do that, have any body done this before.

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that server
that i can use for this purpose.

thanks
sameer
 
When you save the uploaded file to a location monitored by your on-access
scanner, the virus scanner should be triggered automatically. (Because it's
no different than having some other program writing virus file to disk)

So just use whatever antivirus package your company is using.

You can test this functionality by uploading an "eicar" (try lookup the word
in search engines) file and see if your server's antivirus detect and
quantine it automatically. If it is then you're safe.
 
As an additional note, certain onaccess virus scanner like McAfee's don't
scan inside compressed files by default, make sure you turn it on for
protection. (As it's possible to upload virus containing compressed files
like .zip)
 
thanks for your reply guys,

when i said "And before these are saved to the webservice i want to check
them ..." i mean to say webserver.

Lets say i am not saving these documents on the file system of the
webserver but in sql server database and below is the way this is gong to
happned
* get chunks of data from the client machine.
* save that chunk in the databse and wait for the next chunk of data to be
send by the client application.

which mean the whole document is send over in chunks and not in one shot(
seems there are quites some advantages to this) and as it comes in, it is
saved to the database, so here are the questions

1. if this is the case then how will i do the virus scan? Do i have to keep
aggregatring all the chunks on the webserver some how and then scan the
document when it is done.

2. How will i virus scan this in memory file with the antivirus installed on
the local machine? I was told that when i save this file to the filesystem
the antivirus prompts if it has a virus but in my case here, iti s gong
stright from the memory to the database and not being store on the filesystem
at all. Please suggest.

thanks
Sameer
 
guys, i am back with another question

i have decided to store my documents in the database, but before that i want
to scan for viruses and some of you had mentioned that the antivrus comes
with a console utility appilcation that i can use to pass my stream of
document through it and it will let me know if there is a virus or not. If
anybody know for sure which antivirus has this console utility please let me
know and i will purchase that antivirus.

wiatni for your reply
sameer
 
Back
Top