Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Virus Tester

by ProgrammingAce (Sexton)
on Feb 24, 2002 at 04:40 UTC ( #147143=sourcecode: print w/ replies, xml ) Need Help??

Category: Utility Scripts
Author/Contact Info Ace@shakybill.com
Description: This little perl script will see if your antivirus software is paying attention by writing a file called aseicar.com to your C: drive. This file contains a small string that is harmless. Your antivirus program should register the new file as the "Test-String Virus". I repeat, THIS FILE IS HARMLESS!
#!/usr/bin/perl

#This little perl script will see if your antivirus software is
#paying attention by writing a file called aseicar.com to your 
#C: drive. This file contains a small string that is harmless. 
#Your antivirus program should register the new file as 
#the "Test-String Virus". I repeat, THIS FILE IS HARMLESS! 

open (FILE, ">c:\\aseicar.com");

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

print FILE $A;

close FILE;

Comment on Virus Tester
Download Code
Replies are listed 'Best First'.
Re: Virus Tester
by Anonymous Monk on Nov 27, 2004 at 15:13 UTC
    X50 !P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*

Back to Code Catacombs

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: sourcecode [id://147143]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2015-07-28 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls