-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyrev.py
46 lines (37 loc) · 1.47 KB
/
pyrev.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
phoneSteak = [55, 33, 52, 40, 35, 56, 86, 90, 66, 111, 81, 26, 23, 75, 109, 26, 88, 90, 75, 67, 92, 25, 87, 88, 92, 84, 23, 88]
libraryDiscussion = input("Enter the flag: ")
confusedSheep = [ord(herdSlot) for herdSlot in libraryDiscussion]
mintFarm = len(confusedSheep)
trustBreed = len(phoneSteak)
seaTent = 6
callCover = 17
foxEmbox = (248 // trustBreed) % trustBreed
outfitStrike = 10
brushCopy = (341 // trustBreed) % 17
injectPush = (1240 + 28 // trustBreed) % trustBreed
makeupRoof = []
tinRoyalty = []
if trustBreed == mintFarm:
for heartCool in confusedSheep:
makeupRoof.append(heartCool - 27)
for angelStay in makeupRoof:
tinRoyalty.append(angelStay ^ 15)
franchisePath = tinRoyalty[seaTent]
tinRoyalty[seaTent] = tinRoyalty[injectPush]
tinRoyalty[injectPush] = franchisePath
eastGhostwriter = tinRoyalty[outfitStrike]
tinRoyalty[outfitStrike] = tinRoyalty[foxEmbox]
tinRoyalty[foxEmbox] = eastGhostwriter
personPioneer = tinRoyalty[callCover]
tinRoyalty[callCover] = tinRoyalty[brushCopy]
tinRoyalty[brushCopy] = personPioneer
lineMoon = tinRoyalty[0 : len(tinRoyalty) // 2]
puddingCommission = tinRoyalty[len(tinRoyalty) // 2 : len(tinRoyalty)]
furRegret = lineMoon + puddingCommission[::-1]
tinRoyalty = furRegret
if tinRoyalty == phoneSteak:
print("Correct!! :)")
else:
print("Incorrect flag :(")
else:
print("Incorrect :(")