Asp.net upload virus scan
You should be asking this question in McAfee Technical Support forum. Most of AV engines support command line usage, which means you, can do many operations using command line parameters. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Visual C. For more details, you can check here. Implementing ClamAV Antivirus scan on uploaded files in.
NET application Now we are ready to run on-demand scans and anything from code using nClam. Add ClamAV server and port to config file. Read file from File upload and convert to byte array. ToInt32 this. Clean: this. LogInformation "The file is clean!
RawResult ; break ; case ClamScanResults. VirusDetected: this. LogError "Virus Found! VirusName ; break ; case ClamScanResults. Error: this. LogError "An error occured while scaning the file! Unknown: this. LogError "Unknown scan result while scaning the file! This is a sample file used to test the response of anti-virus software. You may need to pause you antivirus protection on your device to perform this activity.
Save your attachment there, and attempt to read it after it's been saved. If it can't be read after it's been saved there, or if it doesn't exist there anymore, then it is a potential virus that needs to be examined further. Another approach is to scan the upload folder and check if file was deleted by antivirus - the feedback won't be instant either.
Final pricing has not been determined yet, but it will be suitable for commercial services, vs virustotal which is intended only for personal, non-commercial use. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Learn more. Asked 9 years, 9 months ago. Active 9 years, 2 months ago. Viewed 2k times. Improve this question. Add a comment. Active Oldest Votes.
0コメント