Mrs4s / go-cqhttp

cqhttp的golang实现,轻量、原生跨平台.
GNU Affero General Public License v3.0
10.42k stars 1.63k forks source link

[Bug]: 登陆失败,提交滑条验证码后提示token过期并返回45 #2442

Closed lvwenzhuo2003 closed 1 year ago

lvwenzhuo2003 commented 1 year ago

请确保您已阅读以上注意事项,并勾选下方的确认框。

go-cqhttp 版本

dev/f16d72f

运行环境

Linux

运行架构

AMD64

连接方式

WebSocket (反向)

使用协议

6 | aPad

重现步骤

使用-faststart启动程序,协议版本签名服务器与gocq均为8.9.73

期望的结果是什么?

正常启动,正常登陆

实际的结果是什么?

登陆时返回45

简单的复现代码/链接(可选)

No response

日志记录(可选)

gocq日志:

[2023-09-21 07:25:09] [INFO]: 当前版本:dev/f16d72f
[2023-09-21 07:25:09] [WARNING]: 已开启Debug模式.
[2023-09-21 07:25:09] [INFO]: 将使用 device.json 内的设备信息运行Bot.
[2023-09-21 07:25:10] [INFO]: 检查签名服务器:http://127.0.0.1:13579  (1/1)
[2023-09-21 07:25:10] [INFO]: 使用签名服务器 url=http://127.0.0.1:13579, key=114514, auth=
[2023-09-21 07:25:10] [INFO]: 使用签名服务器:http://127.0.0.1:13579
[2023-09-21 07:25:10] [WARNING]: 自动注册实例已关闭,请配置 sign-server 端自动注册实例以保持正常签名
[2023-09-21 07:25:10] [INFO]: 开始尝试登录并同步消息...
[2023-09-21 07:25:10] [INFO]: 每 30 分钟将刷新一次签名 token
[2023-09-21 07:25:10] [INFO]: 使用协议: Android Pad 8.9.63.11390
[2023-09-21 07:25:11] [INFO]: 从文件 data/versions/6.json 读取协议版本 Android Pad 8.9.73.11945.
[2023-09-21 07:25:12] [INFO]: Protocol -> connect to server: 43.135.106.161:8080
[2023-09-21 07:26:14] [INFO]: token 已更新: -> 73797***c4c32
[2023-09-21 07:26:14] [DEBUG]: Protocol -> rev pkt: wtlogin.login seq: 29757
[2023-09-21 07:26:15] [WARNING]: 登录需要滑条验证码, 请验证后重试.
[2023-09-21 07:26:15] [WARNING]: 请选择提交滑块ticket方式:
[2023-09-21 07:26:15] [WARNING]: 1. 自动提交
[2023-09-21 07:26:15] [WARNING]: 2. 手动抓取提交
[2023-09-21 07:26:15] [WARNING]: 请输入(1 - 2):
1
[2023-09-21 07:26:16] [WARNING]: 请前往该地址验证 -> https://captcha.go-cqhttp.org/captcha
[2023-09-21 07:26:25] [ERROR]: Protocol -> parse incoming packet error: return code unsuccessful: -10005
[2023-09-21 07:26:40] [WARNING]: Callback error: Packet timed out, Or response data is empty
[2023-09-21 07:26:40] [WARNING]: token 已过期, 总丢失 token 次数为 1
[2023-09-21 07:26:40] [WARNING]: token 已过期, 总丢失 token 次数为 2
[2023-09-21 07:26:40] [INFO]: 正在刷新 token
[2023-09-21 07:26:40] [WARNING]: 刷新 token 出现错误: code=-1, msg: QSign not initialized, unable to request_token, please submit the initialization package first.. server: http://127.0.0.1:13579
[2023-09-21 07:26:45] [INFO]: token 已更新:73797***c4c32 ->
[2023-09-21 07:26:45] [INFO]: token 已更新:73797***c4c32 ->
[2023-09-21 07:26:45] [ERROR]: Protocol -> parse incoming packet error: return code unsuccessful: -10005
[2023-09-21 07:26:45] [DEBUG]: Protocol -> rev pkt: wtlogin.login seq: 29759
[2023-09-21 07:26:45] [WARNING]: 登录失败: 登录失败,请前往QQ官网im.qq.com下载最新版QQ后重试,或通过问题反馈与我们联系。 Code: 45
[2023-09-21 07:26:45] [WARNING]: 你的账号被限制登录, 请配置 SignServer 后重试
[2023-09-21 07:26:45] [INFO]: 按 Enter 继续....

