添加专业工具中获取正在运行微信信息内容
This commit is contained in:
parent
bc41d6fa5f
commit
7a74fee463
@ -11,6 +11,7 @@ import os
|
||||
from flask import Flask, request, render_template, g, Blueprint, send_file
|
||||
from pywxdump import analyzer, read_img_dat, read_audio
|
||||
from pywxdump.api.rjson import ReJson, RqJson
|
||||
from pywxdump import read_info,VERSION_LIST
|
||||
|
||||
# app = Flask(__name__, static_folder='../ui/web/dist', static_url_path='/')
|
||||
|
||||
@ -186,6 +187,19 @@ def get_audio():
|
||||
return ReJson(0, video_data)
|
||||
|
||||
|
||||
# 这部分为专业工具的api
|
||||
@api.route('/api/wxinfo', methods=["GET", 'POST'])
|
||||
def get_wxinfo():
|
||||
"""
|
||||
获取微信信息
|
||||
:return:
|
||||
"""
|
||||
import pythoncom
|
||||
pythoncom.CoInitialize()
|
||||
wxinfos = read_info(VERSION_LIST)
|
||||
pythoncom.CoUninitialize()
|
||||
return ReJson(0, wxinfos)
|
||||
|
||||
@api.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
|
@ -140,7 +140,10 @@ def get_key(pid, db_path, addr_len):
|
||||
|
||||
|
||||
# 读取微信信息(account,mobile,name,mail,wxid,key)
|
||||
def read_info(version_list: dict, is_logging: bool = False, save_path: str = None):
|
||||
def read_info(version_list: dict = None, is_logging: bool = False, save_path: str = None):
|
||||
if version_list is None:
|
||||
version_list = {}
|
||||
|
||||
wechat_process = []
|
||||
result = []
|
||||
error = ""
|
||||
|
Loading…
Reference in New Issue
Block a user