diff --git a/config/modules.json.sample b/config/modules.json.sample index 58407f7a..b15a5664 100644 --- a/config/modules.json.sample +++ b/config/modules.json.sample @@ -1,6 +1,7 @@ { "VirusTotal": { "apikey": null, + "trustenv": false, "autosubmit": false, "allow_auto_trigger": false }, diff --git a/lookyloo/modules/vt.py b/lookyloo/modules/vt.py index 975a0982..d2076f7f 100644 --- a/lookyloo/modules/vt.py +++ b/lookyloo/modules/vt.py @@ -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))