Giter Club home page Giter Club logo

Comments (5)

moloch-- avatar moloch-- commented on July 18, 2024 1

image

from sliver.

rkervella avatar rkervella commented on July 18, 2024

Alright finally found the issue:

goZipFSPath := filepath.Join("fs", runtime.GOOS, runtime.GOARCH, "go.zip")
goZip, err := assetsFs.ReadFile(goZipFSPath)
if err != nil {
setupLog.Errorf("static asset not found: %s", goZipFSPath)
return err
}

We need to use path.Join() instead of filepath.Join() here because embed.fs doesn't care about platform specific paths, and uses Unix notation. So we end up looking for Windows paths in the embedded filesystem, and since they don't exist we return an error. I'll need to check other places where we do that before pushing a fix, but TL;DR is it's Windows specific.

from sliver.

rkervella avatar rkervella commented on July 18, 2024

Also, this one seems to be a duplicate of #902 now that I think of it.

from sliver.

rkervella avatar rkervella commented on July 18, 2024

Looks like there's another bug with GOPATH not being set on Windows:

INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:164] go cmd: 'C:\Users\lab\.sliver\go\bin\go tool dist list'
INFO[2023-08-04T13:03:57-07:00] [sliver/server/rpc/rpc-client-logs.go:117] Received 22 bytes of client console log data for stream asciicast
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:167] --- env ---
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] CC=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] CGO_ENABLED=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOOS=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOARCH=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOPATH=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOCACHE=C:\Users\lab\.sliver\go\cache
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOMODCACHE=C:\Users\lab\.sliver\go\modcache
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] GOPROXY=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] HTTP_PROXY=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] HTTPS_PROXY=
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:169] PATH=C:\Users\lab\.sliver\go\bin:C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\lab\AppData\Local\Microsoft\WindowsApps;C:\Users\lab\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\lab\.dotnet\tools
INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:171] --- stdout ---

INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:172] --- stderr ---
go tool dist: mkdir C:\Windows\go-tool-dist-3250880400: Access is denied.

INFO[2023-08-04T13:03:57-07:00] [sliver/server/gogo/go.go:173] exit status 1

from sliver.

rkervella avatar rkervella commented on July 18, 2024

image

So much this lol, I raged quit this afternoon honestly. I'll have another look next week.

from sliver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.