Compare commits

...

2 Commits

View File

@ -161,7 +161,7 @@ sub parser {
m/ ($re_host) /gcix && do {
$host = $1;
};
} elsif($string =~ m/banner exchange: Connection from $re_host port [0-9]{1,6}: (invalid format|Permission denied|could not read protocol version)/) {
} elsif($string =~ m/banner exchange: Connection from $re_host port [0-9]{1,6}: (invalid format|Permission denied|could not read protocol version|Broken pipe)/) {
$_ = $string;
$hostile = 1;
$reply = 'Error during banner exchange';
@ -169,6 +169,14 @@ sub parser {
m/ ($re_host) /gcix && do {
$host = $1;
};
} elsif($string =~ m/Authentication error for( illegal user|) $re_user from $re_host/) {
$_ = $string;
$hostile = 1;
$reply = 'Authentication error';
PARSER:
m/from\ ($re_host)$/gcix && do {
$host = $1;
};
} else {
$reply = 'No match for '.$string;
}