MythicAgents / merlin

Cross-platform post-exploitation HTTP Command & Control agent written in golang
GNU General Public License v3.0
83 stars 13 forks source link

Error while building in aarch64 #18

Open g4uss47 opened 2 months ago

g4uss47 commented 2 months ago
./mythic-cli install github https://github.com/MythicAgents/Merlin
2024/05/08 11:29:43 [*] Creating temporary directory
2024/05/08 11:29:43 [*] Cloning https://github.com/MythicAgents/Merlin
Cloning into '/opt/Mythic/tmp'...
2024/05/08 11:29:44 [*] Parsing config.json
[*] Processing Payload Type merlin
[*] merlin already exists. Replace current version?  [y/n]: y
2024/05/08 11:29:45 [*] Stopping current container
2024/05/08 11:29:45 [*] Removing current version
2024/05/08 11:29:45 [+] Successfully removed the current version
2024/05/08 11:29:45 [*] Copying new version of payload into place
2024/05/08 11:29:45 [*] Adding service into docker-compose
WARN[0000] /opt/Mythic/docker-compose.yml: `version` is obsolete
No stopped containers
WARN[0000] /opt/Mythic/docker-compose.yml: `version` is obsolete
[+] Building 2.6s (9/12)                                         docker:default
 => [merlin internal] load build definition from Dockerfile                0.1s
 => => transferring dockerfile: 806B                                       0.0s
 => [merlin internal] load metadata for docker.io/ne0nd0g/merlin-base:v1.  1.0s
 => [merlin internal] load .dockerignore                                   0.0s
 => => transferring context: 2B                                            0.0s
 => [merlin internal] load build context                                   0.1s
 => => transferring context: 447.70kB                                      0.1s
 => [merlin 1/8] FROM docker.io/ne0nd0g/merlin-base:v1.6.1@sha256:d1d4a31  0.0s
 => CACHED [merlin 2/8] WORKDIR /Mythic                                    0.0s
 => CACHED [merlin 3/8] COPY [., .]                                        0.0s
 => CACHED [merlin 4/8] WORKDIR /Mythic/agent                              0.0s
 => ERROR [merlin 5/8] RUN go mod download                                 1.2s
------
 > [merlin 5/8] RUN go mod download:
0.722 exec /bin/sh: exec format error
------
failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1
2024/05/08 11:29:50 [+] Successfully installed service
2024/05/08 11:29:50 [*] Skipping over C2 Profile
2024/05/08 11:29:50 [*] Processing Documentation for merlin
[*] merlin documentation already exists. Replace current version?  [y/n]: y
2024/05/08 11:30:00 [*] Removing current version
2024/05/08 11:30:00 [+] Successfully removed the current version
2024/05/08 11:30:00 [*] Copying new documentation into place
2024/05/08 11:30:00 [+] Successfully installed Payload documentation
2024/05/08 11:30:00 [*] Skipping over C2 Documentation
2024/05/08 11:30:00 [*] Skipping over Wrapper Documentation
Ne0nd0g commented 2 months ago

@g4uss47 are you running this on a macOS host with an M-series CPU?

g4uss47 commented 2 months ago

It is being run on a Raspberry Pi with Raspbian 64 bit OS

Ne0nd0g commented 2 months ago

OK, I'll look into it. At first glance this looks more like a problem with Docker and not Merlin.