PET

application/octet-stream

Safe

Magic Bytes

Offset: 0
78 56 34

The Puppy Linux Install Package (PET) is a compressed archive format developed by the Puppy Linux community for software distribution within their operating system. It is primarily used to install, update, and manage software applications and system utilities on Puppy Linux and its various derivatives. While the format itself is considered safe, users should verify package integrity through official repositories to prevent the execution of malicious scripts during the automated installation process.

Extension

.pet

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pet files in Python

Python
def is_pet(file_path: str) -> bool:
    """Check if file is a valid PET by magic bytes."""
    signature = bytes([0x78, 0x56, 0x34])
    with open(file_path, "rb") as f:
        return f.read(3) == signature

How to validate .pet files in Node.js

Node.js
function isPET(buffer: Buffer): boolean {
  const signature = Buffer.from([0x78, 0x56, 0x34]);
  return buffer.subarray(0, 3).equals(signature);
}
Go
func IsPET(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/pet
curl https://filesignature.org/api/v1/pet

Related Formats