교내해킹대회/Crypto (3) 썸네일형 리스트형 Binary 문제 01001101011000010111100100100000001110010111010001101000001011000010000000110010001100000011001000110000001011000010000001010100011011110110010001100001011110010010000001101001011100110010000001110100011010000110010100100000011001000110000101111001001000000110111101100110001000000100010001010011010101010100001101010100010001100010111000100000010010010010011101101101001000000110011101101111011.. What is your major 컴공은 안다 text = '68 83 85 123 121 48 117 95 99 52 110 95 114 51 52 100 95 52 50 67 105 105 95 99 48 100 51 125' text = text.split(' ') for i in text: print(chr(int(i)),end='') AES 문제코드 from Crypto.Cipher import AES import random def padding(plaintext): block_size = 32 if len(plaintext) % block_size != 0: plaintext += b'\x00' * (block_size - (len(plaintext) % block_size)) return plaintext def make_key(): key = b'' for i in range(16): key += str(random.randrange(0, 2)).encode('utf-8') return key FLAG = b'~~~~~~~~~~~~~~~' FLAG = padding(FLAG) key = make_key() cipher = AES.ne.. 이전 1 다음