mirror of https://github.com/MISP/PyMISP
chg: fix sample retrieval from new-style zips
parent
558c692920
commit
a5800f84db
|
@ -1210,7 +1210,7 @@ class PyMISP(object):
|
|||
zipped = BytesIO(decoded)
|
||||
try:
|
||||
archive = zipfile.ZipFile(zipped)
|
||||
if f.get('md5') and f['md5'] in archive.infolist():
|
||||
if f.get('md5') and f['md5'] in archive.namelist():
|
||||
# New format
|
||||
unzipped = BytesIO(archive.open(f['md5'], pwd=b'infected').read())
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue