diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-09-28 15:14:46 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-09-28 15:14:46 +0200 |
commit | 260bd745cd3749b2d6fef6d855f537ce64012a37 (patch) | |
tree | 367d997f46b6772721c2b9a3aed48754b4c921ec | |
parent | 3ece965de9473769d55f8387df4c1c2dc961ba48 (diff) |
sshban: handle more messages
-rwxr-xr-x | sshban.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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.', ] } |