polyfile
polyfile copied to clipboard
A pure Python cleanroom implementation of libmagic, with instrumented parsing from Kaitai struct and an interactive hex viewer
Sometimes in the FAW, we'll find an error message that refers to specific bytes (such as a font or key name) within a set of files. It would be very...
Build of 0.3.3 fails with `TypeError: '>' not supported between instances of 'NoneType' and 'float'`
Downloading https://github.com/trailofbits/polyfile/archive/refs/tags/v0.3.3.tar.gz and building yields an error. ``` ❯ python setup.py build Traceback (most recent call last): File "/home/dkasak/code/dkasak/packages/aur_packages/polyfile/src/polyfile-0.3.3/setup.py", line 47, in if not MANIFEST_PATH.exists() or newest_definition > MANIFEST_PATH.stat().st_mtime: TypeError:...
I ran polyfile on `yes.png` (https://github.com/corkami/collisions/blob/master/workshop/yes.png). There's no parser for PNG so the JSON is quite empty, which is OK, but OTOH the standalone HTML entry shows binary data at...
In this example file: https://github.com/apache/tika/blob/master/tika-parsers/src/test/resources/test-documents/testZipEncrypted.zip, one of the streams is encrypted, and the other isn't. It might be useful to report an encrypted stream in the output json and then...
[398129.pdf](https://github.com/trailofbits/polyfile/files/4257483/398129.pdf) File from govdocs1. hex editor polyfile's interpretation
If I run `polyfile` on an off-the-shelf PDF, it will generally detect all streams. If I use Mac's Preview to highlight/annotate the file, in this case 5 times, a number...
` [Traceback (most recent call last):, File "/usr/local/bin/polyfile", line 11, in , load_entry_point('polyfile', 'console_scripts', 'polyfile')(), File "/Users/allison/Documents/tob/polyfile/__main__.py", line 72, in main, for match in matcher.match(file_path, progress_callback=progress_callback):, File "/Users/allison/Documents/tob/polyfile/polyfile.py", line 170,...
`[Traceback (most recent call last):, File "/usr/local/bin/polyfile", line 11, in , load_entry_point('polyfile', 'console_scripts', 'polyfile')(), File "/Users/allison/Documents/tob/polyfile/__main__.py", line 72, in main, for match in matcher.match(file_path, progress_callback=progress_callback):, File "/Users/allison/Documents/tob/polyfile/polyfile.py", line 170, in...
` [Traceback (most recent call last):, File "/usr/local/bin/polyfile", line 11, in , load_entry_point('polyfile', 'console_scripts', 'polyfile')(), File "/Users/allison/Documents/tob/polyfile/__main__.py", line 72, in main, for match in matcher.match(file_path, progress_callback=progress_callback):, File "/Users/allison/Documents/tob/polyfile/polyfile.py", line 170,...
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.1.0. Release notes Sourced from actions/checkout's releases. v3.1.0 What's Changed Inject GitHub host to be able to clone from another GitHub instance by @peter-murray in...