CTF
[포렌식] 파일 시그니처 (매직 넘버)
kaki1013
2023. 8. 12. 20:25
매직 넘버 : 저장된 데이터를 구분하는 상수, 많은 파일 형식을 구분하는 간단하고 효과적인 방법
"Many files have such constants that identify the contained data. Detecting such constants in files is a simple and effective way of distinguishing between many file formats and can yield further run-time information." (참고 1)
자주 쓰이는 매직 넘버
: JPEG, PNG, PDF, ZIP, 7z 등
Extension | Hex signature |
JPEG | FF D8 FF E0 |
PNG | 89 50 4E 47 0D 0A 1A 0A |
25 50 44 46 2D | |
ZIP | 50 4B 03 04 |
7z | 37 7A BC AF 27 1C |
참고 : wikipedia
1. https://en.wikipedia.org/wiki/Magic_number_(programming)#In_files