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.5k stars 220 forks source link

Makefile not changed #240

Open Astranix593 opened 2 days ago

Astranix593 commented 2 days ago

in the most recent commit you changed the directory where the go file for platypus and termite are located, this was not properly reflected in the makefile, so it's using the wrong paths

WangYihang commented 1 day ago

Thanks for reporting, I will check it out as soon as possible.

WangYihang commented 1 day ago

I am considering to move to GoReleaser instead of Makefile. GoReleaser is a modern GoLang distribuition tool for better performance and CI/CD pipeline friendly.

WangYihang commented 1 day ago

In the next few releases, I will fix the Dockerfile and the docker compose files. Thanks again for reporting this issue.

WangYihang commented 1 day ago
$ go install github.com/goreleaser/goreleaser/v2@latest
$ goreleaser build --snapshot --clean
$ ls ./dist/ | grep agent
platypus-agent_darwin_amd64_v1
platypus-agent_darwin_arm64
platypus-agent_dragonfly_amd64_v1
platypus-agent_freebsd_386
platypus-agent_freebsd_arm_6
platypus-agent_freebsd_arm64
platypus-agent_linux_386
platypus-agent_linux_amd64_v1
platypus-agent_linux_arm_6
platypus-agent_linux_arm64
platypus-agent_linux_loong64
platypus-agent_linux_mips64_hardfloat
platypus-agent_linux_mips64le_hardfloat
platypus-agent_linux_mips_hardfloat
platypus-agent_linux_mipsle_hardfloat
platypus-agent_linux_ppc64
platypus-agent_linux_ppc64le
platypus-agent_linux_riscv64
platypus-agent_linux_s390x
platypus-agent_netbsd_386
platypus-agent_netbsd_amd64_v1
platypus-agent_netbsd_arm_6
platypus-agent_netbsd_arm64
platypus-agent_openbsd_amd64_v1
platypus-agent_openbsd_arm_6
platypus-agent_openbsd_arm64
platypus-agent_solaris_amd64_v1
platypus-agent_windows_386
platypus-agent_windows_amd64_v1
platypus-agent_windows_arm_6
platypus-agent_windows_arm64
$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent          
the required flags `-h, --host', `-p, --port' and `-t, --token' were not specified

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --version
{"commit":"bacb8aad79a94af83bf6a7b3c132d3ea5e7ba673","date":"2024-09-17T20:05:17Z","version":"1.5.1-SNAPSHOT-bacb8aa"}                                           

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --help   
Usage:
  platypus-agent [OPTIONS]

Application Options:
  -h, --host=                                Remote host
  -p, --port=                                Remote port
  -t, --token=                               API token
  -e, --env=[development|staging|production] Environment (default: production)
  -v, --version                              Print version information and exit

Help Options:
  -h, --help                                 Show this help message

$ ./dist/platypus-agent_linux_amd64_v1/platypus-agent --host 1.2.3.4 --port 13337 --token dummy-token
[Fx] PROVIDE    fx.Lifecycle <= go.uber.org/fx.New.func1()
[Fx] PROVIDE    fx.Shutdowner <= go.uber.org/fx.(*App).shutdowner-fm()
[Fx] PROVIDE    fx.DotGraph <= go.uber.org/fx.(*App).dotGraph-fm()
[Fx] PROVIDE    *zap.Logger <= main.main.InitLogger.func3()
[Fx] INVOKE             main.main.func1()
[Fx] RUN        provide: go.uber.org/fx.New.func1()
[Fx] RUN        provide: main.main.InitLogger.func3()
[Fx] INVOKE             main.main.func2()
2024-09-18T04:08:12.762+0800    INFO    platypus-agent/main.go:771      starting application
2024-09-18T04:08:12.762+0800    INFO    platypus-agent/main.go:774      connecting to server    {"endpoint": "1.2.3.4:13337"}