hershell icon indicating copy to clipboard operation
hershell copied to clipboard

Error

Open d0ubl3puls4r opened this issue 5 years ago • 3 comments

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.

d0ubl3puls4r avatar Apr 03 '20 05:04 d0ubl3puls4r

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

RedSunEmpire avatar Sep 14 '21 12:09 RedSunEmpire

This actually solved my problem. Thanks!

code4happylife avatar Jun 30 '22 02:06 code4happylife

Solved mine too, thanks!

donadelden avatar Nov 30 '23 13:11 donadelden