{"success":true,"data":{"ext":"pif","name":"Program Information File (Windows DOS shortcut)","description":"Program Information File (PIF) is a Microsoft file format used by Windows to store configuration data for launching MS-DOS applications and shortcuts. It was used to define execution settings such as window behavior, memory requirements, and working directories for older programs. PIF files are a legacy format and can be associated with executable content, so files from untrusted sources should be handled carefully.","mime":[],"risk_level":"High","signatures":[{"hex":"00","offset":0,"sources":[{"name":"Wikipedia: Program information file","url":"https://en.wikipedia.org/wiki/Program_information_file"}]}],"related":[],"usage":{"python":"def is_pif(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PIF by magic bytes.\"\"\"\n    signature = bytes([0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(1) == signature","node":"function isPIF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00]);\n  return buffer.subarray(0, 1).equals(signature);\n}","go":"func IsPIF(data []byte) bool {\n    signature := []byte{0x00}\n    if len(data) < 1 {\n        return false\n    }\n    return bytes.Equal(data[:1], signature)\n}"}}}