EZ2
application/octet-stream
Magic Bytes
Offset: 0
45 4D 58 32
EZ2 is a proprietary firmware update container developed by Emulex Corporation, which is currently a subsidiary of Broadcom. System administrators utilize these files to update BIOS, firmware, and boot code on Emulex host bus adapters and converged network adapters. As a specialized binary format for hardware maintenance, it requires vendor-specific management utilities for deployment and is considered a low-risk format when obtained directly from official manufacturer sources.
Validation Code
How to validate .ez2 files in Python
Python
def is_ez2(file_path: str) -> bool:
"""Check if file is a valid EZ2 by magic bytes."""
signature = bytes([0x45, 0x4D, 0x58, 0x32])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .ez2 files in Node.js
Node.js
function isEZ2(buffer: Buffer): boolean {
const signature = Buffer.from([0x45, 0x4D, 0x58, 0x32]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsEZ2(data []byte) bool {
signature := []byte{0x45, 0x4D, 0x58, 0x32}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/ez2
curl https://filesignature.org/api/v1/ez2