TargetExpress target file
application/octet-stream
Magic Bytes
Offset: 0
4D 44 4D 50 93 A7
TargetExpress target files are proprietary data files created by the TargetExpress utility, originally developed by Pro-G to manage Windows shortcuts. These files store localized path configurations and metadata used to redirect or maintain application links when programs are moved or renamed. As an obsolete format associated with software no longer in active development, these files are primarily encountered on legacy systems and are generally considered safe due to their static configuration nature.
Validation Code
How to validate .mte files in Python
Python
def is_mte(file_path: str) -> bool:
"""Check if file is a valid MTE by magic bytes."""
signature = bytes([0x4D, 0x44, 0x4D, 0x50, 0x93, 0xA7])
with open(file_path, "rb") as f:
return f.read(6) == signature
How to validate .mte files in Node.js
Node.js
function isMTE(buffer: Buffer): boolean {
const signature = Buffer.from([0x4D, 0x44, 0x4D, 0x50, 0x93, 0xA7]);
return buffer.subarray(0, 6).equals(signature);
}
Go
func IsMTE(data []byte) bool {
signature := []byte{0x4D, 0x44, 0x4D, 0x50, 0x93, 0xA7}
if len(data) < 6 {
return false
}
return bytes.Equal(data[:6], signature)
}
API Endpoint
GET
/api/v1/mte
curl https://filesignature.org/api/v1/mte