Change banner exchange to include any of the 3 known messages.

This commit is contained in:
2024-03-12 17:14:20 +01:00
parent 03938d56e4
commit 8394506f4f

View File

@ -161,10 +161,10 @@ 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/) {
} elsif($string =~ m/banner exchange: Connection from $re_host port [0-9]{1,6}: (invalid format|Permission denied|could not read protocol version)/) {
$_ = $string;
$hostile = 1;
$reply = 'Invalid format during banner exchange';
$reply = 'Error during banner exchange';
PARSER:
m/ ($re_host) /gcix && do {
$host = $1;