Question
1  | #!/usr/bin/python  | 
Encrypted flag:
Solution
見條script每次都係 msg[i:i+2] 再加堆奇怪野 , 咁唔理佢加咩啦
應該brute force個round就可以解得番條flag出黎
最後唔知點樣搵到個round係191
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16from Crypto.Util.number import *
round = 19
def decrypt(round):
	enc = open("FLAG.enc", "rb").read()
	enc = bin(bytes_to_long(enc))[2:]
	dec = ""
	for r in range(round):
		for i in range(0, len(enc), 3):
			dec += enc[i:i+2]
		enc = dec
		dec = ""
	return enc[:-1]
print hex(int(decrypt(round),2))[2:-1].decode('hex')
Flag
1  | ASIS{50_S1mPl3_CryptO__4__warmup____}  |