Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have a website and in website some people can upload files .... and when user upload file it must scan from virus by antivirus ... so i need test virus have the following extention (.doc ,jpg, png, jpeg, gif, doc, docx, pdf, xls, xlsx ) to sure the antivirus work correctly

share|improve this question

3 Answers 3

up vote 12 down vote accepted

Get the EICAR test vector and use that.

share|improve this answer
    
i try it but when i test it it give me the mime file invalied ??? –  Mohammad AL-Rawabdeh Oct 13 '10 at 14:36
    
Try another location to download it from. –  Bart Silverstrim Oct 13 '10 at 14:40
    
i try but the problem is when the website check the header of the file it reject it ... maybe when but the code of EICAR he convert it to binary code –  Mohammad AL-Rawabdeh Oct 13 '10 at 14:47
    
file->save as...or find a site from an AV vendor that lets you download it as a zip or other format (like text, since it's just a text string) and save it as such. –  Bart Silverstrim Oct 13 '10 at 14:50
    

You don't need to download it. Just open up notepad and paste the following into the file:

X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

Then, save it as whatever file you want. You'll probably need to temporarily turn off your AV to handle the file though.

share|improve this answer

You could download the EICAR test virus pattern to a file and rename the extension to what you need.

share|improve this answer
    
i try it but when i test it it give me the mime file invalied ??? –  Mohammad AL-Rawabdeh Oct 13 '10 at 14:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.