From da072cc38a6cce5514aa5e493c58375c523c32c9 Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Mon, 13 May 2024 19:50:46 +0200 Subject: [PATCH] Remove debug traces --- .../modules/expansion/google_threat_intelligence.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/misp_modules/modules/expansion/google_threat_intelligence.py b/misp_modules/modules/expansion/google_threat_intelligence.py index b8ab05b9..fd6db0c5 100644 --- a/misp_modules/modules/expansion/google_threat_intelligence.py +++ b/misp_modules/modules/expansion/google_threat_intelligence.py @@ -17,7 +17,6 @@ from urllib import parse import vt import pymisp -import logging MISP_ATTRIBUTES = { @@ -57,8 +56,6 @@ DEFAULT_RESULTS_LIMIT = 10 class GoogleThreatIntelligenceParser: """Main parser class to create the MISP event.""" def __init__(self, client: vt.Client, limit: int) -> None: - with open('/tmp/vtlog.txt','wb') as f: - f.write('XXXLOG2') self.client = client self.limit = limit or DEFAULT_RESULTS_LIMIT self.misp_event = pymisp.MISPEvent() @@ -224,8 +221,6 @@ def get_proxy_settings(config: dict) -> dict: def dict_handler(request: dict): """MISP entry point fo the module.""" - with open('/tmp/vtlog.txt','wb') as f: - f.write('XXXLOG1') if not request.get('config') or not request['config'].get('apikey'): return { 'error': ('A Google Threat Intelligence api ' @@ -260,8 +255,6 @@ def dict_handler(request: dict): return {'error': ex.message} except KeyError as ex: return {'error': str(ex)} - with open('/tmp/vtlog.txt','wb') as f: - f.write('XXXLOG2') return parser.get_results()