mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-13 23:03:09 +00:00
if the client time is skewed, just print a message for a while. Additional analysis needed
This commit is contained in:
@@ -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)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user