From 76f49d40160c6304da6206159ea09b3ccaef1d8e Mon Sep 17 00:00:00 2001 From: Andris Raugulis Date: Thu, 6 Oct 2016 03:42:43 +0300 Subject: [PATCH] Output unicode not bytes in Python3. --- ssh-audit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh-audit.py b/ssh-audit.py index 0c6ac11..e9243ec 100755 --- a/ssh-audit.py +++ b/ssh-audit.py @@ -1598,7 +1598,8 @@ def audit(conf, sshv=None): if err is None: packet_type, payload = s.read_packet(sshv) 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: audit(conf, 1) return