-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.py
53 lines (48 loc) · 1.55 KB
/
check.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#must manipulate...
def dec(x):
return chr(ord(x) + 1)
def inc(x):
return chr(ord(x) - 1)
# def check():
print(inc('g'))
# return False
print(dec('k'))
# return False
print(inc('b'))
# return False
print(dec('f'))
# return False
print(inc('|'))
# return False
print(dec('3')) # if dec(password[5]) != '3':
# return False
print(inc('t')) # if inc(password[6]) != 't':
# return False
print(dec('b')) # if dec(password[7]) != 'b':
# return False
print(inc('2')) # if inc(password[8]) != '2':
# return False
print(dec('0')) # if dec(password[9]) != '0':
# return False
print(inc('`'))# if inc(password[10]) != '`':
# return False
print(dec('0')) # if dec(password[11]) != '0':
# return False
print(inc('t')) # if inc(password[12]) != 't':
# return False
print(dec('^')) # if dec(password[13]) != '^':
# return False
print(inc('g')) # if inc(password[14]) != 'g':
# return False
print(dec('t')) # if dec(password[15]) != 't':
# return False
print(inc('o')) # if inc(password[16]) != 'o':
# return False
print(dec('|')) # if dec(password[17]) != '|':
# return False
# return True
# password = input().rstrip('\n')
# if check(password):
# print("submit that as the flag!")
# else:
# print("not quite")