Codebase list logwatch / 4c73559
Imported Upstream version 7.4.0+svn20111018rev68 Willi Mann 12 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
496496 if (!$ignore_error_hacks) {
497497 for (my $i = 0; $i < @exploits; $i++) {
498498 # print "$i $exploits[$i] $field{lc_url} \n";
499 if ($field{lc_url} =~ /$exploits[$i]/i) {
499 if ( ($field{lc_url} =~ /$exploits[$i]/i) &&
500 !((defined $ignoreURLs) && ($field{url} =~ /$ignoreURLs/)) &&
501 !((defined $ignoreIPs) && ($field{client_ip} =~ /$ignoreIPs/)) ) {
500502 $hacks{$field{client_ip}}{$exploits[$i]}++;
501503 $total_hack_count += 1;
502504 $ban_ip{$field{client_ip}} = " ";
103103 $SkipError = 1 if $ThisLine =~ /\[<[\da-f]+>\] error_exit\+0x/;
104104 # These are informative, not errors
105105 $SkipError = 1 if $ThisLine =~ /PCIe errors handled by OS/;
106 $SkipError = 1 if $ThisLine =~ /GHES: Generic hardware error source: \d notified via .* is not supported/;
106107 $Errors{$errormsg}++ if ( (! $SkipError) || ($Detail > 8));
107108 }
108109 # OTHER