From 6c4b9fcadfe7041be4a0620d1e6e59c3c396e27d Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Wed, 2 Nov 2016 18:25:13 +0200 Subject: [PATCH] Banner should be in printable ASCII, not the whole ASCII space. --- ssh-audit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh-audit.py b/ssh-audit.py index 9100a31..958d995 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1005,8 +1005,8 @@ class SSH(object): # pylint: disable=too-few-public-methods @classmethod def parse(cls, banner): # type: (text_type) -> SSH.Banner - valid_ascii = utils.is_ascii(banner) - ascii_banner = utils.to_ascii(banner) + valid_ascii = utils.is_print_ascii(banner) + ascii_banner = utils.to_print_ascii(banner) mx = cls.RX_BANNER.match(ascii_banner) if mx is None: return None