Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

kaki1013

[포렌식] 파일 시그니처 (매직 넘버) 본문

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
PDF 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 

2. https://en.wikipedia.org/wiki/File_format#Magic_number

3. https://en.wikipedia.org/wiki/List_of_file_signatures