Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
goelp14
GitHub Repository: goelp14/easyctf-iv-problems
Path: blob/master/flagtime/server.py
671 views
1
#!/usr/bin/env python3
2
3
import time
4
flag = "easyctf{ez_t1m1ng_4ttack!}"
5
def check(s):
6
for c in range(min(len(s), len(flag))):
7
if c < 3 and flag[c] == s[c]:
8
time.sleep(1)
9
if flag[c] == s[c]:
10
time.sleep(0.3)
11
else:
12
print("no")
13
return
14
if len(s) != len(flag):
15
print("no")
16
return
17
print("wowie u got it")
18
return
19
20
a = input("enter the flag: ")
21
check(a)
22
23