mirror of git://anongit.mindrot.org/openssh.git
- (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
This commit is contained in:
parent
aeaf2bee19
commit
e9264973ad
10
ChangeLog
10
ChangeLog
|
@ -1,5 +1,11 @@
|
||||||
20020930
|
20020930
|
||||||
- (djm) Tidy contrib/, add Makefile for GNOME passphrase dialogs, tweak README
|
- (djm) Tidy contrib/, add Makefile for GNOME passphrase dialogs,
|
||||||
|
tweak README
|
||||||
|
- (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
|
||||||
|
|
||||||
20020927
|
20020927
|
||||||
- (djm) OpenBSD CVS Sync
|
- (djm) OpenBSD CVS Sync
|
||||||
|
@ -737,4 +743,4 @@
|
||||||
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
ok provos@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2486 2002/09/30 00:40:39 djm Exp $
|
$Id: ChangeLog,v 1.2487 2002/09/30 01:59:21 djm Exp $
|
||||||
|
|
4
compat.c
4
compat.c
|
@ -23,7 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: compat.c,v 1.64 2002/09/19 14:53:14 stevesk Exp $");
|
RCSID("$OpenBSD: compat.c,v 1.65 2002/09/27 10:42:09 mickey Exp $");
|
||||||
|
|
||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
|
@ -146,6 +146,8 @@ compat_datafellows(const char *version)
|
||||||
"OSU_1.5alpha3*", SSH_BUG_PASSWORDPAD },
|
"OSU_1.5alpha3*", SSH_BUG_PASSWORDPAD },
|
||||||
{ "*SSH_Version_Mapper*",
|
{ "*SSH_Version_Mapper*",
|
||||||
SSH_BUG_SCANNER },
|
SSH_BUG_SCANNER },
|
||||||
|
{ "Probe-*",
|
||||||
|
SSH_BUG_PROBE },
|
||||||
{ NULL, 0 }
|
{ NULL, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
3
compat.h
3
compat.h
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: compat.h,v 1.32 2002/04/10 08:21:47 markus Exp $ */
|
/* $OpenBSD: compat.h,v 1.33 2002/09/27 10:42:09 mickey Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2000, 2001 Markus Friedl. All rights reserved.
|
* Copyright (c) 1999, 2000, 2001 Markus Friedl. All rights reserved.
|
||||||
|
@ -54,6 +54,7 @@
|
||||||
#define SSH_BUG_DUMMYCHAN 0x00100000
|
#define SSH_BUG_DUMMYCHAN 0x00100000
|
||||||
#define SSH_BUG_EXTEOF 0x00200000
|
#define SSH_BUG_EXTEOF 0x00200000
|
||||||
#define SSH_BUG_K5USER 0x00400000
|
#define SSH_BUG_K5USER 0x00400000
|
||||||
|
#define SSH_BUG_PROBE 0x00800000
|
||||||
|
|
||||||
void enable_compat13(void);
|
void enable_compat13(void);
|
||||||
void enable_compat20(void);
|
void enable_compat20(void);
|
||||||
|
|
8
sshd.c
8
sshd.c
|
@ -42,7 +42,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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/dh.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
@ -424,6 +424,12 @@ sshd_exchange_identification(int sock_in, int sock_out)
|
||||||
|
|
||||||
compat_datafellows(remote_version);
|
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) {
|
if (datafellows & SSH_BUG_SCANNER) {
|
||||||
log("scanned from %s with %s. Don't panic.",
|
log("scanned from %s with %s. Don't panic.",
|
||||||
get_remote_ipaddr(), client_version_string);
|
get_remote_ipaddr(), client_version_string);
|
||||||
|
|
Loading…
Reference in New Issue