-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't add hashes for filenames with regex #52
Comments
Hmmm, can you print the content of Because that snippet works:
|
But that snippet does not use the PyMISP API code. This one does:
|
grmbl, right, sorry for that, fixing |
That should do the trick. |
TheDr1ver
pushed a commit
to TheDr1ver/PyMISP
that referenced
this issue
Mar 9, 2017
Caught exception on python3.4 where base64encode returns bytes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to add a hash for a filename containing a regex like
file\d{1}.\d{2}.exe
, PyMISP throws this error:This is because the filename is interpreted as a format string in https://github.com/MISP/PyMISP/blob/master/pymisp/api.py#L455
The text was updated successfully, but these errors were encountered: