Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransportSocket object has no attribute 'send' #3049

Open
ansiballZ opened this issue Sep 13, 2024 · 1 comment
Open

TransportSocket object has no attribute 'send' #3049

ansiballZ opened this issue Sep 13, 2024 · 1 comment
Assignees
Labels

Comments

@ansiballZ
Copy link

Describe the bug
When deploying the Manx agent (Windows and Linux), the agent will connect to the C2 and after a while it will show dead although it is still beaconing out.
When running Caldera with Debug I receive a transport error. Tested with ragdoll and sandcat agents and those remained "alive."

To Reproduce
Steps to reproduce the behavior:

  1. Start the caldera server (python3 server.py --insecure -l DEBUG)
  2. Deploy Manx agent

Expected behavior
Agent remains alive and trusted while beaconing.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. Mac, Windows, Kali] Kali Linux
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 2.8.0] 5.0.0

Additional context
Add any other context about the problem here.

@sd-wolf
Copy link

sd-wolf commented Oct 8, 2024

The issue is that the TransportSocket class, which is from the core Python library asyncio and had deprecated a number of methods from trsock.py that were used in contact_tcp.py in Python 3.8. They were then removed from the class in Python 3.11. You can see the changes here. Affected methods that are used by TransportSocket include:

  • send
  • recv

To work around the issue, you can use an older version of Python that is supported by Caldera, such as Python 3.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants