summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-09-28 15:14:46 +0200
committerAnton Khirnov <anton@khirnov.net>2020-09-28 15:14:46 +0200
commit260bd745cd3749b2d6fef6d855f537ce64012a37 (patch)
tree367d997f46b6772721c2b9a3aed48754b4c921ec
parent3ece965de9473769d55f8387df4c1c2dc961ba48 (diff)
sshban: handle more messages
-rwxr-xr-xsshban.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sshban.py b/sshban.py
index 11b5d4b..82d0d5c 100755
--- a/sshban.py
+++ b/sshban.py
@@ -34,9 +34,14 @@ regexes = {
r'^Failed password .* from (\S+)',
r'^PAM .* authentication failure .* rhost=(\S+)',
r'^error: maximum authentication attempts exceeded\b.* from (\S+)',
+ r'^banner exchange: Connection from (\S+) port \d+: invalid format',
],
IFF_GRAY : [
r'^Received disconnect from (\S+)',
+ r'^Connection reset by (\S+) port \d+',
+ r'^Connection closed by authenticating user \S+ (\S+) port \d+ \[preauth\]',
+ r'^Connection closed by (\S+) port \d+ \[preauth\]',
+ r'^Unable to negotiate with (\S+) port \d+: no matching key exchange method found.',
]
}