unidbg日志:

Sep 21 07:24:52 ubuntu systemd[1]: Starting unidbg.service - "Unidbg - Tencent QQ Message Signer"...
░░ Subject: A start job for unit unidbg.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit unidbg.service has begun execution.
░░
░░ The job identifier is 2725.
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: FEBond sum = 7680
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: Load Package = Protocol(qua=V1_AND_SQ_8.9.73_4416_YYB_D, version=8.9.73, code=4416, packageName=null)
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.525 [main] INFO ktor.application - Autoreload is disabled because the development mode is off.
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.960 [main] INFO ktor.application - Application started in 0.472 seconds.
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.967 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.990 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.990 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 17
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.991 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.991 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.992 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.992 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.993 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.993 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.994 [main] DEBUG io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @2a35e31d
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.995 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): unavailable
Sep 21 07:24:53 ubuntu unidbg-fetch-qsign[4674]: 07:24:53.995 [main] DEBUG io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.012 [main] DEBUG io.netty.util.internal.PlatformDependent - maxDirectMemory: 1025507328 bytes (maybe)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.012 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.012 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.013 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.014 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.014 [main] DEBUG io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.014 [main] DEBUG io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.024 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.workdir: /tmp (io.netty.tmpdir)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.025 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.deleteLibAfterLoading: true
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.025 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.tryPatchShadedId: true
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.025 [main] DEBUG io.netty.util.internal.NativeLibraryLoader - -Dio.netty.native.detectNativeLibraryDuplicates: true
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.033 [main] DEBUG io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 8
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.039 [main] DEBUG io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.044 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.044 [main] DEBUG io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.051 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.051 [main] DEBUG io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.060 [main] DEBUG io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.094 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.processId: 4674 (auto-detected)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.098 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.098 [main] DEBUG io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.099 [main] DEBUG io.netty.util.NetUtilInitializations - Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.101 [main] DEBUG io.netty.util.NetUtil - /proc/sys/net/core/somaxconn: 4096
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.102 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 00:15:5d:ff:fe:ef:a9:01 (auto-detected)
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.115 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.115 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 8
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 8
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.148 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.149 [main] DEBUG io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.160 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.160 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.160 [main] DEBUG io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
Sep 21 07:24:54 ubuntu unidbg-fetch-qsign[4674]: 07:24:54.180 [DefaultDispatcher-worker-1] INFO ktor.application - Responding at http://127.0.0.1:13579
Sep 21 07:25:02 ubuntu systemd[1]: Started unidbg.service - "Unidbg - Tencent QQ Message Signer".
░░ Subject: A start job for unit unidbg.service has finished successfully
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit unidbg.service has finished successfully.
░░
░░ The job identifier is 2725.
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.346 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkAccessible: true
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.346 [eventLoopGroupProxy-3-1] DEBUG io.netty.buffer.AbstractByteBuf - -Dio.netty.buffer.checkBounds: true
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.347 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@25ddeab1
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.394 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.394 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.394 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.394 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.blocking: false
Sep 21 07:25:10 ubuntu unidbg-fetch-qsign[4674]: 07:25:10.395 [eventLoopGroupProxy-3-1] DEBUG io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.NativeLibraryUtil - processor is INTEL_64 os.arch is amd64
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.NativeLibraryUtil - architecture is LINUX_64 os.name is linux
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.NativeLibraryUtil - architecture is LINUX_64 os.name is linux
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.NativeLibraryUtil - platform specific path is natives/linux_64/
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.BaseJniExtractor - mappedLib is libunicorn.so
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.BaseJniExtractor - URL is jar:file:/home/lvwenzhuo/unidbg-fetch-qsign-1.1.9/lib/unidbg-android-105.jar!/natives/linux_64/libunicorn.so
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.859 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.BaseJniExtractor - URL path is file:/home/lvwenzhuo/unidbg-fetch-qsign-1.1.9/lib/unidbg-android-105.jar!/natives/linux_64/libunicorn.so
Sep 21 07:25:12 ubuntu unidbg-fetch-qsign[4674]: 07:25:12.860 [eventLoopGroupProxy-4-2] DEBUG org.scijava.nativelib.BaseJniExtractor - Extracting 'jar:file:/home/lvwenzhuo/unidbg-fetch-qsign-1.1.9/lib/unidbg-android-105.jar!/natives/linux_64/libunicorn.so' to '/tmp/nativelib-loader_14346421585866992841/libunicorn.so'
Sep 21 07:25:13 ubuntu unidbg-fetch-qsign[4674]: QSign-Unidbg 白名单模式
Sep 21 07:25:16 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_token_entry.h:94 initUin 36****62
Sep 21 07:25:16 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_info.h:604 start create xwid
Sep 21 07:25:17 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_info.h:631 create xwid complete
Sep 21 07:25:17 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: device_token_storage.h:53 write file error
Sep 21 07:25:17 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_token.h:367 create new xwId complete
Sep 21 07:25:47 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:275 gen new channel
Sep 21 07:25:49 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(1ed6e346cbb7c77a97b749fed113a91f48fca226cd10cbf3926d96a23e70efdc) => a061c974d0a87bdc8a203f78548abaff052db064d572752d86499329f298ce53
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:491 est check: 88bcb357606344d5b6fb0599c97f79696ac8e053e3ffe2a395f83b0e2aa753805c72e9aa384de6cd4bebe8b08b12304d
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: ChannelManager.cpp:73 o3cm@S: GetSecConf, trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: uin = 36****62, id = 0, sendPacket(cmd = trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, data = 0a0a476574536563436f6e6612210266ff0a8e9e1b057a98e715b366d728907e866000840848a3aad174582374948422423833633536323337366539323963626161353837383730666262373264386337663363666539373731646631343830386562333061613931373932336664643563652a49b77e5d7e66a3a307afd471ae6c25e07bb2a82fa238a43cd309929e381b8cf6b546fb936a215575f4bb4c4c001f3b5672d6ab3511e4fd90fda9e3c40a1d0540ceb9f5b30e526f002cdc32207bcd8e52ca241bf446b137e5f2dc1aa603da894530193ccdbbcbe136de43addf3a3088bcb357606344d5b6fb0599c97f79696ac8e053e3ffe2a395f83b0e2aa753805c72e9aa384de6cd4bebe8b08b12304d4001)
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:442 ecdh repeat establish
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(c590d9767e75d2775c9dd74684cf8b000dab72a0fcae911ea3f2870533f5e6a7) => e987ada4193a20dae77989da8322900df236803d419f417965f72955f643c1a0
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:491 est check: 62d648df8a563fdf7c77f8ef8625bbdc4da0445fa645fc76df3565baa6e07f7bca4b84d9d1d03925a4f915f9eee0ad52
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: ChannelManager.cpp:73 o3cm@S: O3GetTail, trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish
Sep 21 07:25:51 ubuntu unidbg-fetch-qsign[4674]: uin = 36****62, id = 1, sendPacket(cmd = trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, data = 0a094f334765745461696c12210266ff0a8e9e1b057a98e715b366d728907e866000840848a3aad174582374948422423833633536323337366539323963626161353837383730666262373264386337663363666539373731646631343830386562333061613931373932336664643563652a49dc1e2ea7532aee27908f2a0132305bef347c00cb3ef610a5b7ea73dc460ca7739e60a16f99f454486819c9f57a4a4647ffa0e78aaa61ef2112a3ebbecb39af19aca45816e44b75e16232207bcd8e52ca241bf446b137e5f2dc1aa603da894530193ccdbbcbe136de43addf3a3062d648df8a563fdf7c77f8ef8625bbdc4da0445fa645fc76df3565baa6e07f7bca4b84d9d1d03925a4f915f9eee0ad524001)
Sep 21 07:25:56 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(340cb2624a4023c7c3f7403d3dba0106000103000300020001b32a5004fc537a52f66369179f822cfe9afbc4c3294f8fda000000004865726f) => 4ead00009e029cbad5f038affcf5690bfcab59fda25200a7582b4c63034f14315d21790c67de505339761590d6dcfedf6aa752fda80deed54b
Sep 21 07:26:03 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: device_info.h:173 jniGetAppVersionName:8.9.73
Sep 21 07:26:07 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_info.h:534 534
Sep 21 07:26:07 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_info.h:536 536
Sep 21 07:26:07 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_info.h:538 538
Sep 21 07:26:08 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_token.h:257 begin pack
Sep 21 07:26:08 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_token.h:259 pack buff result len:1374
Sep 21 07:26:08 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: device_token.h:274 begin sendmessage : len :1374
Sep 21 07:26:08 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:442 ecdh repeat establish
Sep 21 07:26:09 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(bf3a2cec9261d4e5438755b4abf138c99540cd497cc33579fcacaf7272ce60e8) => 2f09119f54e7264ba5900140914eab78c9979e7c11f13ed0371ed2f9a829538e
Sep 21 07:26:11 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: o3_channel_encrypt.h:491 est check: 034b26876e2ef7fa6b7ad60238a5d92e1b9c636a6a26a60c1df120776eff28299c418307daf8c3d7a9f7c366b6df0f43
Sep 21 07:26:11 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]error: ChannelManager.cpp:73 o3cm@S: getToken, trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish
Sep 21 07:26:11 ubuntu unidbg-fetch-qsign[4674]: uin = 36****62, id = 2, sendPacket(cmd = trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, data = 0a08676574546f6b656e12210266ff0a8e9e1b057a98e715b366d728907e866000840848a3aad174582374948422423833633536323337366539323963626161353837383730666262373264386337663363666539373731646631343830386562333061613931373932336664643563652aaa0b04481540cf70139e11e856dbd188324c6c13f37ab58c1271115357412d5c9c2c465ac0b98d288929bba5d819edfc38cf90c0a37c9bbba70d08677f72ea62cad5f168bafd6560c75c5b0b9865dc03a51fa1eb41e83b4cd2f569e240e1aef605ec8516aad985628a0f0c630efff7288898937530163b483a6e776c0e5be0a24ba839483fccf6b21aa3b23532321e1aeb84a58817385fbfeca2e83ce449d7a6f0a6c27297f92724f37b842584971bfde0e0aa3a5ca97ad2aa56b287a45901fe0dfe376e4ff9393792df5dd88ae129d1b3d45fb052775ef9ab20632377a71cecd497daf3745ebdfa94f115f917994848f9abd775d419ab8ae22dd4ee27751262ae2e8d5366fcc6930bdf772db624eac5b08a534fb73ed091f727816082098a194f0f956501af373554bba7e5dba6cd27535a35b3eb8fdc52f4031976cbe59694380ed042b1974f73e90e393f5a58ae4f2443338bcee8fccd6ee5fc713131147b39e50585dea886b104a4d1fd44b01ce7eaefb86abf5dab2dac14e32851d73d6fd87b2276cc79b1e3aa296572192500bfd2ae6c79188f399a054cdf0f8c342c1fd13cdf6986a5d47f443b6d94d30dc0b920937c9210dc288dd8aae0ed335609319677fb27c526109b8d02633b8fdb3c052d536b7ddaf796bf2ed8965910fbf0990a1b9a502e2d524a2f7f8dafc53367bc014112e00ab73725ddf52be32d39cce1fed577bf246702d0ae46534a655f256a700169b41eece8b4f9646cf324b30bca8fed8f1a06ba3d000a5e0891fbbe12ec0f166fc5b150fbce961aea5eae84d0c1f513109de24b02615eaae22611a308dfe36e4c62b1193289a19c110ad92f95afce191043846124a313689921f9e5ceacbe19dff195fbc15ae64504ebaa652db818ddd9d7051618f49b4b16f6c52722d197ba22eb7a324a6638dfd062da3bdda04f42a05e79fbc3f2534482e10cd73cbaf1ed6fc26eea04c9ecd092f780a76884c1e3b9b95b30311853c7f0546c3d8045e69b90f907845cc63edc8d11fc75665a4f4cfd5ca8af07170159ee34ecfe6013c8fb912a7b3c3907f7bcee4486fa41b7cb6c1f2731e4ecd65b58bffc514a89ce1f425ec0b1f6a850273b2dace1cc3384259bebb380dbefa9f93ff147b19849ab87d22372a28ad60d09f8f6132f3a6f016df35504269d9cf5a8b50814c9d4d406eb3f413288a0294f7c1d39c4a41d11b97ed5c294a168e76b62548ed8912e6659455e5a0ea92e959b5199796704e2d49d0ac8d3b3328c2cb572bb59b75304c9eab8b1c4cde195d3151d4efe17b8b0c8577d9c25ef6f1562e00a562ed741899d052a91fed9f3545d355b3c38e9ec9b62de9b9991c4c9ada94b16da31185de3cc87b3d499f8a95c9d601868e632fd2ae3366fe52cb8482b187301a74b3bf4461028299f5ad237527c7656b973b64351afce8727418558931c8bf26875574c8a61776e643d400be5dfdbabf7c94a1a24019b802dc02211c4bf94d9b9c46909132748f650d547a1f0f0a5bff4f82f15c7c842f481a24b342354d90e1c1b13b4279dc777842972fed80c58577b6d2af4493a3ecb1b1ef975178e763de08ce841ab6e5a0e446c362ad148d9c6b25c2a4d0333a69428c1966fad9c5671fde8e0ca165f80b7861db72d090c1117fdcf7ef5dd60a13dc4b2c947d79bf459d5ea1aa6b3f80606812b9806cc11a13b506bffec010c98bc16b561e0057cb59f06ddea7536ff2ba7fbdf04f9fb25b709b53e02f6aa5b92f2b8088326d3c0b39846e695c55c7e802dfb0793bc694e08151ab2fa6f6656697b707e89b69de8b6564f40cbbe8e88c971ef4a0ffd2ee4bb035d97d57067b9550194f30bfcac16c81abbbabfc830e3a364d10d2e98e9bc8802dc82ef4be99f318c043bfc76033f0f265b933ad350d914f92d18b76c585b85a50b0b9ba3599fda976fc72b458e287835732f0750dc5cfe8f65693b0a6789b56770614ef00165215bef0d5d7edea5145e9e5fc03354c9d1417f820b80e2b62fa47ffb092b24e3c38bed034bb4624b3093228daa32207bcd8e52ca241bf446b137e5f2dc1aa603da894530193ccdbbcbe136de43addf3a30034b26876e2ef7fa6b7ad60238a5d92e1b9c636a6a26a60c1df120776eff28299c418307daf8c3d7a9f7c366b6df0f434001)
Sep 21 07:26:12 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: qq_sign.h:142 [GetSign] cmd:wtlogin.login
Sep 21 07:26:14 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(3062313afd40c15a5ab70106000102000300020002b32a5004fc537a52f66369179f822cfe3d93514431f2d2dac7391139000000004865726f) => 4c7225e74502716ce420bd5a0dbe620df4a750fda4a1926751fe0bfb18405418a68c306f49654c6ea1b310e95926aaf543a752fda80deed54b
Sep 21 07:26:20 ubuntu unidbg-fetch-qsign[4674]: [FEKit_]info: qq_sign.h:142 [GetSign] cmd:trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish
Sep 21 07:26:24 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(189801060001020003000200000a74086b936a7643c7c3f7d34800d840dbd3d35c000000004865726f) => a58055f4a85700a7550db0530db5850e378e7aa492f87c2ab5a5b8e1bd7134575ba752fda80deed54b
Sep 21 07:26:34 ubuntu unidbg-fetch-qsign[4674]: FEBound.transform(33029531f9800106000103000300020000c939afa2fd59f991213b3b7022fdddfd000000004865726f) => 44a26fe2431201af5203bb5306b8620dfccf2d36b4458a20883365a4addd0d5c82a752fda80deed54b

