lesnuages / hershell

Multiplatform reverse shell generator
BSD 3-Clause "New" or "Revised" License
581 stars 97 forks source link

Error #6

Open d0ubl3puls4r opened 4 years ago

d0ubl3puls4r commented 4 years ago

hello I would like to know how to reset the following error:

root@kali:~/hershell# make windows64 LHOST=192.168.1.9 LPORT=7766 **GOOS=windows GOARCH=amd64 go build --ldflags "-s -w -X main.connectString=192.168.1.9:7766 -X main.fingerPrint=$(openssl x509 -fingerprint -sha256 -noout -in server.pem | cut -d '=' -f2) -H=windowsgui" -o hershell.exe hershell.go hershell.go:13:2: cannot find package "github.com/lesnuages/hershell/meterpreter" in any of: /usr/lib/go-1.14/src/github.com/lesnuages/hershell/meterpreter (from $GOROOT) /root/go/src/github.com/lesnuages/hershell/meterpreter (from $GOPATH) hershell.go:14:2: cannot find package "github.com/lesnuages/hershell/shell" in any of: /usr/lib/go-1.14/src/github.com/lesnuages/hershell/shell (from $GOROOT) /root/go/src/github.com/lesnuages/hershell/shell (from $GOPATH) make: * [Makefile:29: windows64] Error 1**

Tanks.

RedSunEmpire commented 3 years ago

Make sure the following env variable is set to off:

go env -w GO111MODULE=off

After that you will need to run go get on hershell again, this should resolve the errors from make

code4happylife commented 2 years ago

This actually solved my problem. Thanks!

donadelden commented 12 months ago

Solved mine too, thanks!