mirai
mirai copied to clipboard
Bad `imsiMd5.size`. Required 16, given 32
问题描述
Exception: Bad imsiMd5.size
. Required 16, given 32
Err Reason:
imsiMd5.size in qq old version is 16 .
but in qq new version size is 32.
Bugs in file: https://github.com/mamoe/mirai/blob/dev/mirai-core-api/src/commonMain/kotlin/utils/DeviceInfo.kt
init {
require(imsiMd5.size == 16) { "Bad imsiMd5.size
. Required 16, given ${imsiMd5.size}." }
}
"simpleDeviceInfoJson": {
"display": "MIRAI.593673.001",
"product": "mirai",
"device": "mirai",
"board": "mirai",
"brand": "mamoe",
"model": "mirai",
"bootloader": "unknown",
"fingerprint": "mamoe/mirai/mirai:10/MIRAI.200122.001/4425040:user/release-keys",
"bootId": "1BACAC66-39E7-21DB-1A43-1B834F6EBD88",
"procVersion": "Linux version 3.0.31-TyYHRm64 ([email protected])",
"baseBand": "",
"version": {
"incremental": "5891938",
"release": "10",
"codename": "REL"
},
"simInfo": "T-Mobile",
"osType": "android",
"macAddress": "02:00:00:00:00:00",
"wifiBSSID": "02:00:00:00:00:00",
"wifiSSID": "<unknown ssid>",
"imsiMd5": "87f7dfc99c16fb10e17b6c3e25d3d730",
"imei": "913618008152477",
"apn": "wifi"
},
"deviceInfoFile": null,
复现
also see imsiMd5.size is 32 in https://simbot.forte.love/docs/component-overview/mirai/bot-config
"version": {
"incremental": "5891938",
"release": "10",
"codename": "REL",
"sdk": 29
},
"simInfo": "T-Mobile",
"osType": "android",
"macAddress": "02:00:00:00:00:00",
"wifiBSSID": "02:00:00:00:00:00",
"wifiSSID": "
mirai-core 版本
3.0.0
bot-protocol
ANDROID_PHONE
其他组件版本
No response
系统日志
No response
网络日志
No response
补充信息
No response
imsiMd5 is not passwordMD5
imsiMd5 is not passwordMD5
is use MiraiAndroid app , login qq in android , and export device json info imsiMd5 size is 32. qq app version >=8.8.98.8410 in android
"imsiMd5": "87f7dfc99c16fb10e17b6c3e25d3d730",
topic:
https://mirai.mamoe.net/topic/223/%E6%97%A0%E6%B3%95%E7%99%BB%E5%BD%95%E7%9A%84%E4%B8%B4%E6%97%B6%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88/2
滑行验证助手已失效,请使用MiraiAndroid https://install.appcenter.ms/users/mzdluo123/apps/miraiandroid/distribution_groups/release
In fact, the TxCaptchaHelper can still be used to solve qq login swipe captcha
@mzdluo123 any ideas?
@mzdluo123 any ideas?
MiraiAndroid导出的设备文件来自于mirai core自动生成,且ma目前并没有更新到最新的core版本,如果core在2.8.0之后对md5长度进行了修改则可能出现这个问题
这个是没有改的,那理应不会出现这个问题
"imsiMd5": "5df6e66cc541fe594f228c889cd7828b"
"imsiMd5": "87f7dfc99c16fb10e17b6c3e25d3d730"
original hex string length is 32, decoded byte array size is 16.
Maybe the device file exported by MiraiAndroid is wrong. @mzdluo123
Please upload the device file if possible (by upload via GitHub or just paste it as raw text with comment). @zengfr
"imsiMd5": "5df6e66cc541fe594f228c889cd7828b" "imsiMd5": "87f7dfc99c16fb10e17b6c3e25d3d730"
original hex string length is 32, decoded byte array size is 16.
Maybe the device file exported by MiraiAndroid is wrong. @mzdluo123
Please upload the device file if possible (by upload via GitHub or just paste it as raw text with comment). @zengfr
不可能导出出错,导出仅仅是复制了core的数据文件