TSP
application/octet-stream
Magic Bytes
Offset: 0
4D 5A
The Telephony Service Provider (TSP) file format is a driver interface developed by Microsoft for the Windows Telephony API architecture. It facilitates communication between specialized hardware, such as modems or private branch exchanges, and user-level software applications. While these files are essential system components, their binary structure allows them to execute with elevated system privileges; therefore, users should only install providers supplied by verified hardware manufacturers to maintain system integrity.
Validation Code
How to validate .tsp files in Python
Python
def is_tsp(file_path: str) -> bool:
"""Check if file is a valid TSP by magic bytes."""
signature = bytes([0x4D, 0x5A])
with open(file_path, "rb") as f:
return f.read(2) == signature
How to validate .tsp files in Node.js
Node.js
function isTSP(buffer: Buffer): boolean {
const signature = Buffer.from([0x4D, 0x5A]);
return buffer.subarray(0, 2).equals(signature);
}
Go
func IsTSP(data []byte) bool {
signature := []byte{0x4D, 0x5A}
if len(data) < 2 {
return false
}
return bytes.Equal(data[:2], signature)
}
API Endpoint
GET
/api/v1/tsp
curl https://filesignature.org/api/v1/tsp