its-a-feature / Mythic

A collaborative, multi-platform, red teaming framework
Other
3.14k stars 423 forks source link

My Mythic C2 not connecting after installation #394

Closed maxwellgolden closed 2 weeks ago

maxwellgolden commented 1 month ago

HELLO,

I've been having constant issues connecting with Mythic c2.

please how can i fix it

Screenshot from 2024-07-30 23-11-34

its-a-feature commented 1 month ago

can you share a bit more of what's happening at the top of that output? It looks as though there's an issue with docker on your Kali instance.

maxwellgolden commented 1 month ago

here it is. Screenshot from 2024-07-31 06-24-01

maxwellgolden commented 1 month ago

tried fixing it for the past two days but to no avail. Screenshot from 2024-07-31 06-25-32

its-a-feature commented 1 month ago

so right at the top it says compose is not a docker command, which means you don't have docker compose installed on the system. It seems like Kali did something recently that broke their installation of Docker and Docker compose (I've seen a bunch of errors with docker-compose and a bunch of people unable to to install the compose plugin on Kali. Somebody from the bloodhound slack suggested this worked for them:

curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod a+x /usr/local/bin/docker-compose
apt-get install docker.io

So you can give that a try?

maxwellgolden commented 1 month ago

Alright thanks.

maxwellgolden commented 1 month ago

Hello, the issue still persist Screenshot from 2024-08-01 23-36-00

adityabaronia commented 1 month ago

Give more than 1 core to your VM. This will remove the error for Creating mythic_graphql mythic_postgres, mythic_server and mythiv_rabbitmq.

maxwellgolden commented 1 month ago

Ok

its-a-feature commented 1 month ago

in your Mythic/.env file you'll see a lot of options to configure how Mythic runs. By default, Mythic (using docker compose) allocates 1VCPU to installed services (agents, c2 profiles, etc) and 2VCPU to Mythic's core functionality. This is configurable in the .env file though if you look for the settings with _cpus. You can set all the 2s to 1s and then run sudo ./mythic-cli start again. The performance might just be a bit worse as you only have one cpu to share for everything.

maxwellgolden commented 1 month ago

rabbitmq isnt connecting.

Screenshot from 2024-08-02 19-51-26

its-a-feature commented 1 month ago

can you share the output of sudo ./mythic-cli logs mythic_server and sudo ./mythic-cli status?

its-a-feature commented 2 weeks ago

If you're still having this issue, we can reopen and see what's going on, but since I haven't heard from you in a while I'm going to close this one