From 694cd64e486ba764417f229b0200377e29df1cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Fri, 29 Sep 2023 12:47:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=9B=BF=E6=8D=A2=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivOS/libEXEModelAPI.py | 164 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) diff --git a/OlivOS/libEXEModelAPI.py b/OlivOS/libEXEModelAPI.py index 824c3ec0..c0a1de45 100644 --- a/OlivOS/libEXEModelAPI.py +++ b/OlivOS/libEXEModelAPI.py @@ -46,6 +46,149 @@ 'gocqhttp_show_old' ] +gProtocalInfo = { + 'android_pad': { + '8.9.63': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537164888, + "sub_app_id": 537164888, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.63.11390", + "build_time": 1685069178, + "apk_sign": "a6b745bf24a2c277527716f6f36eb68d", + "sdk_version": "6.0.0.2546", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1687796862, + "qua": "V1_AND_SQ_8.9.63_4194_YYB_D", + "protocol_type": 6 +}''', + '8.9.68': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537168361, + "sub_app_id": 537168361, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.68.11565", + "build_time": 1688523354, + "apk_sign": "7772804f3cb4961f57cb764fbe4973e6", + "sdk_version": "6.0.0.2549", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1689780543, + "qua": "V1_AND_SQ_8.9.68_4264_YYB_D", + "protocol_type": 6 +}''', + '8.9.70': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537169976, + "sub_app_id": 537169976, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.70.11730", + "build_time": 1689956914, + "apk_sign": "e686fa90d9a33950c46de9cfb4ec7e71", + "sdk_version": "6.0.0.2551", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1690350020, + "qua": "V1_AND_SQ_8.9.70_4330_YYB_D", + "protocol_type": 6 +}''', + '8.9.73': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537171018, + "sub_app_id": 537171018, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.73.11790", + "build_time": 1690515318, + "apk_sign": "d4dd51c0a4a7a37f7fa9d791cd1c0377", + "sdk_version": "6.0.0.2553", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1690715354, + "qua": "V1_AND_SQ_8.9.73_4354_HDBM_T", + "protocol_type": 6 +}''' + }, + 'android_phone': { + '8.9.63': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537164840, + "sub_app_id": 537164840, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.63.11390", + "build_time": 1685069178, + "apk_sign": "a6b745bf24a2c277527716f6f36eb68d", + "sdk_version": "6.0.0.2546", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1687796862, + "qua": "V1_AND_SQ_8.9.63_4194_YYB_D", + "protocol_type": 1 +}''', + '8.9.68': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537168313, + "sub_app_id": 537168313, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.68.11565", + "build_time": 1688523354, + "apk_sign": "7772804f3cb4961f57cb764fbe4973e6", + "sdk_version": "6.0.0.2549", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1689780543, + "qua": "V1_AND_SQ_8.9.68_4264_YYB_D", + "protocol_type": 1 +}''', + '8.9.70': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537169928, + "sub_app_id": 537169928, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.70.11730", + "build_time": 1689956914, + "apk_sign": "e686fa90d9a33950c46de9cfb4ec7e71", + "sdk_version": "6.0.0.2551", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1690350020, + "qua": "V1_AND_SQ_8.9.70_4330_YYB_D", + "protocol_type": 1 +}''', + '8.9.73': '''{ + "apk_id": "com.tencent.mobileqq", + "app_id": 537171007, + "sub_app_id": 537171007, + "app_key": "0S200MNJT807V3GE", + "sort_version_name": "8.9.73.11790", + "build_time": 1690515318, + "apk_sign": "d4dd51c0a4a7a37f7fa9d791cd1c0377", + "sdk_version": "6.0.0.2553", + "sso_version": 20, + "misc_bitmap": 150470524, + "main_sig_map": 34869472, + "sub_sig_map": 66560, + "dump_time": 1690715354, + "qua": "V1_AND_SQ_8.9.73_4354_HDBM_T", + "protocol_type": 1 +}''' + } +} + def startGoCqhttpLibExeModel( plugin_bot_info_dict, basic_conf_models_this, @@ -611,6 +754,27 @@ def accountFix(bot_info_dict, logger_proc): except: pass + protocal_info = None + if 'qsign-server-protocal' in bot_info_dict[bot_hash].extends \ + and str(bot_info_dict[bot_hash].extends['qsign-server-protocal']) is str: + if bot_info_dict[bot_hash].platform['model'] in [ + 'gocqhttp_show_Android_Pad' + ]: + if bot_info_dict[bot_hash].extends['qsign-server-protocal'] in gProtocalInfo['android_pad']: + protocal_info = gProtocalInfo['android_pad'][bot_info_dict[bot_hash].extends['qsign-server-protocal']] + if bot_info_dict[bot_hash].platform['model'] in [ + 'gocqhttp_show_Android_Phone' + ]: + if bot_info_dict[bot_hash].extends['qsign-server-protocal'] in gProtocalInfo['android_phone']: + protocal_info = gProtocalInfo['android_phone'][bot_info_dict[bot_hash].extends['qsign-server-protocal']] + if protocal_info is not None: + file_path = './conf/gocqhttp/' + bot_hash + '/version/protocol.json' + try: + with open('./conf/gocqhttp/' + bot_hash + '/protocol.json', 'w', encoding = 'utf-8') as f: + f.write(json.dumps(protocal_info, ensure_ascii = False)) + except: + pass + def deviceInfoFix(deviceInfo:dict): deviceRes = copy.deepcopy(deviceInfo) deviceResPatch = {}