mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-16 13:35:39 +01:00
Banner should be in printable ASCII, not the whole ASCII space.
This commit is contained in:
parent
5bb0ae0ceb
commit
6c4b9fcadf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user