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

web界面无法使用 #106

Closed websecer closed 2 years ago

websecer commented 2 years ago

Description

我在服务器安装鸭嘴兽,然后把web端口转发到本地,通过xshell连接,然后浏览本地转发的端口,可以正常使用,过一天后,在刷新本地web端口就会报错Cannot connect to API EndPoint: Error: Request failed with status code 500
然后服务器报错2022/01/24 14:31:45 [Recovery] 2022/01/24 - 14:31:45 panic recovered:
json: unsupported type: func() (io.ReadCloser, error)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/render/json.go:59 (0xa546a6)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:841 (0xa5acc8)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:884 (0xaf9b04)
/home/runner/work/Platypus/Platypus/lib/context/restful.go:334 (0xaf99a1)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa6ab90)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/recovery.go:83 (0xa6ab77)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa69c13)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/logger.go:241 (0xa69bd2)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/context.go:161 (0xa60d4f)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:409 (0xa60d36)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.3/gin.go:367 (0xa607ec)
/opt/hostedtoolcache/go/1.16.5/x64/src/net/http/server.go:2887 (0x798082)
/opt/hostedtoolcache/go/1.16.5/x64/src/net/http/server.go:1952 (0x7934ac)
/opt/hostedtoolcache/go/1.16.5/x64/src/runtime/asm_amd64.s:1371 (0x46e900)

Environments

No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

WangYihang commented 2 years ago

您说的问题之前有人提过了。

目前该问题在主分支已经修复,但是由于这个改动太小了就没有发 Release。 需要麻烦师傅 clone 代码并且手动编译一下。

详见:

WangYihang commented 2 years ago

Pre-Release 已发。