Skip to content

fkie-cad/firmware-magic-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A magic database for firmware analysis

This repository contains magic definitions for filetypes commonly found in firmwares. This is a fork of fact_helper_file and deletes all the code and just keeps the magic definitions (despite custom_mime_internal). Thus, this repository is also licensed under the GPLv3.

Installation

Run make to create two files: A compiled mime database firmware.mgc and a non-compiled mime database firmware. Alternatively, you can head over to the releases to download the non-compiled database from there. The downloaded file needs to be uncompressed before it can be used with file. Note that the compiled database is only of use if your version of file is the same as the version that the database was compiled. For this reason, you can only download the non-compiled version.

Use these files by setting the MAGIC environment variable, for more information see magic(5).