添加专业工具中获取正在运行微信信息内容
This commit is contained in:
1 parent
bc41d6fa5f
commit
7a74fee463
2 files changed
+18
-1
No files matched your search
@@ -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')
|
||||
Reference in new issue
Block a user