Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. 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

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

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

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

1 Answer 1

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.

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: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
add comment

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