在使用c#代码上传到Web服务器之前,如何识别文件是否已被损坏或被病毒感染 [英] How to identify whether file is corrupted or infected by virus before uploading to webserver using c# code

查看:269
本文介绍了在使用c#代码上传到Web服务器之前,如何识别文件是否已被损坏或被病毒感染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否有任何内置函数可以使用c#或vb.Net从我的驱动器中列出损坏的文件或受病毒感染的文件?

如果没有,那么这个替代解决方案是什么,

请帮帮我..



谢谢,

Hi,
Whether any built-In function is available for listing out the corrupted files or virus infected files from my drive by using c# or vb.Net?
If not available then what is the alternative solution to do this,
Please help me out..

Thanks,

推荐答案

你不能在不使用病毒扫描程序的情况下检测病毒感染的文件 - 虽然在技术上可以自己扫描文件中的病毒签名,但是现有的病毒数量减少了很多任务。此外,通过每日发布新的或经过修改的病毒样本来保持自己的检测系统最新的工作可能会使它成为一项全职工作。



使用病毒扫描程序,保持最新状态,或者不允许上传任何类型的可执行文件。
You cannot detect virus infected files without using a virus scanner - while it is technically feasible to scan files for virus signatures yourself, the sheer number of viruses in existence mitigates against it being a simple task. In addition, the work involved in keeping your own detection system up-to-date with the daily release of new or modified virus samples would probably make it a full time task.

Use a virus scanner, kept up to date, or do not permit the upload of executable files of any type.


这篇关于在使用c#代码上传到Web服务器之前,如何识别文件是否已被损坏或被病毒感染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