补充说明(可选)

配置文件:

# go-cqhttp 默认配置文件

account: # 账号相关
  uin: 36***62 # QQ账号
  password: '****' # 密码为空时使用扫码登录
  encrypt: false  # 是否开启密码加密
  status: 0      # 在线状态 请参考 https://docs.go-cqhttp.org/guide/config.html#在线状态
  relogin: # 重连设置
    delay: 3   # 首次重连延迟, 单位秒
    interval: 3   # 重连间隔
    max-times: 0  # 最大重连次数, 0为无限制

  # 是否使用服务器下发的新地址进行重连
  # 注意, 此设置可能导致在海外服务器上连接情况更差
  use-sso-address: true
  # 是否允许发送临时会话消息
  allow-temp-session: true

  # 数据包的签名服务器列表,第一个作为主签名服务器,后续作为备用
  # 兼容 https://github.com/fuqiuluo/unidbg-fetch-qsign
  # 如果遇到 登录 45 错误, 或者发送信息风控的话需要填入一个或多个服务器
  # 不建议设置过多,设置主备各一个即可,超过 5 个只会取前五个
  # 示例:
  # sign-servers:
  #   - url: 'http://127.0.0.1:8080' # 本地签名服务器
  #     key: "114514"  # 相应 key
  #     authorization: "-"   # authorization 内容, 依服务端设置
  #   - url: 'https://signserver.example.com' # 线上签名服务器
  #     key: "114514"
  #     authorization: "-"
  #   ...
  #
  # 服务器可使用docker在本地搭建或者使用他人开放的服务
  sign-servers:
    - url: 'http://127.0.0.1:13579'  # 主签名服务器地址, 必填
      key: '114514'  # 签名服务器所需要的apikey, 如果签名服务器的版本在1.1.0及以下则此项无效
      authorization: ''   # authorization 内容, 依服务端设置,如 'Bearer xxxx'

  # 判断签名服务不可用(需要切换)的额外规则
  # 0: 不设置 (此时仅在请求无法返回结果时判定为不可用)
  # 1: 在获取到的 sign 为空 (若选此建议关闭 auto-register,一般为实例未注册但是请求签名的情况)
  # 2: 在获取到的 sign 或 token 为空(若选此建议关闭 auto-refresh-token )
  rule-change-sign-server: 0

  # 连续寻找可用签名服务器最大尝试次数
  # 为 0 时会在连续 3 次没有找到可用签名服务器后保持使用主签名服务器,不再尝试进行切换备用
  # 否则会在达到指定次数后 **退出** 主程序
  max-check-count: 3
  # 签名服务请求超时时间(s)
  sign-server-timeout: 60
  # 如果签名服务器的版本在1.1.0及以下, 请将下面的参数改成true
  # 建议使用 1.1.6 以上版本,低版本普遍半个月冻结一次
  is-below-110: false
  # 在实例可能丢失(获取到的签名为空)时是否尝试重新注册
  # 为 true 时,在签名服务不可用时可能每次发消息都会尝试重新注册并签名。
  # 为 false 时,将不会自动注册实例,在签名服务器重启或实例被销毁后需要重启 go-cqhttp 以获取实例
  # 否则后续消息将不会正常签名。关闭此项后可以考虑开启签名服务器端 auto_register 避免需要重启
  # 由于实现问题,当前建议关闭此项,推荐开启签名服务器的自动注册实例
  auto-register: false
  # 是否在 token 过期后立即自动刷新签名 token(在需要签名时才会检测到,主要防止 token 意外丢失)
  # 独立于定时刷新
  auto-refresh-token: true
  # 定时刷新 token 间隔时间,单位为分钟, 建议 30~40 分钟, 不可超过 60 分钟
  # 目前丢失token也不会有太大影响,可设置为 0 以关闭,推荐开启
  refresh-interval: 30

