{"success":true,"data":{"ext":"maff","name":"MAFF","description":"MAFF (Mozilla Archive Format) is a web archive file format developed for Mozilla-based browsers and maintained by the open-source Mozilla Archive Format project. It was used to save complete web pages, including associated assets, for offline viewing and later restoration in Firefox and related applications. The format is legacy and largely obsolete; as a ZIP-based container, it should be handled cautiously because archived content may include active scripts or embedded files.","mime":["application/x-maff"],"risk_level":"Safe","signatures":[{"hex":"50 4B 03 04","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"50 4B 05 06","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"50 4B 07 08","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_maff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid MAFF by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x4B, 0x03, 0x04])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isMAFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x4B, 0x03, 0x04]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsMAFF(data []byte) bool {\n    signature := []byte{0x50, 0x4B, 0x03, 0x04}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}