MythicAgents / poseidon

Poseidon is a Golang agent targeting Linux and macOS
Other
118 stars 32 forks source link

Builds fail with "go: updates to go.mod needed; to update it:" error #43

Closed stephenbradshaw closed 1 year ago

stephenbradshaw commented 1 year ago

Using commit c63e0f590e7e7525298bbcb4d88b6acf7194c99e of Poseidon, builds of the payload in Mythic 2.3.13 fail with output similar to the following.

STDERR:

[STDERR]
go: updates to go.mod needed; to update it:
    go mod tidy
/build/poseidon-linux-amd64 does not exist

I was able to fix the issue on my system and make builds work again by reversing this particular part of commit 62b6a4e622957f50887628396c247eafa7144a2e to change the go version in Payload_Type/poseidon/agent_code/go.mod back to the previous value of 1.15.

its-a-feature commented 1 year ago

I don't think we have this in the current main branch, but please reopen this if you encounter it again. Specifically after updating from 2.3 -> 3.0, that go.mod file should be tidied