unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

Gobfuscate not able to create tmp file #47

Closed JacobPimental closed 2 years ago

JacobPimental commented 3 years ago

I'm having a few issues getting gobfuscate to run properly for me. The first issue I ran into was that gobfuscate was not able to find my golang code in my GOPATH and made me put it into my GOROOT.

image

Now that I've done that it is unable to create a tmp directory, even when running as root.

image

Not quite sure what is causing both of these issues. I used to be able to run it without any problems. Are there any examples out there of others using this tool?

JacobPimental commented 3 years ago

So I managed to fix the tmp issue by setting GO111MODULE=auto. Now I am getting a new error stating that the obfuscated package name is not in GOROOT

package iknajednhgcdhkkegmfb/ibjhnphkkdcfjmhnmfif is not in GOROOT (/usr/lib/go/src/iknajednhgcdhkkegmfb/ibjhnphkkdcfjmhnmfif)

chrisjd20 commented 3 years ago

Im having the same issue and setting GO111MODULE=auto doesnt help.

gobfuscate execcmd outbin
2021/08/12 14:32:25 Copying GOPATH...
Failed to copy into a new GOPATH: lstat /tmp/177597213/src: no such file or directory