{"success":true,"data":{"ext":"dun","name":"Dial-up networking file","description":"The Dial-up Networking (DUN) file format is a Windows configuration file format created and maintained by Microsoft for storing dial-up connection settings. It was used by Microsoft Windows and related networking tools to define connection parameters, including modem details, phone numbers, and authentication information for remote access. As a legacy format from the era of dial-up internet, it is generally safe to open, though users should treat any stored connection credentials with care.","mime":[],"risk_level":"Safe","signatures":[{"hex":"5B 50 68 6F 6E 65 5D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_dun(file_path: str) -> bool:\n    \"\"\"Check if file is a valid DUN by magic bytes.\"\"\"\n    signature = bytes([0x5B, 0x50, 0x68, 0x6F, 0x6E, 0x65, 0x5D])\n    with open(file_path, \"rb\") as f:\n        return f.read(7) == signature","node":"function isDUN(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5B, 0x50, 0x68, 0x6F, 0x6E, 0x65, 0x5D]);\n  return buffer.subarray(0, 7).equals(signature);\n}","go":"func IsDUN(data []byte) bool {\n    signature := []byte{0x5B, 0x50, 0x68, 0x6F, 0x6E, 0x65, 0x5D}\n    if len(data) < 7 {\n        return false\n    }\n    return bytes.Equal(data[:7], signature)\n}"}}}