Skip to content

Commit

Permalink
Merge pull request dgerzo#3 from yasuhirokimura/handle_fatal_unable_t…
Browse files Browse the repository at this point in the history
…o_negotiate_with_message

Handle "fatal: Unable to negotiate with" log message.
  • Loading branch information
dgerzo authored Feb 10, 2018
2 parents f17b79e + f0bff08 commit fe9ffe9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bruteforceblocker.pl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
/.*Did not receive identification string from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
/.*Bad protocol version identification .* from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn})$/i ||
/.*User.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}) not allowed because.*/i ||
/.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) {
/.*error: maximum authentication attempts exceeded for.*from ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i ||
/.*fatal: Unable to negotiate with ($work->{ipv4}|$work->{ipv6}|$work->{fqdn}).*/i) {

my $IP = $1;
if ($IP =~ /$work->{fqdn}/i) {
Expand Down

0 comments on commit fe9ffe9

Please sign in to comment.