OTHER
application/octet-stream
Magic Bytes
Offset: 0
3C 3F 78 6D 6C 20
Extensible Markup Language (XML) is a text-based data format developed and maintained by the World Wide Web Consortium (W3C) for storing and transporting data. It is utilized for web services, configuration files, and cross-platform data exchange due to its hierarchical structure and readable syntax. Although generally considered safe, XML files can be vulnerable to XML External Entity (XXE) attacks if processed by insecurely configured software; modern parsers typically disable these features to mitigate risks.
Validation Code
How to validate .other files in Python
Python
def is_other(file_path: str) -> bool:
"""Check if file is a valid OTHER by magic bytes."""
signature = bytes([0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .other files in Node.js
Node.js
function isOTHER(buffer: Buffer): boolean {
const signature = Buffer.from([0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsOTHER(data []byte) bool {
signature := []byte{0x3C, 0x3F, 0x78, 0x6D, 0x6C, 0x20}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/other
curl https://filesignature.org/api/v1/other