Skip to content

Commit

Permalink
manage correctly the filename sent to cuckoo
Browse files Browse the repository at this point in the history
  • Loading branch information
garanews authored Feb 19, 2018
1 parent ef96c74 commit 80aa6a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/CuckooSandbox/cuckoosandbox_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run(self):
# file analysis
if self.service in ['file_analysis']:
filepath = self.getParam('file', None, 'File is missing')
filename = basename(filepath)
filename = self.getParam('filename', None, 'File is missing')
with open(filepath, "rb") as sample:
files = {"file": (filename, sample)}
response = requests.post(self.url + 'tasks/create/file', files=files)
Expand Down

0 comments on commit 80aa6a4

Please sign in to comment.