Open timukas opened 5 months ago
Looks like import for the fmt
package in the shell_freebsd.go
was removed. It will be a relatively easy fix to add the package import back.
@timukas here is a temporary work around that you can use until I push new version to main.
This temporary fix will need to be done each time the Merlin container restarts
sudo docker exec -it merlin /bin/bash
apt install nano -y
/opt
directory: git clone https://github.com/Ne0nd0g/merlin-agent /opt/merlin-agent
shell_freebsd.go
file and add the string "fmt"
after the import statement: nano /opt/merlin-agent/commands/shell_freebsd.go
so that it looks like this:
import (
"fmt"
"os/exec"
"strings"
)
cd /Mythic/agent
go.mod
file to point to your modified directory: go mod edit -replace=github.com/Ne0nd0g/merlin-agent/v2=/opt/merlin-agent
sudo docker exec -it merlin /bin/bash
root@merlin:/Mythic/container# apt install nano -y
root@merlin:/Mythic/container# git clone https://github.com/Ne0nd0g/merlin-agent /opt/merlin-agent
root@merlin:/Mythic/agent# nano /opt/merlin-agent/commands/shell_freebsd.go
root@merlin:/Mythic/container# cd /Mythic/agent/
root@merlin:/Mythic/agent# go mod edit -replace=github.com/Ne0nd0g/merlin-agent/v2=/opt/merlin-agent
Thanks.
Now i can compile merlin payload for freebsd, but only help
and clear
commands are available for freebsd.
Hello,
Using latest Merlin agent on latest Mythic. When building default Merlin payload, then it fails with following message:
Any thoughts on that?