-
Dreamhack - ROT128wargame/Dreamhack 2024. 5. 14. 21:54
[Beginner - ROT128 - crypto]
문제 파일을 다운로드 받으면 rot128.py와 encfile이 들어있다.
제공된 코드는 위와 같이 flag.png를 암호화하여 encfile로 저장하는 내용을 담고 있다.
따라서 주어진 encfile을 복호화해 flag 파일 내용을 알아낸 뒤, flag.png에서 플래그를 획득하면 되는 문제다.
위와 같이 encfile을 복호화한 이진 데이터를 flag.png에 쓰는 코드를 작성하면 된다.
코드를 실행하면 flag.png가 생성되고 열어보면 플래그값이 나와 있다.
플래그를 획득했다!
'wargame > Dreamhack' 카테고리의 다른 글
Dreamhack - rev-basic-1 (0) 2024.05.21 Dreamhack - rev-basic-0 (0) 2024.05.21 Dreamhack - Dream Zoo (0) 2024.05.14 Dreamhack - Enc-JPG (0) 2024.05.08 Dreamhack - video_in_video (0) 2024.05.07