{"success":true,"data":{"ext":"o","name":"O","description":"Executable and Linkable Format (ELF) is a binary file format created by UNIX System Laboratories and now maintained as part of the System V Application Binary Interface. It is used for executable programs, shared libraries, object files, and core dumps on Unix-like operating systems, including Linux and many embedded systems. ELF files are generally safe to handle, though malicious binaries can execute code if run; the format has largely replaced earlier legacy object formats.","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","out","prx","so"],"usage":{"python":"def is_o(file_path: str) -> bool:\n    \"\"\"Check if file is a valid O 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 isO(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7F, 0x45, 0x4C, 0x46]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsO(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"}}