From 75c790079f1cb0a917a46bd2576840a254aea1ce Mon Sep 17 00:00:00 2001 From: xaoyo Date: Sun, 8 Oct 2023 21:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E6=9B=B4=E9=AB=98=E6=95=88?= =?UTF-8?q?=E7=9A=84key=E5=9C=B0=E5=9D=80=E8=AE=A1=E7=AE=97=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program/get_wx_info.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Program/get_wx_info.py b/Program/get_wx_info.py index 4ac380c..1de925e 100644 --- a/Program/get_wx_info.py +++ b/Program/get_wx_info.py @@ -84,17 +84,7 @@ def get_hex(h_process, lp_base_address): num = 32 array2 = (ctypes.c_ubyte * num)() - - lp_base_address2 = ( - (int(binascii.hexlify(array[7]), 16) << 56) + - (int(binascii.hexlify(array[6]), 16) << 48) + - (int(binascii.hexlify(array[5]), 16) << 40) + - (int(binascii.hexlify(array[4]), 16) << 32) + - (int(binascii.hexlify(array[3]), 16) << 24) + - (int(binascii.hexlify(array[2]), 16) << 16) + - (int(binascii.hexlify(array[1]), 16) << 8) + - int(binascii.hexlify(array[0]), 16) - ) + lp_base_address2 = int.from_bytes(array, byteorder='little') # 逆序转换为int地址(key地址) if ctypes.windll.kernel32.ReadProcessMemory(h_process, ctypes.c_void_p(lp_base_address2), ctypes.byref(array2), num, 0) == 0: return "" @@ -103,7 +93,6 @@ def get_hex(h_process, lp_base_address): def get_file_version(file_path): - info = win32api.GetFileVersionInfo(file_path, "\\") ms = info['FileVersionMS'] ls = info['FileVersionLS'] @@ -111,9 +100,6 @@ def get_file_version(file_path): # version = parse(file_version) return file_version -# def get_wx_id(h_process, lp_base_address): - - def read_info(version_list): support_list = None @@ -137,8 +123,6 @@ def read_info(version_list): tmp_rd['version'] = file_version_str - # print("[+] WeChatVersion: " + file_version_str) - if file_version_str not in version_list: return "[-] WeChat Current Version Is: " + file_version_str + " Not Supported" else: