From dcad0bd51bc5b59c3fbefadb0966b8400b7f74b4 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Sat, 17 Aug 2019 04:48:17 +0500 Subject: [PATCH] if the client time is skewed, just print a message for a while. Additional analysis needed --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 56d4c54..08a2b59 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -888,7 +888,7 @@ async def handle_fake_tls_handshake(handshake, reader, writer, peer): if not is_time_skewed and abs(time.time() - timestamp) > TIME_SKEW_TOLERANCE: print_err("Client with time skew detected from %s, can be a replay-attack" % peer[0]) print_err("The clocks were %d minutes behind" % ((time.time() - timestamp) // 60)) - continue + # continue http_data = bytearray([random.randrange(0, 256) for i in range(fake_cert_len)])