{"success":true,"data":{"ext":"cpl","name":"Control panel application","description":"The Control Panel application format (.cpl) is a Windows executable module created and maintained by Microsoft for hosting Control Panel applets. It is used to provide system settings interfaces for hardware, networking, user accounts, and other administrative configuration tasks. Because it is an executable component, .cpl files can run code when opened and are commonly associated with legacy Windows administration, so files from untrusted sources should be handled with caution.","mime":[],"risk_level":"High","signatures":[{"hex":"4D 5A","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"DC DC","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ocx","com","dll","exe","scr","sys"],"usage":{"python":"def is_cpl(file_path: str) -> bool:\n    \"\"\"Check if file is a valid CPL by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x5A])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isCPL(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x5A]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsCPL(data []byte) bool {\n    signature := []byte{0x4D, 0x5A}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"},"category":"Executables"}}