@diyigemt 只是打错了,肯定是2.15.0,2.6.0是不能用FixProtocol的
莫要在意,已编辑
目前我是没办法了,只能期望mirai能把sign实现了,实在登不上去
(而且经我测试我用手机是真的登的上去,但是mirai不行)
WorldLeen 发布的帖子
-
RE: 【已解决】非常绝望,目前已尝试所有办法都无法登录
-
【已解决】非常绝望,目前已尝试所有办法都无法登录
自从24号腾讯开始大规模封杀机器人之后,项目就一直没有正常运行过,我不知道大家是否跟我一样,但是我得跟大家说一下尝试过程
1.mirai-2.15.0-RC + fix-protocol-version-1.8.4
使用ANDROID_PHONE,密码登录:
code=45,无法登陆2.mirai-2.15.0-RC + fix-protocol-version-1.8.4 协议设定为8.8.88
使用ANDROID_PAD,密码登录:
成功登录了,但程序只工作了大约8小时后被踢下线,随后无法再以此方式登录,code=453.mirai-2.15.0-RC + fix-protocol-version-1.8.4
使用MACOS,扫码登录:
code=45,无法登陆4.mirai-2.15.0-RC + fix-protocol-version-1.8.4
使用ANDROID_WATCH,扫码登录:
登录失败,被提示要求在同一网络环境下登陆5.mirai-2.15.0-RC + fix-protocol-version-1.8.4
使用ANDROID_WATCH,扫码登录,在本地架设mirai进程,用手机在同一内网下扫码:
登录成功
但程序只工作了1个小时之后,便无法再发送聊天消息。
进程重启依然可以登陆,但依旧无法发送任何聊天消息很明显,目前我已经使用了所有可能的解决方案,但最终还是没能正常工作,可见腾讯对Bot封杀决心有多大。
现在用户已经没有其他办法再工作了,只能期望于作者大佬能实现QQ的code=45 sign算法来登录了。(悲)后续编辑:
让我们来解决它!
https://mirai.mamoe.net/topic/2348/miraisignhandler-mirai对接sign签名服务器-解决登录code-45失败和签名风控检测/1
目前已经彻底越过code=45,成功登录 -
RE: 协议问题汇报
mirai 版本
mirai-core-all-2.15.0-RC-all.jar
fix-protocol-version-1.8.3.mirai2.jar协议版本信息
已安装fix-protocol-version-1.8.3,协议版本输出如下:
{ANDROID_PHONE=ANDROID_PHONE 8.9.58.11170 2023-05-19T11:35+08:00, ANDROID_PAD=ANDROID_PAD 8.9.58.11170 2023-05-19T11:35+08:00, ANDROID_WATCH=ANDROID_WATCH 2.0.8 2019-06-03T20:25:31+08:00, IPAD=IPAD 8.9.33.614 2021-12-31T11:36:26+08:00, MACOS=MACOS 6.7.9 1970-01-01T08:00+08:00}登录方式及使用的协议
ANDROID_PHONE:日志如下{ANDROID_PHONE=ANDROID_PHONE 8.9.58.11170 2023-05-19T11:35+08:00, ANDROID_PAD=ANDROID_PAD 8.9.58.11170 2023-05-19T11:35+08:00, ANDROID_WATCH=ANDROID_WATCH 2.0.8 2019-06-03T20:25:31+08:00, IPAD=IPAD 8.9.33.614 2021-12-31T11:36:26+08:00, MACOS=MACOS 6.7.9 1970-01-01T08:00+08:00} SLF4J: No SLF4J providers were found. SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console... 2023-06-25 08:04:15 V/Net <QQ号>: Validated caches. 2023-06-25 08:04:15 V/Net <QQ号>: No server list cached. 2023-06-25 08:04:17 D/Net <QQ号>: CAS: JustInitialized -> ProducerReady: true 2023-06-25 08:04:17 D/Net <QQ号>: CAS: ProducerReady -> Producing(deferred.completed=false): true 2023-06-25 08:04:17 I/Net <QQ号>: ECDH key is invalid, start to fetch ecdh public key from server. 2023-06-25 08:04:17 D/Net <QQ号>: CAS: Producing(deferred.completed=false) -> Consuming(value=null): true 2023-06-25 08:04:17 I/Net <QQ号>: Successfully fetched ecdh public key from server. 2023-06-25 08:04:17 V/Net <QQ号>: [AuthControl/acquire] Acquiring auth method 2023-06-25 08:04:17 D/Net <QQ号>: CAS: Consuming(value=Password@124889496) -> Consumed(CompletableDeferredImpl{Active}@5c3df6b): true 2023-06-25 08:04:17 D/Net <QQ号>: [AuthControl/acquire] Authorization responded: Password@124889496 2023-06-25 08:04:17 I/TLV544Provider: t544 command: 810_9 2023-06-25 08:04:17 V/Net <QQ号>: Send: wtlogin.login(9:password-login) 2023-06-25 08:04:18 I/Bot <QQ号>: Calculating type 2 PoW, it can take some time.... 2023-06-25 08:04:18 I/Bot <QQ号>: Got PoW result, cost: 242 ms 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] 需要滑动验证码, 请按照以下链接的步骤完成滑动验证码, 然后输入获取到的 ticket 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] Slider captcha required. Please solve the captcha with following link. Type ticket here after completion. 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] @see https://github.com/project-mirai/mirai-login-solver-selenium 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] @see https://docs.mirai.mamoe.net/mirai-login-solver-selenium/ 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] 或者输入 helper 来使用 TxCaptchaHelper 完成滑动验证码 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] Or type helper to resolve slider captcha with TxCaptchaHelper.apk 2023-06-25 08:04:18 W/Bot <QQ号>: [SliderCaptcha] TxCaptchaHelper 的在线服务疑似被屏蔽,可能无法使用。TxCaptchaHelper 现已无法满足登录QQ机器人,请在以下链接下载全新的验证器 2023-06-25 08:04:18 W/Bot <QQ号>: [SliderCaptcha] The service of TxCaptchaHelper might be blocked. We recommend you to download the new login solver plugin in below link. 2023-06-25 08:04:18 W/Bot <QQ号>: [SliderCaptcha] @see https://github.com/KasukuSakura/mirai-login-solver-sakura 2023-06-25 08:04:18 I/Bot <QQ号>: [SliderCaptcha] Captcha link: https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=<QQ号>&sid=6711530633897149569&cap_cd=yNCHbyPr6cXGuOTfCVvxePfcmNxPt121ORUsnIhsat6FGrpWidQ6ag**&clientype=1&apptype=2 2023-06-25 08:04:18 V/Net <QQ号>: Recv: wtlogin.login 2023-06-25 08:04:52 I/Bot <QQ号>: [SliderCaptcha] 正在提交中... 2023-06-25 08:04:52 I/Bot <QQ号>: [SliderCaptcha] Submitting... 2023-06-25 08:04:52 I/TLV544Provider: t544 command: 810_2 2023-06-25 08:04:52 V/Net <QQ号>: Send: wtlogin.login(2:submit-slider) 2023-06-25 08:04:52 W/Net <QQ号>: Failed with auth method: Password@124889496 net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:489) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) 2023-06-25 08:04:52 V/Net <QQ号>: Recv: wtlogin.login 2023-06-25 08:04:52 V/Net <QQ号>: [AuthControl/resume] Fire auth failed with cause: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=) 2023-06-25 08:04:52 D/Net <QQ号>: CAS: Consumed(CompletableDeferredImpl{Active}@5c3df6b) -> ProducerReady: true 2023-06-25 08:04:52 D/Net <QQ号>: CAS: ProducerReady -> Producing(deferred.completed=false): true 2023-06-25 08:04:52 D/Net <QQ号>: CAS: Producing(deferred.completed=false) -> Consuming(value=null): true 2023-06-25 08:04:52 W/Net <QQ号>: Exception in resumeConnection. net.mamoe.mirai.internal.network.handler.selector.SelectorRequireReconnectException 2023-06-25 08:04:52 I/Net <QQ号>: ECDH key is valid. 2023-06-25 08:04:52 V/Net <QQ号>: [AuthControl/acquire] Acquiring auth method 2023-06-25 08:04:52 D/Net <QQ号>: CAS: Consuming(value=null) -> Consumed(CompletableDeferredImpl{Active}@784283f): true 2023-06-25 08:04:52 D/Net <QQ号>: CAS: Consumed(CompletableDeferredImpl{Active}@784283f) -> Finished(Consumed(CompletableDeferredImpl{Active}@784283f), net.mamoe.mirai.utils.channels.ProducerFailureException: Producer failed to produce a value, see cause): true 2023-06-25 08:04:52 D/Net <QQ号>: [AuthControl/acquire] Authorization responded: Error[net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)]@90835254 2023-06-25 08:04:52 W/Net <QQ号>: Failed with auth method: Error[net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)]@90835254 net.mamoe.mirai.network.BotAuthorizationException: BotAuthorization(BotAuthorization.byPassword(<ERASED>)) threw an exception during authorization process. See cause below. at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:262) at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:247) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:489) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ... 5 more 2023-06-25 08:04:52 W/Net <QQ号>: Exception in resumeConnection. net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: BotAuthorization(BotAuthorization.byPassword(<ERASED>)) threw an exception during authorization process. See cause below. at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:249) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Caused by: net.mamoe.mirai.network.BotAuthorizationException: BotAuthorization(BotAuthorization.byPassword(<ERASED>)) threw an exception during authorization process. See cause below. at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:262) at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:247) ... 6 more Suppressed: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:489) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ... 5 more Caused by: [CIRCULAR REFERENCE: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)] 2023-06-25 08:04:52 W/Net <QQ号>: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: BotAuthorization(BotAuthorization.byPassword(<ERASED>)) threw an exception during authorization process. See cause below.) 2023-06-25 08:04:52 I/Bot <QQ号>: Bot cancelled: Bot closed Jun 25, 2023 8:04:52 AM application.leenbot.Main main SEVERE: null net.mamoe.mirai.network.BotAuthorizationException: BotAuthorization(BotAuthorization.byPassword(<ERASED>)) threw an exception during authorization process. See cause below. at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:262) at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:247) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664) Suppressed: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:489) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) ... 5 more Caused by: [CIRCULAR REFERENCE: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(<QQ号>), code=45, title=禁止登录, message=登录失败,建议升级最新版本后重试,或通过问题反馈与我们联系。, errorInfo=)]
ANDROID_WATCH:直接提示使用扫码或短信登录
出现的问题
无法登陆