{"success":true,"data":{"ext":"wad","name":"WAD","description":"WAD (Where's All the Data) is a resource archive format created by id Software for the Doom series and related games. It stores levels, graphics, sounds, and other game assets, and is used by Doom engines, modding tools, and fan-made source ports. The format is a legacy standard from early first-person shooters, and files from untrusted sources should be handled carefully because they may contain malformed data or custom content.","mime":["application/x-doom"],"risk_level":"Safe","signatures":[{"hex":"49 57 41 44","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_wad(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WAD by magic bytes.\"\"\"\n    signature = bytes([0x49, 0x57, 0x41, 0x44])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isWAD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x49, 0x57, 0x41, 0x44]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsWAD(data []byte) bool {\n    signature := []byte{0x49, 0x57, 0x41, 0x44}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}