Remove debug traces

pull/663/head
Daniel Pascual 2024-05-13 19:50:46 +02:00
parent bb42e5d9c1
commit da072cc38a
1 changed files with 0 additions and 7 deletions

View File

@ -17,7 +17,6 @@
from urllib import parse from urllib import parse
import vt import vt
import pymisp import pymisp
import logging
MISP_ATTRIBUTES = { MISP_ATTRIBUTES = {
@ -57,8 +56,6 @@ DEFAULT_RESULTS_LIMIT = 10
class GoogleThreatIntelligenceParser: class GoogleThreatIntelligenceParser:
"""Main parser class to create the MISP event.""" """Main parser class to create the MISP event."""
def __init__(self, client: vt.Client, limit: int) -> None: def __init__(self, client: vt.Client, limit: int) -> None:
with open('/tmp/vtlog.txt','wb') as f:
f.write('XXXLOG2')
self.client = client self.client = client
self.limit = limit or DEFAULT_RESULTS_LIMIT self.limit = limit or DEFAULT_RESULTS_LIMIT
self.misp_event = pymisp.MISPEvent() self.misp_event = pymisp.MISPEvent()
@ -224,8 +221,6 @@ def get_proxy_settings(config: dict) -> dict:
def dict_handler(request: dict): def dict_handler(request: dict):
"""MISP entry point fo the module.""" """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'): if not request.get('config') or not request['config'].get('apikey'):
return { return {
'error': ('A Google Threat Intelligence api ' 'error': ('A Google Threat Intelligence api '
@ -260,8 +255,6 @@ def dict_handler(request: dict):
return {'error': ex.message} return {'error': ex.message}
except KeyError as ex: except KeyError as ex:
return {'error': str(ex)} return {'error': str(ex)}
with open('/tmp/vtlog.txt','wb') as f:
f.write('XXXLOG2')
return parser.get_results() return parser.get_results()