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
Asked
Active
Viewed 1,837 times
3 Answers
12
Get the EICAR test vector and use that.

Ignacio Vazquez-Abrams
- 45,939
- 6
- 79
- 84
-
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
-
http://en.wikipedia.org/wiki/EICAR_test_file – Bart Silverstrim Oct 13 '10 at 14:52
3
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.
This comes from the EICAR Anti Malware Test file page: https://www.eicar.org/?page_id=3950

slolife
- 375
- 1
- 5
- 15
1
You could download the EICAR test virus pattern to a file and rename the extension to what you need.

Linker3000
- 668
- 1
- 5
- 14
-
i try it but when i test it it give me the mime file invalied ??? – Mohammad AL-Rawabdeh Oct 13 '10 at 14:37