Ignore dotfiles when discovering magic files
I was a bit surprised to get an "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xbe in position 21: invalid start byte" error while writing and testing a new magic file. It turns out that binwalk tried to parse the Vim swap file (.magic.swp) as a magic file which obviously fails. Therefore ignore all files not starting with an alphanumeric character.
Showing
Please
register
or
sign in
to comment