mauri870 / ransomware

A POC Windows crypto-ransomware (Academic). Now Ransom:Win32/MauriCrypt.MK!MTB
881 stars 411 forks source link

GOOS=windows make error #45

Closed Gembeltz closed 6 years ago

Gembeltz commented 6 years ago

screenshot from 2018-08-30 17-11-41

Gembeltz commented 6 years ago

screenshot from 2018-08-30 17-15-38 how to fix

awesomeness111 commented 6 years ago

Same : make -e GOOS=windows rm -r /root/ransomware/bin || true rm: cannot remove '/root/ransomware/bin': No such file or directory mkdir -p /root/ransomware/build/ransomware /root/ransomware/build/unlocker /root/ransomware/build/server openssl genrsa -out /root/ransomware/build/server/private.pem 4096 Generating RSA private key, 4096 bit long modulus ...................................................++ ..............................................................................................................................................++ e is 65537 (0x010001) openssl rsa -in /root/ransomware/build/server/private.pem -outform PEM -pubout -out /root/ransomware/build/ransomware/public.pem writing RSA key cd /root/ransomware/build/ransomware && go-bindata -pkg main -o public_key.go public.pem rsrc -manifest ransomware.manifest -ico icon.ico -o /root/ransomware/build/ransomware/ransomware.syso cp /root/ransomware/build/ransomware/ransomware.syso /root/ransomware/build/unlocker/unlocker.syso cd /root/ransomware/cmd && cp -r ransomware unlocker server /root/ransomware/build cd /root/ransomware/build/server && env GOOS=linux go run /src/crypto/tls/generate_cert.go --host localhost stat /src/crypto/tls/generate_cert.go: no such file or directory Makefile:21: recipe for target 'pre-build' failed make: *** [pre-build] Error 1

awesomeness111 commented 6 years ago

Found solution. All is ok. Thanks.

mbda81 commented 6 years ago

how did you solve it?

mauri870 commented 6 years ago

Set $GOROOT to point to your Go source tree. In my case is /usr/local/go