Closed toomanybananas closed 5 years ago
If import magic fails, viper will use the output of the file command to determine the filetype. However, the returned value is a byte string instead of a string, which breaks some functionality (including yara scanning). This PR fixes that.
import magic
file
Thanks.
If
import magic
fails, viper will use the output of thefile
command to determine the filetype. However, the returned value is a byte string instead of a string, which breaks some functionality (including yara scanning). This PR fixes that.