Skip to content

Commit

Permalink
Merge branch 'release/3.2.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed May 4, 2023
2 parents 62ec3e5 + 2e4ee92 commit 583b1f8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions analyzers/CIRCLHashlookup/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requests
cortexutils
1 change: 0 additions & 1 deletion analyzers/CIRCLHashlookup/requirments.txt

This file was deleted.

1 change: 1 addition & 0 deletions analyzers/Crowdsec/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cortexutils
8 changes: 7 additions & 1 deletion analyzers/EmlParser/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,13 @@ def parseEml(filepath, job_directory, wkhtmltoimage, sanitized_rendering):
for a in decoded_email.get("attachment"):
a["mime"] = magic.from_buffer(binascii.a2b_base64(a.get("raw")))
if isinstance(a.get("raw"), bytes):
filepath = os.path.join(job_directory, "output", a.get("filename", ""))
path, filename = os.path.split(a.get("filename", ""))
if path != "":
os.umask(0)
os.makedirs(
f"{job_directory}/output/{path}", exist_ok=True, mode=0o777
)
filepath = os.path.join(job_directory, "output", path, filename)
with open(filepath, "wb") as f:
f.write(base64.b64decode(a["raw"]))
f.close()
Expand Down
1 change: 1 addition & 0 deletions analyzers/MISP/mispclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def __clean_event(self, misp_event):
"""

filters = ['Attribute',
'Object',
'ShadowAttribute',
'Org',
'ShadowAttribute',
Expand Down

0 comments on commit 583b1f8

Please sign in to comment.