mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 06:27:41 +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
|
@classmethod
|
||||||
def parse(cls, banner):
|
def parse(cls, banner):
|
||||||
# type: (text_type) -> SSH.Banner
|
# type: (text_type) -> SSH.Banner
|
||||||
valid_ascii = utils.is_ascii(banner)
|
valid_ascii = utils.is_print_ascii(banner)
|
||||||
ascii_banner = utils.to_ascii(banner)
|
ascii_banner = utils.to_print_ascii(banner)
|
||||||
mx = cls.RX_BANNER.match(ascii_banner)
|
mx = cls.RX_BANNER.match(ascii_banner)
|
||||||
if mx is None:
|
if mx is None:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user