kaki1013
[포렌식] 파일 시그니처 (매직 넘버) 본문
매직 넘버 : 저장된 데이터를 구분하는 상수, 많은 파일 형식을 구분하는 간단하고 효과적인 방법
"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
'CTF' 카테고리의 다른 글
[Web Hacking] 실제 사이트를 개발자 도구로 분석하기 (1) | 2024.02.10 |
---|---|
[포렌식] 스테가노그래피 툴 모음 (0) | 2023.08.12 |
[Python] bytes 자료형을 파일로 저장하는 법 (0) | 2023.08.11 |