in reply to How can I stop webdav exploits from hitting my server?
#!/usr/bin/perl -w # remove annonying x90 probe use strict; my $log = "access_log"; open F,$log or die $!; open W,">tmp.log" or die $!; while (<F>) { unless (/(x90|cmd\.exe|root\.exe|default\.ida)/) { print W $_; } } close F; close W; rename "tmp.log",$log;
|
|---|