Skip to content

Commit

Permalink
Add configuration knob
Browse files Browse the repository at this point in the history
  • Loading branch information
chivay committed Apr 19, 2021
1 parent f798942 commit 79011d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions drakrun/drakrun/config.dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ enable_ipt=0
; protects against API hammering techniques, default 0 (means: off)
; anti_hammering_threshold=0

; (advanced) Attach DLL profiles to analyses
; attach_profiles=0

[drakvuf_plugins]
; list of enabled DRAKVUF plugins that are used by default,
Expand Down
5 changes: 3 additions & 2 deletions drakrun/drakrun/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,9 @@ def send_analysis(self, sample, outdir, metadata, quality):
if self.test_run:
task.add_payload('testcase', self.current_task.payload['testcase'])

self.log.info("Uploading profiles...")
task.add_payload("profiles", self.build_profile_payload())
if self.config.config.getboolean("drakrun", "attach_profiles", fallback=False):
self.log.info("Uploading profiles...")
task.add_payload("profiles", self.build_profile_payload())

self.log.info("Uploading artifacts...")
for resource in self.upload_artifacts(self.analysis_uid, outdir):
Expand Down

0 comments on commit 79011d8

Please sign in to comment.