unixpickle / gobfuscate

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

Can't load package eventhough it's there #23

Open misterch0c opened 4 years ago

misterch0c commented 4 years ago

I'm having this error and as you can see my GOPATH is copied and changed to /tmp/random. I can see that the files are in the /tmp files but still I'm getting this, no idea why...

[unkn0wn@unkn0wn-pc gobfuscate]$ ./gobfuscate -verbose github.com/brimstone/go-shellcode /home/unkn0wn/test
2019/09/09 08:24:51 Copying GOPATH...
2019/09/09 08:24:52 Obfuscating package names...
2019/09/09 08:24:53 Obfuscating strings...
2019/09/09 08:24:53 Obfuscating symbols...

[Verbose] Temporary path: /tmp/064222581
[Verbose] Go build command: go build -ldflags=-s -w -extldflags "-static" -o /home/unkn0wn/test pngifcmecdidbeljejdf/docfeloaijbdnmfecioi/gbljnboigijdlafjfghg
[Verbose] Environment variables:
GOROOT=/usr/lib/go
GOARCH=amd64
GOOS=linux
GOPATH=/tmp/064222581
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
GOCACHE=/tmp/064222581/cache

can't load package: package pngifcmecdidbeljejdf/docfeloaijbdnmfecioi/gbljnboigijdlafjfghg: cannot find package "pngifcmecdidbeljejdf/docfeloaijbdnmfecioi/gbljnboigijdlafjfghg" in any of:
    /usr/lib/go/src/pngifcmecdidbeljejdf/docfeloaijbdnmfecioi/gbljnboigijdlafjfghg (from $GOROOT)
    /tmp/064222581/src/pngifcmecdidbeljejdf/docfeloaijbdnmfecioi/gbljnboigijdlafjfghg (from $GOPATH)
Failed to compile: exit status 1
unixpickle commented 3 years ago

huh, this is super odd. Are the source files properly copied