diff options
author | Damien Miller <djm@mindrot.org> | 2002-09-30 11:59:21 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2002-09-30 11:59:21 +1000 |
commit | e9264973ad26e4ee2acebf01126e28a712cca2a8 (patch) | |
tree | 54efe8f53ce21d3697fd921dd7411213a022f608 /sshd.c | |
parent | aeaf2bee192f612bfea644bd1fda2596a7496a04 (diff) | |
download | openssh-git-e9264973ad26e4ee2acebf01126e28a712cca2a8.tar.gz |
- (djm) OpenBSD CVS Sync
- mickey@cvs.openbsd.org 2002/09/27 10:42:09
[compat.c compat.h sshd.c]
add a generic match for a prober, such as sie big brother;
idea from stevesk@; markus@ ok
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -42,7 +42,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.259 2002/09/25 15:19:02 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.260 2002/09/27 10:42:09 mickey Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -424,6 +424,12 @@ sshd_exchange_identification(int sock_in, int sock_out) compat_datafellows(remote_version); + if (datafellows & SSH_BUG_PROBE) { + log("probed from %s with %s. Don't panic.", + get_remote_ipaddr(), client_version_string); + fatal_cleanup(); + } + if (datafellows & SSH_BUG_SCANNER) { log("scanned from %s with %s. Don't panic.", get_remote_ipaddr(), client_version_string); |