Libraries tagged by magic-bytes
tinram/file-identifier
333 Downloads
A simple library to identify files through MIME types and file signatures.
twstec/kit-uploads
17 Downloads
Uploads seguros do TWS Laravel Starter Kit, sem telas: validação pelo conteúdo real (magic bytes), allowlist e limite por tipo, recusa de executável, script embutido e PDF com ações automáticas, reprocessamento de imagem, nome seguro, entrega por URL assinada com validade, foto de perfil e o POST /api/v1/uploads.
sugarcommerce/file-inspect
1 Downloads
Look at the bytes a file actually contains: executable signatures refused whatever the name, contents that disagree with the extension, archives carrying what you would not accept directly, and double extensions that hide the real one. Pure functions, no I/O, zero dependencies.
laravelplus/content-security
4 Downloads
Defense-in-depth content security for Laravel: malware scanning, MIME/magic-byte verification, archive/image/PDF inspection, HTML sanitization, URL/SSRF checks, quarantine, audit trail and a Vue 3 security console.
rikudou/mime-type-detector
2 Downloads
Detects mime types using magic bytes / magic numbers