Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Well done - but failes in build #21

Open
david-bla opened this issue Aug 11, 2017 · 1 comment
Open

Well done - but failes in build #21

david-bla opened this issue Aug 11, 2017 · 1 comment

Comments

@david-bla
Copy link

david-bla commented Aug 11, 2017

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

@david-bla
Copy link
Author

david-bla commented Aug 11, 2017

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant