Hi there !
I tried to build the agent with mythic for a x86 architecture and keep having failure.
Build Message:
Processing C2 Profile - http:
Step 1/3 - Issuing OPSEC Check
Called opsec check:
{{http map[AESPSK:map[dec_key:pYnhhV+/bVgjGlTf5J9lEOcKhHi6ZVy5chK+HF6PdHY= enc_key:pYnhhV+/bVgjGlTf5J9lEOcKhHi6ZVy5chK+HF6PdHY= value:aes256_hmac] callback_host:https://myurl callback_interval:10 callback_jitter:23 callback_port:443 encrypted_exchange_check:true get_uri:index headers:map[User-Agent:Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko] killdate:2026-03-25 post_uri:data proxy_host: proxy_pass: proxy_port: proxy_user: query_path_name:q]}}
Step 2/3 - Issuing Config Check
Specified use of SSL and ports indicate the use of a redirector, or a mismatch in expected connectivity.
This means there should be the following connectivity for success:
Agent via HTTPS on port 443 to https://myurl (should be a redirector).
Redirector then forwards request to C2 Profile container WITHOUT SSL on one of the following ports: [10080]
Alternatively, this might mean that you want to do SSL but are not using SSL within your C2 Profile container.
To add SSL to your C2 profile:
1. Go to the C2 Profile page
2. Click configure for the http profile
3. Change 'use_ssl' to 'true' and make sure the port is 443
4. Click to stop the profile and then start it again
Step 3/3 - Issuing Start command
Sending Build command
there was an error compiling the agent
StdErr:
exit status 1
StdOut:
# github.com/MythicAgents/merlin/Payload_Type/agent
/usr/local/go/pkg/tool/linux_amd64/link: running x86_64-w64-mingw32-gcc failed: exit status 1
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingwex.a when searching for -lmingwex
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: cannot find -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/lib/gcc/x86_64-w64-mingw32/10-win32/../../../../x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
/usr/bin/x86_64-w64-mingw32-ld: skipping incompatible /usr/x86_64-w64-mingw32/lib/libmingw32.a when searching for -lmingw32
collect2: error: ld returned 1 exit status
Build: go build -o merlin.bin -buildmode=c-shared -ldflags -s -w -X "main.payloadID=95bcb9dc-614b-452e-97e4-338076544dbb" -X "main.profile=http" -X "main.httpClient=winhttp" -X "main.url=https://myurl:443/data" -X "main.psk=pYnhhV+/bVgjGlTf5J9lEOcKhHi6ZVy5chK+HF6PdHY=" -X "main.transforms=mythic,aes" -X "main.useragent=Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko" -X "main.sleep=10s" -X "main.skew=2300" -X "main.killdate=1774396800" -X "main.maxretry=100" -X "main.padding=4096" -X "main.verbose=false" -X "main.debug=false" -buildid= -tags=mythic,winhttp,shared .
I tried to install the debian package i686-w64-mingw32-gcc directly in the merlin container. Solved nothing.
Hi there !
I tried to build the agent with mythic for a x86 architecture and keep having failure.
Build Message:
I tried to install the debian package
i686-w64-mingw32-gccdirectly in the merlin container. Solved nothing.