VT client trustenv

Modified the vt.Client instantiation to optionally read a value for trustenv from the modules config section.
pull/897/head
DocArmoryTech 2024-03-13 20:39:08 +00:00 committed by GitHub
parent 402e679787
commit bbabb527de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class VirusTotal(AbstractModule):
self.logger.info('Not enabled')
return False
self.client = vt.Client(self.config['apikey'])
self.client = vt.Client(self.config['apikey'], trustenv=bool(self.config['trustenv'], False))
self.allow_auto_trigger = bool(self.config.get('allow_auto_trigger', False))
self.autosubmit = bool(self.config.get('autosubmit', False))