Enfin il est un peu foireux leur script :
$accesslog="/var/log/httpd/access_log";
echo "This sytem has been attacked this month by the Code Red worm a total of :";
system("grep default.ida ". $accesslog ." | awk '{print 1ドル}' | wc -l");
print " times.";
print "<br>Out of the above number a total of ";
system("grep default.ida ". $accesslog ." | awk '{print 2ドル}' | sort | uniq | wc -l ");
print " were from unquie ips."
On peut rajouter un |`date +%b` si le access_log fait plus d'un mois.
# Mouais....
Posté par Ramón Perez (site web personnel) . En réponse à la dépêche Si j'avais fait confiance à MS .... Évalué à 1.
$accesslog="/var/log/httpd/access_log";
echo "This sytem has been attacked this month by the Code Red worm a total of :";
system("grep default.ida ". $accesslog ." | awk '{print 1ドル}' | wc -l");
print " times.";
print "<br>Out of the above number a total of ";
system("grep default.ida ". $accesslog ." | awk '{print 2ドル}' | sort | uniq | wc -l ");
print " were from unquie ips."
On peut rajouter un |`date +%b` si le access_log fait plus d'un mois.