WangYihang / Platypus

:hammer: A modern multiple reverse shell sessions manager written in go
http://platypus-reverse-shell.vercel.app
GNU Lesser General Public License v3.0
1.52k stars 226 forks source link

can't run/build the source code #63

Open mr-m0nst3r opened 3 years ago

mr-m0nst3r commented 3 years ago

Description

can't run/build the source code

Reproduce

  1. go run .\platypus.go
lib\util\compiler\compiler.go:15:2: no required module provides package github.com/WangYihang/Platypus/lib/util/resource; to add it:
        go get github.com/WangYihang/Platypus/lib/util/resource
  1. go get github.com/WangYihang/Platypus/lib/util/resource
    go get: module github.com/WangYihang/Platypus/lib/util/resource: reading https://goproxy.cn/github.com/%21wang%21yihang/%21platypus/lib/util/resource/@v/list: 404 Not Found
        server response: not found: module github.com/WangYihang/Platypus/lib/util/resource: no matching versions for query "latest"

    ...

Environments

WangYihang commented 3 years ago
git clone https://github.com/WangYihang/Platypus
cd Platypus
make install_dependency
make release
WangYihang commented 3 years ago

The frontend of Platypus uses some features of NodeJS which is not supported on the Windows platform. Thus Platypus can not be compiled on the windows platform. Fortunately, Golang supports cross-compiling, we can compile Platypus on the Linux platform using the commands listed above.

WangYihang commented 3 years ago

You can check this file (./Makefile) to understand the compiling process.

WangYihang commented 3 years ago

Or you can download the release binaries here if you like.

WangYihang commented 3 years ago

Run Platypus from Source on the Windows platform:

mkdir termites
env GOOS=linux GOARCH=amd64 go build -o termites/termite_linux_amd64 termite.go

go-bindata -pkg resource -o ./lib/util/resource/resource.go ./termites/... ./lib/runtime/...
go run .\platypus.go

WebUI will be unavailable through this method.