protobufbot / go-mirai-client Goto Github PK
View Code? Open in Web Editor NEW基于MiraiGo的客户端,使用反向 websocket 收发私聊、群聊消息,消息格式类似onebot。支持多账号,很稳定
License: GNU Affero General Public License v3.0
基于MiraiGo的客户端,使用反向 websocket 收发私聊、群聊消息,消息格式类似onebot。支持多账号,很稳定
License: GNU Affero General Public License v3.0
please add upload and download file of group and privite message. i need it very much
版本0.3.0
1.群聊消息无法接收,私聊消息是正常的。登录协议我选择的是ipad,扫码登录。
Spring-Mirai-Server-master\Spring-Mirai-Server-master.mvn\wrapper\maven-wrapper.jar中没有主清单属性
用反向ws连接云bot上游,因为过不了access_token验证,一直握手失败
time="2020-12-09 00:45:17" level=warning msg="连接Websocket服务器 ws://xn--v9x.net/ 时出现错误: websocket: bad handshake"
以及,似乎没有看到自动登录的设置。(如果是我眼拙,麻烦告知一下)
版本0.3.0
1.密码创建账号的SignServer无法通过校验,具体的部分是在pkg/bot/bot.go 第73行
func Login(cli *client.QQClient) (bool, error) {
cli.AllowSlider = true
if GTL.ClientProtocol == 1 && GTL.SignServer != "" {
wrapper.DandelionEnergy = Energy
wrapper.FekitGetSign = Sign
} else if GTL.SignServer != "" {
fmt.Println("SignServer 不支持该协议")
}
我填的是我自己搭建的内网SignServer,框架为unidbg-fetch-qsign,内容为http://192.168.49.162:18901,但是不管怎么换协议,都会进入“SignServer 不支持该协议”的分支内。
邀请机器人进群后,授予机器人管理权限,在调用机器人管理指令时发现机器人没有管理权限
检测到 ProtobufBot/Go-Mirai-Client 一共引入了63个开源组件,存在1个漏洞
漏洞标题:Gin-Gonic Gin 环境问题漏洞
缺陷组件:github.com/gin-gonic/[email protected]
漏洞编号:CVE-2020-28483
漏洞描述:Gin-Gonic Gin是Gin-Gonic团队的一个基于Go语言的用于快速构建Web应用的框架。
github.com/gin-gonic/gin 全部版本存在安全漏洞,该漏洞源于可以通过设置X-Forwarded-For头来欺骗客户端的IP。
影响范围:(∞, 1.7.7)
最小修复版本:1.7.7
缺陷组件引入路径:main@->github.com/gin-gonic/[email protected]
另外还有几个漏洞,详细报告:https://mofeisec.com/jr?p=a10600
go build -ldflags "-s -w -extldflags '-static'" -o gmc ./service/gmc
pkg/bot/bot.go:119:11: undefined: wrapper.RegisterSign
希望能增加一个网页的访问密码,有时候为了方便想在外网用,怕不安全
QQ: 8.8.33.6300
WARN[2023-10-05 11:01:44] 0
WARN[2023-10-05 11:01:44] ?uin=0&android_id=&guid=&qimei36=&key=
WARN[2023-10-05 11:01:44] 初始化 Sign 失败
%!(EXTRA *url.Error=Get "/register?uin=0&android_id=&guid=&qimei36=&key=": unsupported protocol scheme "")
求修复视频url为空的问题
许久没有同步Maria更新了
RT
腾讯云Linux, 出口带宽1M, 链接的图片大小为406kb
�[36mINFO�[0m[2021-10-01 17:39:52] Bot(1649565448) Private(649565448) <- <image url="http://域名/meituxiuxiu_7029.jpg"/> �[31mERRO�[0m[2021-10-01 17:40:12] failed to upload private image, dial tcp 180.102.111.81:14000: i/o timeout connect error github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH github.com/Mrs4s/[email protected]/client/highway.go:121 github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage github.com/Mrs4s/[email protected]/client/image.go:60 github.com/Mrs4s/MiraiGo/client.(*QQClient).uploadPrivateImage github.com/Mrs4s/[email protected]/client/image.go:135 github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadPrivateImage github.com/Mrs4s/[email protected]/client/image.go:124 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessPrivateSendingMessage github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:51 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendPrivateMsg github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:157 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:176 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143 github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1 github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78 github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1 github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118 runtime.goexit runtime/asm_amd64.s:1581 upload failed github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage github.com/Mrs4s/[email protected]/client/image.go:63 github.com/Mrs4s/MiraiGo/client.(*QQClient).uploadPrivateImage github.com/Mrs4s/[email protected]/client/image.go:135 github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadPrivateImage github.com/Mrs4s/[email protected]/client/image.go:124 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessPrivateSendingMessage github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:51 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendPrivateMsg github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:157 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:176 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1 github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143 github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1 github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78 github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1 github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118 runtime.goexit runtime/asm_amd64.s:1581
INFO[2023-08-18 17:21:55] 初始化日志
INFO[2023-08-18 17:21:55] 登录中...
INFO[2023-08-18 17:21:55] connect to server: [59.83.207.254:8080]
WARN[2023-08-18 17:21:55] 设备信息被封禁,请删除设备(device)文件夹里对应设备文件后重试
INFO[2023-08-18 17:21:55] 验证码处理页面: http://localhost:9000/
ERRO[2023-08-18 17:21:55] 当前应用版本过低,请升级至最新版或联系客服沟通。
WARN[2023-08-18 17:21:55] 登陆失败,建议开启/关闭设备锁后重试,或删除device-.json文件后再次尝试
ERRO[2023-08-18 17:21:55] 密码错误或账号被冻结
ERRO[2023-08-18 17:21:55] failed to login, err: 遇到不可处理的登录错误
使用版本为0.3.0
//go:embed static
具体报错为
....\pkg\static\static.go:10:12: pattern static: no matching files found
我从已发布包中下载源码也没有发现前端文件。
你好,在运行的时候在MyAspect.java变量log找不到符号,是什么意思。
手里还有一台玩客云 架构是armv7 感谢
Sent from PPHub
ERRO[2021-09-24 21:39:40] failed to upload group image, dial tcp 180.109.192.140:14000: i/o timeout
connect error
github.com/Mrs4s/MiraiGo/client.(*QQClient).highwayUploadByBDH
github.com/Mrs4s/[email protected]/client/highway.go:121
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
github.com/Mrs4s/[email protected]/client/image.go:60
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
runtime/asm_amd64.s:1581
upload failed
github.com/Mrs4s/MiraiGo/client.(*QQClient).UploadGroupImage
github.com/Mrs4s/[email protected]/client/image.go:63
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.preProcessGroupSendingMessage
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:98
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.HandleSendGroupMsg
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/api_handler.go:173
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.handleApiFrame
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:181
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot.OnWsRecvMessage.func1
github.com/ProtobufBot/Go-Mirai-Client/pkg/bot/remote.go:143
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws.NewSafeWebSocket.func2.1
github.com/ProtobufBot/Go-Mirai-Client/pkg/safe_ws/safe_ws.go:78
github.com/ProtobufBot/Go-Mirai-Client/pkg/util.SafeGo.func1
github.com/ProtobufBot/Go-Mirai-Client/pkg/util/util.go:118
runtime.goexit
runtime/asm_amd64.s:1581
私聊没问题,只会 failed to upload group image
希望能增加 被动连接websocket 且支持多个消息处理服务器进行连接
我是在VPS上挂您的程序,运行后,打开http://服务器IP:9000 显示404错误。请问是我姿势不对吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.