DNSStager icon indicating copy to clipboard operation
DNSStager copied to clipboard

Issue with installing go lang agent

Open xSunShine opened this issue 2 years ago • 2 comments

Hello,

When ever i try to generate go lang payload i got this error:

usr/bin/go golangtemptemplate.go:12:2: cannot find package "github.com/miekg/dns" in any of: /usr/lib/go-1.18/src/github.com/miekg/dns (from $GOROOT) /root/go/src/github.com/miekg/dns (from $GOPATH) golangtemptemplate.go:13:2: cannot find package "golang.org/x/sys/windows" in any of: /usr/lib/go-1.18/src/golang.org/x/sys/windows (from $GOROOT) /root/go/src/golang.org/x/sys/windows (from $GOPATH) [-] Error while generating the agent

i tryed installing as mentioned in github to install 1.16.3 and also "go install golang.org/x/sys github.com/miekg/dns " with "@latest" on the end of each command and still can't create go lang payload.

i have very little experiance with go lang so any suggestions.

xSunShine avatar Feb 12 '23 19:02 xSunShine

I made it to this now :

!] DNSStager will generate agent for x86 architecture [!] DNSStager will generate GOLANG agent for you [!] DNSStager will use IPV6 to transfer your shellcode [!] DNSStager will encode your payload using XOR key 0x20 /usr/bin/go go: cannot find GOROOT directory: ~/root/usr/bin/go [-] Error while generating the agent

tryed many solutions nothing worked.

command : which go /usr/bin/go

this the output

xSunShine avatar Feb 12 '23 20:02 xSunShine

Why are you trying to produce malware?

Alangopro avatar Sep 30 '25 17:09 Alangopro