diff --git a/lib/ssh_parser.pm b/lib/ssh_parser.pm index bd3147b..6cef5db 100644 --- a/lib/ssh_parser.pm +++ b/lib/ssh_parser.pm @@ -183,6 +183,14 @@ sub parser { $reply = 'Reverse check failed'; } elsif($string =~ m/but this does not map back to the address/) { $reply = 'Reverse map failure'; + } elsif($string =~ m/Timeout before authentication for connection from/) { + $_ = $string; + $hostile = 1; + $reply = 'Timeout before authentication'; + PARSER: + m/from\ ($re_host)\ to\ ($re_host),\ pid/gcix && do { + $host = $1; + }; } else { $reply = 'No match for '.$string; }