Wargame/Crypto1 [Dreamhack] ROT128 1. 문제 주어진 encfile을 복호화하여 flag 파일 내용을 알아낸 뒤, flag.png에서 플래그를 획득하는 문제 소스코드 #!/usr/bin/env python3 hex_list = [(hex(i)[2:].zfill(2).upper()) for i in range(256)] with open('flag.png', 'rb') as f: plain_s = f.read() plain_list = [hex(i)[2:].zfill(2).upper() for i in plain_s] enc_list = list(range(len(plain_list))) for i in range(len(plain_list)): hex_b = plain_list[i] index = hex_list.index(hex_b) e.. Wargame/Crypto 2023. 7. 4. 이전 1 다음