Fix incorrect check for reserved data prefix in ConnectionTcpObfuscated

This commit is contained in:
Dmitry D. Chernov 2019-02-11 05:47:09 +10:00
parent de84bf08bf
commit c39cc06908

View File

@ -28,7 +28,7 @@ class ConnectionTcpObfuscated(ConnectionTcpAbridged):
keywords = (b'PVrG', b'GET ', b'POST', b'\xee\xee\xee\xee')
while True:
random = os.urandom(64)
if (random[0] != b'\xef' and
if (random[0] != 0xef and
random[:4] not in keywords and
random[4:4] != b'\0\0\0\0'):
break