wire / magic / pe-exe

DOS/PE executable signature (MZ, PE\0\0)

A Windows PE executable (and any DOS MZ executable) begins with the ASCII 'MZ' (0x4D 0x5A). A PE file additionally contains the 'PE\0\0' (50 45 00 00) signature at the file offset stored in the MZ header field e_lfanew (at offset 0x3C).

magic kind signature status de-facto verification verified tier C file-signature@1

aka: MZ magic · PE magic · Portable Executable · DOS MZ

file signature

magic: 4D 5A @ offset 0

ascii: MZ

.exe.dll.sys.scr.ocx application/vnd.microsoft.portable-executable

spec: Microsoft PE Format / MS-DOS MZ executable


provenance

per-fact attribution:

see also

agent: curl -H 'accept: application/json' wire.phall.io/magic/pe-exe or /magic/pe-exe.json