File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def __init__(
2626 self .http = "http://" if not ssl else "https://"
2727 self .ws = "ws://" if not ssl else "wss://"
2828 self .global_timeout = global_timeout if global_timeout is not None else - 1
29- self .scripting_version = "0.1.1 "
29+ self .scripting_version = "0.1.2 "
3030 self .current_operation_id = 0
3131 self .schema = schema
3232
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ async def graphql_post(
142142 async with Client (
143143 transport = await get_http_transport (mythic = mythic ),
144144 fetch_schema_from_transport = False ,
145+ execute_timeout = None if mythic .global_timeout < 0 else mythic .global_timeout ,
145146 schema = mythic .schema ,
146147 ) as session :
147148 result = await session .execute (query_data , variable_values = variables )
@@ -171,6 +172,7 @@ async def graphql_subscription(
171172 async with Client (
172173 transport = await get_ws_transport (mythic = mythic ),
173174 fetch_schema_from_transport = False ,
175+ execute_timeout = None ,
174176 ) as session :
175177 logging .debug (f"Started subscription for { query } " )
176178 async for result in timeout_generator (
Original file line number Diff line number Diff line change 1111# This call to setup() does all the work
1212setup (
1313 name = "mythic" ,
14- version = "0.1.1 " ,
14+ version = "0.1.2 " ,
1515 description = "Interact with Mythic C2 Framework Instances" ,
1616 long_description = README ,
1717 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments