Skip to content

Commit 7a505a6

Browse files
committed
bump v0.1.2
updated timeout usage for long-running jobs
1 parent b239da2 commit 7a505a6

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

mythic/mythic_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

mythic/mythic_utilities.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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(

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# This call to setup() does all the work
1212
setup(
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",

0 commit comments

Comments
 (0)