Skip to content

fix mythic connector with unwaited coroutine#108

Merged
leechristensen merged 2 commits intoSpecterOps:mainfrom
Matixx22:fix/mythic-connector-unawaited-coroutine
Mar 10, 2026
Merged

fix mythic connector with unwaited coroutine#108
leechristensen merged 2 commits intoSpecterOps:mainfrom
Matixx22:fix/mythic-connector-unawaited-coroutine

Conversation

@Matixx22
Copy link
Copy Markdown
Contributor

@Matixx22 Matixx22 commented Mar 9, 2026

Mythic connector File Handler issue

Before the fix I was getting this error running the mythic connector:

/venv/lib/python3.13/site-packages/cli/mythic_connector/handlers.py:133: RuntimeWarning: coroutine 'FileHandler.handle_file.<locals>.upload_to_nemesis' was never awaited
  download_callback(path)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

The fix introduces the change in the Mythic connector's FileHandler.download_file method. The download_callback (upload_to_nemesis) is an async function but was being called without await, causing downloaded files to never be uploaded to Nemesis. Adding await to the callback call resolves the issue.

If you encounter this issue locally try to rebuild the local docker nemesis-cli image with this change.

@leechristensen leechristensen merged commit d4f0b51 into SpecterOps:main Mar 10, 2026
@leechristensen
Copy link
Copy Markdown
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants