http://52.79.224.215
Crypto
Very Easy Crypto
100
ascii85
The Middle Age Crypto
100
https://www.brynmawr.edu/bulletin/codes-and-ciphers-puts-students-test
'Codes and Ciphers' Puts Students to Test | Bryn Mawr Alumnae Bulletin
'Codes and Ciphers' Puts Students to Test 'Codes and Ciphers' Puts Students to Test Math course offers insight into creating and solving secret messages. At their simplest, they are used by kids passing notes in class and at their most complex, by governme
www.brynmawr.edu
You Decode it?
175
문제 :
1
2
3
4
5
6
7
8
9
10
11
12
|
from * import flag, shift
list_ = ['0x475', '0x3b0', '0x471', '0x47a', '0x39c', '0x465', '0x476', '0x46d', '0x46d', '0x47a','0x39c', '0x460', '0x471', '0x47a', '0x473', '0x477', '0x3b3', '0x3a2', '0x3a2']
def encrypt(d,shift):
e = []
for c in d:
e.append(hex((ord(c)+shift)^99))
return e
if list(encrypt(flag,shift)) == list_: # 문법 상으로는 맞지 않음. 이해를 위해서 넣은 코드구문
print("encoding success!!")
|
cs |
풀이 :
1
2
3
4
5
6
7
8
9
10
11
12
13
|
list_ = [0x475, 0x3b0, 0x471, 0x47a, 0x39c, 0x465, 0x476, 0x46d, 0x46d, 0x47a,0x39c, 0x460, 0x471, 0x47a, 0x473, 0x477, 0x3b3, 0x3a2, 0x3a2]
list = []
for i in list_:
list.append(i^99)
for shift in range(0,951):
flag = ""
for j in list :
flag += chr(j-shift)
print(flag)
|
cs |
'WAR GAME > N00bCTF' 카테고리의 다른 글
N00bCTF Multimedia Forensic 카테고리 문제 풀이 (0) | 2019.11.07 |
---|---|
N00bCTF Misc 카테고리 문제 풀이 (0) | 2019.11.07 |
N00bCTF Reversing 카테고리 문제 풀이 (0) | 2019.11.07 |
N00bCTF Pwnable 카테고리 문제 풀이 (0) | 2019.11.07 |
N00bCTF Disk Forensic 카테고리 문제 풀이 (0) | 2019.11.07 |