heartbeat:
  # 心跳频率, 单位秒
  # -1 为关闭心跳
  interval: 5

message:
  # 上报数据类型
  # 可选: string,array
  post-format: array
  # 是否忽略无效的CQ码, 如果为假将原样发送
  ignore-invalid-cqcode: false
  # 是否强制分片发送消息
  # 分片发送将会带来更快的速度
  # 但是兼容性会有些问题
  force-fragment: false
  # 是否将url分片发送
  fix-url: false
  # 下载图片等请求网络代理
  proxy-rewrite: ''
  # 是否上报自身消息
  report-self-message: false
  # 移除服务端的Reply附带的At
  remove-reply-at: false
  # 为Reply附加更多信息
  extra-reply-data: false
  # 跳过 Mime 扫描, 忽略错误数据
  skip-mime-scan: false
  # 是否自动转换 WebP 图片
  convert-webp-image: false

output:
  # 日志等级 trace,debug,info,warn,error
  log-level: debug
  # 日志时效 单位天. 超过这个时间之前的日志将会被自动删除. 设置为 0 表示永久保留.
  log-aging: 0
  # 是否在每次启动时强制创建全新的文件储存日志. 为 false 的情况下将会在上次启动时创建的日志文件续写
  log-force-new: false
  # 是否启用日志颜色
  log-colorful: true
  # 是否启用 DEBUG
  debug: true # 开启调试模式

