Agent newsreader character map file
application/octet-stream
Magic Bytes
Offset: 0
4F 50 43 4C 44 41 54
The Agent newsreader character map file is a proprietary configuration format developed by Forté Inc. for their Agent Usenet client software. It serves to store character set translation tables, allowing the application to interpret and display text correctly across different international encoding standards. This legacy format is primarily found in older Usenet environments and is considered safe because it contains static binary data rather than executable code.
Validation Code
How to validate .cod files in Python
Python
def is_cod(file_path: str) -> bool:
"""Check if file is a valid COD by magic bytes."""
signature = bytes([0x4F, 0x50, 0x43, 0x4C, 0x44, 0x41, 0x54])
with open(file_path, "rb") as f:
return f.read(7) == signature
How to validate .cod files in Node.js
Node.js
function isCOD(buffer: Buffer): boolean {
const signature = Buffer.from([0x4F, 0x50, 0x43, 0x4C, 0x44, 0x41, 0x54]);
return buffer.subarray(0, 7).equals(signature);
}
Go
func IsCOD(data []byte) bool {
signature := []byte{0x4F, 0x50, 0x43, 0x4C, 0x44, 0x41, 0x54}
if len(data) < 7 {
return false
}
return bytes.Equal(data[:7], signature)
}
API Endpoint
GET
/api/v1/cod
curl https://filesignature.org/api/v1/cod