PDT
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
The PDT file format is a proprietary data storage structure originally developed by DATASTORM Technologies and later maintained by Symantec for use in Procomm Plus communications software. It primarily serves as a centralized phone directory database, storing connection parameters, terminal settings, and contact information required for terminal emulation and file transfers. As a legacy format associated with dial-up systems and early internet communication, it contains structured data and poses minimal security risk compared to modern formats.
Validation Code
How to validate .pdt files in Python
Python
def is_pdt(file_path: str) -> bool:
"""Check if file is a valid PDT by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .pdt files in Node.js
Node.js
function isPDT(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPDT(data []byte) bool {
signature := []byte{0x78, 0x56, 0x34}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/pdt
curl https://filesignature.org/api/v1/pdt