[Wargame Write-up]/CANYOUHACK.IT (site down)
[CANYOUHACK.IT] [Cryptography] 4. The grass is always greener on the other side
Kevin S.
2016. 12. 11. 03:39
Cryptography 4번째 문제이다.
아래에 35글자 문자열이 주어져 있다.
본능적으로 Caesar decrypt를 돌려보았다.
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 |
import os
import string
ciphertext = "TSDLN ILHSY OGSRE WOOFR OPOUK OAAAR RIRID".lower()
os.system("cls")
print "[*] Generate Candidate of Plaintext as \"candidate[key]: plaintext\""
for key in range(26):
plaintext_candidate = ""
for char in ciphertext:
tmp_char_ascii = ord(char) + key
if char in list(string.lowercase):
if tmp_char_ascii > ord('z'):
tmp_char_ascii -= 26
plaintext_candidate += chr(tmp_char_ascii)
else:
plaintext_candidate += char
continue
print "\tcandidate[%d]: %s" % (key, plaintext_candidate)
print "\n[*] Finish Brute Forcing"
|
cs |
후보에 없다...
5글자씩 떼어져 있는 이유가 궁금해서 공백을 \n로 치환해보았다.
세로드립도 아닌 것 같다.
이번엔 7글자씩 5행을 만들어서 해보았다. 세로드립 식으로 읽으니 뭔가 보인다.
THEPASSWORDYOURLOOKINGFORIS ...