Windows MSinfo file
application/octet-stream
Magic Bytes
Offset: 0
FF FF FF FF
The Windows MSinfo file is a proprietary binary format developed by Microsoft Corporation for recording system diagnostic information. It is primarily used by support technicians and administrators to capture snapshots of hardware resources, software environments, and component configurations for troubleshooting purposes. Although this extension is more commonly associated with the text-based Managed Object Format used in WMI, this specific binary type represents a distinct, legacy method of storing system data.
Validation Code
How to validate .mof files in Python
Python
def is_mof(file_path: str) -> bool:
"""Check if file is a valid MOF by magic bytes."""
signature = bytes([0xFF, 0xFF, 0xFF, 0xFF])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .mof files in Node.js
Node.js
function isMOF(buffer: Buffer): boolean {
const signature = Buffer.from([0xFF, 0xFF, 0xFF, 0xFF]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsMOF(data []byte) bool {
signature := []byte{0xFF, 0xFF, 0xFF, 0xFF}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/mof
curl https://filesignature.org/api/v1/mof