Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 07-12-2009, 10:34 PM   #1 (permalink)
 
Newb Techie

Join Date: Jul 2009

Posts: 1

szavala is on a distinguished road

Default Need Help on Batch file

I am working on creating a batch file to test our contingency plan operations for our Antivirus software on our client systems and proper response from our users when a threat has been detected by the AV software within our network. I know how to create a basic batch file to create a file with text to the local client workstation drive. The problem I am having is I am trying to create a file with the following text written to the file by "EICAR":

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

This will trigger the Antivirus on the clients machine. This is what I am needing to test our contingency plans quarterly. I am having trouble creating this batch file. Can someone with good knowledge of batch files give me a hand with this or offer other alternatives? My operating system is XP Pro.

Thank you in advance.
szavala is offline  
Old 07-13-2009, 09:21 AM   #2 (permalink)
 

Join Date: Jul 2005

Location: England

Posts: 2,159

kmote has a spectacular aura aboutkmote has a spectacular aura about

Default Re: Need Help on Batch file

So you want the text

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

put in a file called EICAR

I'm not going to ask why but here goes
Code:
echo X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* >EICAR
or

Code:
echo X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* >>EICAR
if you want to append.
__________________
MSI P43 Neo|Enermax Pro82+ 425W|E5200|silent 8500GT|250GB Samsung spinpoint F1|Samsung SATA DVD RW|4GB Corsair|Antec SOLO|openSUSE11


There are in order of increasing severity: lies, darn lies, statistics, and computer benchmarks. - diskinfo man page
kmote is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
logs. please analyze myr707 HijackThis Logs (finished) 5 06-11-2009 02:31 PM
wincodecpro infestation clcrutch Virus - Spyware Protection / Detection 16 05-18-2009 07:09 PM
Installing Ubuntu. 95BlackGA Linux, BSD, other *nixes & Open Source Software 1 10-16-2008 09:44 PM
WTF is a Bad Block? MikesCreation Hardware Troubleshooting 18 02-24-2008 09:31 PM
Another Hijack Log boo HijackThis Logs (finished) 17 06-26-2007 12:30 PM