PBT
application/octet-stream
Magic Bytes
Offset: 0
78 56 34
PowerBuilder Target (PBT) is a configuration file format developed by Sybase and currently maintained by SAP for use within the PowerBuilder integrated development environment. These files serve to define the parameters of a specific software target, including the library list and application object required for project compilation. As configuration files, they are generally considered safe and possess no inherent executable risk, though they remain essential for maintaining legacy enterprise applications.
Validation Code
How to validate .pbt files in Python
Python
def is_pbt(file_path: str) -> bool:
"""Check if file is a valid PBT by magic bytes."""
signature = bytes([0x78, 0x56, 0x34])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .pbt files in Node.js
Node.js
function isPBT(buffer: Buffer): boolean {
const signature = Buffer.from([0x78, 0x56, 0x34]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPBT(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/pbt
curl https://filesignature.org/api/v1/pbt