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

link|improve this question

67% accept rate
1  
Crossposting is frowned upon. serverfault.com/questions/190526/how-i-can-write-test-virus – Ignacio Vazquez-Abrams Oct 13 '10 at 14:35
feedback

closed as off topic by ChrisF, Diago Oct 13 '10 at 14:46

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

1 Answer

up vote 0 down vote accepted

It's already been done, take a look at the eicar test file. You can try renaming the extension then uploading it.

link|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:44
That's a good sign. Your upload script can detect when people simply change file extensions by looking at the MIME type. – John T Oct 13 '10 at 15:08
feedback

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