{"success":true,"data":{"ext":"cfg","name":"Flight Simulator Aircraft Configuration file","description":"Flight Simulator Aircraft Configuration files are plain-text configuration files used by Microsoft Flight Simulator and maintained as part of the simulator’s aircraft definition system by Microsoft. They store parameters for aircraft behavior, performance, geometry, and flight characteristics, and are used when creating, modifying, or loading add-on aircraft. As a text-based format, they are generally safe to inspect, though malformed entries can affect simulator behavior; the format has long been used across successive Flight Simulator releases.","mime":["text/plain"],"risk_level":"Safe","signatures":[{"hex":"5B 66 6C 74 73 69 6D 2E 30 5D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["htm","html","js","mjs","xhtml","xml"],"usage":{"python":"def is_cfg(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CFG by magic bytes.\"\"\"\n    signature = bytes([0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D])\n    with open(file_path, \"rb\") as f:\n        return f.read(10) == signature","node":"function isCFG(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D]);\n  return buffer.subarray(0, 10).equals(signature);\n}","go":"func IsCFG(data []byte) bool {\n    signature := []byte{0x5B, 0x66, 0x6C, 0x74, 0x73, 0x69, 0x6D, 0x2E, 0x30, 0x5D}\n    if len(data) < 10 {\n        return false\n    }\n    return bytes.Equal(data[:10], signature)\n}"},"category":"Web & Config"}}