From 402e679787f28337e1b3351be1d61f7d16614fe4 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Wed, 13 Mar 2024 20:32:53 +0000 Subject: [PATCH 1/2] Add VT module trustenv Added "trustenv" config parameter for the VT module --- config/modules.json.sample | 1 + 1 file changed, 1 insertion(+) 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 }, From bbabb527deaee73c3c8cbdeeec7aca8f1ff4b077 Mon Sep 17 00:00:00 2001 From: DocArmoryTech Date: Wed, 13 Mar 2024 20:39:08 +0000 Subject: [PATCH 2/2] VT client trustenv Modified the vt.Client instantiation to optionally read a value for trustenv from the modules config section. --- lookyloo/modules/vt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def module_init(self) -> bool: 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))