mimescan searches for a file within another file using the MIME database. It works similarly to the Unix command "file", but instead of searching only the header, it advances byte by byte, looking for the second file type. It uses the libmagic library.