P00
application/octet-stream
Magic Bytes
Offset: 0
43 36 34 46 69 6C 65 00
The P00 file format is a legacy container for Commodore 64 software, originally developed by the Star Commander project to facilitate data transfer between modern hardware and vintage platforms. These files serve as an encapsulation method for individual Commodore programs, preserving original filenames and metadata for use within specialized emulation environments. As an obsolete format associated with retrocomputing preservation, it presents minimal security risks while ensuring historical software remains functional on contemporary operating systems.
Validation Code
How to validate .p00 files in Python
Python
def is_p00(file_path: str) -> bool:
"""Check if file is a valid P00 by magic bytes."""
signature = bytes([0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .p00 files in Node.js
Node.js
function isP00(buffer: Buffer): boolean {
const signature = Buffer.from([0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsP00(data []byte) bool {
signature := []byte{0x43, 0x36, 0x34, 0x46, 0x69, 0x6C, 0x65, 0x00}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/p00
curl https://filesignature.org/api/v1/p00