You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
Yesterday I was able to build on a live kali without bigger problems.
I changed my test setup and created some vms but i wasnt able to build sucesfully again...
One Issue is that after the debian install "apt install golang" there is no $GOPATH and $GOROOT set.
I usually check where the main files are "/usr/lib/go" and export GOROOT.
I set the GOPATH to $HOME/go and checked for "apt install build-essential".
^- maybe put these in "prerequisites"
I added the working dir to the PATH env ( export PATH=$PATH:$GOPATH/bin ).
Today im not able to build your project on any system. (Tried a debian8, ubuntu14, kali)
I got the same error over and over again:
mkdir -p /root/go/src/github.com/mauri870/ransomware/bin/server
cd /root/go/src/github.com/mauri870/ransomware/build/ransomware && GOOS=windows GOARCH=386 go build --ldflags "-s -w -H windowsgui -X main.ServerBaseURL=https://192.168.31.131:8080" -o /root/go/src/github.com/mauri870/ransomware/bin/ransomware.exe
#github.com/mauri870/ransomware/build/ransomware
runtime.main: call to external function main.main
runtime.main: undefined: main.main
Makefile:33: recipe for target 'build' failed
make: *** [build] Error 2
Thank you in advance
The text was updated successfully, but these errors were encountered:
The docker way is working well!
I've to dig deeper in golang and docker.
I stated docker for using ci with gitlab but it seems so useful, like the golang (you project are the first golang files i red) nice language!
But anyway I'd like to get behind this runtime.main calles main.main issue... seemed to be related to a env or ??? the functions are defined properly and I didn't change these lines.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey, first thank you for this example.
Yesterday I was able to build on a live kali without bigger problems.
I changed my test setup and created some vms but i wasnt able to build sucesfully again...
One Issue is that after the debian install "apt install golang" there is no $GOPATH and $GOROOT set.
I usually check where the main files are "/usr/lib/go" and export GOROOT.
I set the GOPATH to $HOME/go and checked for "apt install build-essential".
^- maybe put these in "prerequisites"
I added the working dir to the PATH env (
export PATH=$PATH:$GOPATH/bin
).Today im not able to build your project on any system. (Tried a debian8, ubuntu14, kali)
I got the same error over and over again:
mkdir -p /root/go/src/github.com/mauri870/ransomware/bin/server
cd /root/go/src/github.com/mauri870/ransomware/build/ransomware && GOOS=windows GOARCH=386 go build --ldflags "-s -w -H windowsgui -X main.ServerBaseURL=https://192.168.31.131:8080" -o /root/go/src/github.com/mauri870/ransomware/bin/ransomware.exe
#github.com/mauri870/ransomware/build/ransomware
runtime.main: call to external function main.main
runtime.main: undefined: main.main
Makefile:33: recipe for target 'build' failed
make: *** [build] Error 2
Thank you in advance
The text was updated successfully, but these errors were encountered: