if the client time is skewed, just print a message for a while. Additional analysis needed

This commit is contained in:
Alexander Bersenev
2019-08-17 04:48:17 +05:00
parent da9e51ed03
commit dcad0bd51b

View File

@@ -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)])