polyfile

A pure Python cleanroom implementation of libmagic, with instrumented parsing from Kaitai struct and an interactive hex viewer (by trailofbits)

Polyfile Alternatives

Similar projects and alternatives to polyfile

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better polyfile alternative or higher similarity.

polyfile reviews and mentions

Posts with mentions or reviews of polyfile. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-23.
  • Blind Spots: Automatically detecting ignored program inputs
    2 projects | news.ycombinator.com | 23 Jan 2023
  • Show HN: I am building a new Python library to read/write PDF files
    17 projects | news.ycombinator.com | 17 Nov 2022
    Be careful with PDF! There are many ambiguities in the specification that are implemented differently between parsers, as well as implicitly accepted malformations that almost all parsers will silently accept without warning. It is very easy to accidentally produce so-called file format schizophrenia: When the same file is rendered differently between two parsers. For example, with PDF, what if you have a PDF object stream that has a length that doesn't agree with the position of its `endstream` token? What if you have a PDF dictionary with duplicate keys? Do you use the value of the first key or the second? What if you have two, valid PDFs concatenated one after the other? Do you render the first or the second? What if an object in the XREF table has an incorrect offset?

    Shameless plug: I am one of the maintainers of PolyFile, which, among other things, can produce an interactive HTML hex editor with an annotated syntax tree for dozens of filetypes, including PDF. For PDF, it uses a dynamically instrumented version of the PDFminer parser. It sounds like it might satisfy your use case.

    https://github.com/trailofbits/polyfile

Stats

Basic polyfile repo stats
2
322
7.6
about 2 months ago

trailofbits/polyfile is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of polyfile is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com