New Virus, and how to count the number of times it attacked.

Hi, I was wondering how to count up the number of times this new virus has hit my website...

/scripts/..%c1%1c../winnt/system32/cmd.exe?/c+dir
/_vti_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir
/_mem_bin/..%255c../..%255c../..%255c../winnt/system32/cmd.exe?/c+dir

This is the old code:
Code:
<?php
echo("Code red has tried to attack <font color='red'><b>");
echo `cat /usr/local/apache/logs/access_log | grep -c default.ida`;
echo("</b></font> times.");
$date = date("m-d-y H:i");
echo("&nbsp&nbspAccurate at $date");
?>
I was wondering how to modify it to count those three (and probably more since there's a lot of variences) and display it on the website... any help is appreciated! ^_^

Kiwi

 

 

 

 

Top