{"success":true,"data":{"ext":"wsc","name":"Windows Script Component","description":"Windows Script Component (WSC) is a Microsoft file format for encapsulating script-based COM components used in Windows environments. It is used to package reusable automation logic, expose script methods and properties to applications, and support scripting in tools such as Windows Script Host and Internet Explorer-era workflows. The format is generally considered safe as a text-based component definition, though it should still be reviewed when obtained from untrusted sources; it is a legacy Windows scripting technology.","mime":[],"risk_level":"Safe","signatures":[{"hex":"3C 3F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"EF BB BF 3C 3F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_wsc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid WSC by magic bytes.\"\"\"\n    signature = bytes([0x3C, 0x3F])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isWSC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x3C, 0x3F]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsWSC(data []byte) bool {\n    signature := []byte{0x3C, 0x3F}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}