From c34e3792a1f27d286cfc2035d5740cc30d13b9f7 Mon Sep 17 00:00:00 2001 From: cy <1040641785@qq.com> Date: Sat, 18 Jul 2020 14:18:59 +0800 Subject: [PATCH] Implement security handshake for 33 RFB version reference resources https://datatracker.ietf.org/doc/rfc6143/?include_text=1 A.1. Differences in the Version 3.3 Protocol --- rdpy/protocol/rfb/rfb.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rdpy/protocol/rfb/rfb.py b/rdpy/protocol/rfb/rfb.py index b43cfa01..d53663c6 100644 --- a/rdpy/protocol/rfb/rfb.py +++ b/rdpy/protocol/rfb/rfb.py @@ -280,8 +280,12 @@ def recvSecurityServer(self, data): Server imposed security level @param data: well formed packet """ - #TODO!!! - pass + self._securityLevel = UInt32Be() + data.readType(self._securityLevel) + if self._securityLevel.value == SecurityType.VNC: + self.expect(16, self.recvVNCChallenge) + elif self._securityLevel.value == SecurityType.NONE: + self.sendClientInit() def recvSecurityList(self, data): """