# 默认中间件锚点
default-middlewares: &default
  # 访问密钥, 强烈推荐在公网的服务器设置
  access-token: ''
  # 事件过滤器文件目录
  filter: ''
  # API限速设置
  # 该设置为全局生效
  # 原 cqhttp 虽然启用了 rate_limit 后缀, 但是基本没插件适配
  # 目前该限速设置为令牌桶算法, 请参考:
  # https://baike.baidu.com/item/%E4%BB%A4%E7%89%8C%E6%A1%B6%E7%AE%97%E6%B3%95/6597000?fr=aladdin
  rate-limit:
    enabled: false # 是否启用限速
    frequency: 1  # 令牌回复频率, 单位秒
    bucket: 1     # 令牌桶大小

database: # 数据库相关设置
  leveldb:
    # 是否启用内置leveldb数据库
    # 启用将会增加10-20MB的内存占用和一定的磁盘空间
    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
    enable: true
  sqlite3:
    # 是否启用内置sqlite3数据库
    # 启用将会增加一定的内存占用和一定的磁盘空间
    # 关闭将无法使用 撤回 回复 get_msg 等上下文相关功能
    enable: false
    cachettl: 3600000000000 # 1h

# 连接服务列表
servers:
  # 添加方式,同一连接方式可添加多个,具体配置说明请查看文档
  #- http: # http 通信
  #- ws:   # 正向 Websocket
  #- ws-reverse: # 反向 Websocket
  #- pprof: #性能分析服务器
  # 反向WS设置
  - ws-reverse:
      # 反向WS Universal 地址
      # 注意 设置了此项地址后下面两项将会被忽略
      universal: ws://127.0.0.1:23037/onebot/v11/ws
      # 反向WS API 地址
      #api: ws://your_websocket_api.server
      # 反向WS Event 地址
      #event: ws://your_websocket_event.server
      # 重连间隔 单位毫秒
      reconnect-interval: 3000
      middlewares:
        <<: *default # 引用默认中间件
GOOLDOVE commented 1 year ago

+1,被风控后我也一样用不了了

lvwenzhuo2003 commented 1 year ago

问题已解决,更新到1.2.1版本的unidbg即可

homuraLan commented 11 months ago

更新到1.2.1版本的unidbg即可

怎么升级的哥,能说下吗

KudouShinnyan commented 11 months ago

更新到1.2.1版本的unidbg即可

怎么升级的哥,能说下吗

(莪建的仓库) https://gitee.com/KudouShinnyan/qsign/