mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 21:15:27 +01:00 
			
		
		
		
	Banner should be in printable ASCII, not the whole ASCII space.
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis