Skip to content

Commit

Permalink
Fixes #188, merged @garanews fix (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
3c7 committed Apr 6, 2018
1 parent fffe5d1 commit 76fbacd
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 @@ -50,7 +50,7 @@ def run(self):
# file analysis
if self.data_type == 'file':
filepath = self.get_param('file', None, 'File is missing')
filename = basename(filepath)
filename = self.get_param('filename', basename(filepath))
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 76fbacd

Please sign in to comment.