{"success":true,"data":{"ext":"puff","name":"PUFF","description":"PUFF is a file format associated with the Executable and Linkable Format (ELF), originally developed for Unix systems and now maintained through the broader Unix and Linux software ecosystem. It is used for executable programs, shared libraries, object files, and core dumps on many Unix-like operating systems. Because it can contain executable code, files should be obtained from trusted sources; the format itself is long established and still widely used.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7F 45 4C 46","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["axf","elf","ko","none","o","out"],"usage":{"python":"def is_puff(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PUFF by magic bytes.\"\"\"\n    signature = bytes([0x7F, 0x45, 0x4C, 0x46])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isPUFF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7F, 0x45, 0x4C, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsPUFF(data []byte) bool {\n    signature := []byte{0x7F, 0x45, 0x4C, 0x46}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Executables"}}