File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 77import logging
88import base64
99import asyncio
10+ import warnings
1011from abc import ABC , abstractmethod
1112from typing import Iterator , AsyncIterator , TypeVar
1213from typing_extensions import override
@@ -103,6 +104,10 @@ class MythicDataSource(DataSource):
103104 """Data source that fetches data from Mythic server."""
104105
105106 def __init__ (self , mythic_server : str , mythic_token : str ):
107+ # suppress warning
108+ warnings .filterwarnings ("ignore" ,
109+ message = ".*AIOHTTPTransport does not verify ssl certificates.*" ,
110+ category = UserWarning )
106111 self .mythic_server = mythic_server
107112 self .mythic_token = mythic_token
108113 self ._mythic_instance = None
@@ -115,7 +120,7 @@ def _connect(self):
115120 server_ip = self .mythic_server ,
116121 server_port = 7443 ,
117122 timeout = - 1 ,
118- logging_level = logging .CRITICAL ,
123+ logging_level = logging .CRITICAL
119124 ))
120125 except Exception as e :
121126 logger .error ("Error logging into Mythic" )
You can’t perform that action at this time.
0 commit comments