From 96ba65aba046499576d45d4564ff5b43b380b3c7 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Tue, 23 Jul 2019 10:26:58 +0500 Subject: [PATCH] add one more reserved string in the nonce beginnings --- mtprotoproxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 5c9eaa2..5d99646 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -771,7 +771,8 @@ async def open_connection_tryer(addr, port, limit, timeout, max_attempts=3): async def do_direct_handshake(proto_tag, dc_idx, dec_key_and_iv=None): RESERVED_NONCE_FIRST_CHARS = [b"\xef"] RESERVED_NONCE_BEGININGS = [b"\x48\x45\x41\x44", b"\x50\x4F\x53\x54", - b"\x47\x45\x54\x20", b"\xee\xee\xee\xee"] + b"\x47\x45\x54\x20", b"\xee\xee\xee\xee", + b"\xdd\xdd\xdd\xdd"] RESERVED_NONCE_CONTINUES = [b"\x00\x00\x00\x00"] global my_ip_info