mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 13:05:26 +01:00 
			
		
		
		
	Output unicode not bytes in Python3.
This commit is contained in:
		| @@ -1598,7 +1598,8 @@ def audit(conf, sshv=None): | |||||||
| 	if err is None: | 	if err is None: | ||||||
| 		packet_type, payload = s.read_packet(sshv) | 		packet_type, payload = s.read_packet(sshv) | ||||||
| 		if packet_type < 0: | 		if packet_type < 0: | ||||||
| 			if payload == b'Protocol major versions differ.': | 			payload = payload.decode('utf-8') | ||||||
|  | 			if payload == u'Protocol major versions differ.': | ||||||
| 				if sshv == 2 and conf.ssh1: | 				if sshv == 2 and conf.ssh1: | ||||||
| 					audit(conf, 1) | 					audit(conf, 1) | ||||||
| 					return | 					return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis