File Python if __name__ __main__ print Welcome to the RootMe python cr

 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
# File: c (Python 3.1)
if __name__ == '__main__':
print('Welcome to the RootMe python crackme')
PASS = input('Enter the Flag: ')
KEY = 'I know, you love decrypting Byte Code !'
I = 5
SOLUCE = [
57,
73,
79,
16,
18,
26,
74,
50,
13,
38,
13,
79,
86,
86,
87]
KEYOUT = []
for X in PASS:
KEYOUT.append((ord(X) + I ^ ord(KEY[I])) % 255)
I = (I + 1) % len(KEY)
if SOLUCE == KEYOUT:
print('You Win')
else:
print('Try Again !')