write-ups-challenges-2023-2024/reaaaally-old-server/src/flagger.py
2023-11-28 16:24:59 +01:00

20 lines
432 B
Python

import time
password = "securepswd"
given = input("Password please: ")
for i, c in enumerate(given):
if i >= len(password) or c != password[i]:
print("WRROOOONG")
exit(0)
# A reaaaally slow server would compare the string reeaaally slowly
time.sleep(0.1)
if len(given) != len(password):
print("WRROOOONG")
exit(0)
print("Here is our most recent cool flag:")
print("IGCTF{FuN_w1tH_T1m1Ng5}")