重新提交仓库文件(清除历史commit,防止 lfs 扣费)

This commit is contained in:
github_bot 2022-09-22 01:03:00 +08:00
commit 0de5622689
20 changed files with 40762 additions and 0 deletions

0
.gitattributes vendored Normal file
View File

3
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1,3 @@
# These are supported funding model platforms
custom: ['https://raw.githubusercontent.com/tom-snow/test/master/7DFC00C9-5980-41DF-BA8A-557F459B0A13.jpeg']

76
.github/workflows/docker_build.yml vendored Normal file
View File

@ -0,0 +1,76 @@
name: CI to Docker Hub
on:
push:
branches:
- main
paths:
- .github/workflows/docker_build.yml
- 'ComWeChatRobot/**'
- 'wine/**'
- 'Dockerfile'
- 'VERSION'
- 'run.py'
- 'WeChatHook.exe'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: init submodule
run: git submodule update --init --recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Get Version Tag
id: get_version_tag
run: echo ::set-output name=VERSION::`cat VERSION`
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
${{ secrets.DOCKER_HUB_USERNAME }}/docker-com_wechat_robot:latest
${{ secrets.DOCKER_HUB_USERNAME }}/docker-com_wechat_robot:${{ steps.get_version_tag.outputs.VERSION }}
labels: |
maintainer=${{ github.event.head_commit.author.email }}
timestamp=${{ github.event.head_commit.timestamp }}
message=${{ github.event.head_commit.message }}
commit=${{ github.event.head_commit.url }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

21
.github/workflows/docker_doc.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- README.md
- .github/workflows/docker_doc.yml
jobs:
dockerHubDescription:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
short-description: ${{ github.event.repository.description }}
repository: ${{ secrets.DOCKER_HUB_USERNAME }}/docker-com_wechat_robot

174
.gitignore vendored Normal file
View File

@ -0,0 +1,174 @@
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
!/wine/winetricks.log
/wine/Tencent/
/volume/

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ComWeChatRobot"]
path = ComWeChatRobot
url = https://github.com/ljc545w/ComWeChatRobot.git

51
Dockerfile Normal file
View File

@ -0,0 +1,51 @@
FROM docker.io/zixia/wechat:3.3.0.115
USER root
WORKDIR /
ENV WINEPREFIX=/home/user/.wine \
LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8 \
DISPLAY=:5 \
VNCPASS=YourSafeVNCPassword
# 提示 vnc 使用的端口, dll 的端口自行映射
EXPOSE 5905
RUN apt update && \
apt --no-install-recommends install wget winbind samba tigervnc-standalone-server tigervnc-common openbox -y && \
wget --no-check-certificate -O /bin/dumb-init "https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64"
COPY wine/simsun.ttc /home/user/.wine/drive_c/windows/Fonts/simsun.ttc
COPY wine/微信.lnk /home/user/.wine/drive_c/users/Public/Desktop/微信.lnk
COPY wine/system.reg /home/user/.wine/system.reg
COPY wine/user.reg /home/user/.wine/user.reg
COPY wine/userdef.reg /home/user/.wine/userdef.reg
# COPY wine/Tencent.zip /Tencent.zip
RUN wget --no-check-certificate -O /Tencent.zip "https://github.com/tom-snow/docker-ComWechat/releases/download/v0.2_wc3.7.0.30/Tencent.zip"
COPY ComWeChatRobot/Release/socket /socket
COPY WeChatHook.exe /socket/WeChatHook.exe
COPY run.py /run.py
# https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.7.0.30/WeChatSetup-3.7.0.30.exe
# COPY WeChatSetup-3.7.0.30.exe WeChatSetup.exe
RUN chmod a+x /bin/dumb-init && \
chmod a+x /run.py && \
rm -rf "/home/user/.wine/drive_c/Program Files/Tencent/" && \
unzip Tencent.zip && \
cp -rf /wine/Tencent "/home/user/.wine/drive_c/Program Files/" && \
chown root:root -R /home/user/.wine && \
rm -rf /wine/Tencent Tencent.zip && \
apt autoremove -y && \
apt clean && \
rm -fr /tmp/*
ENTRYPOINT [ "/bin/dumb-init" ]
CMD ["/run.py", "start"]

39
README.md Normal file
View File

@ -0,0 +1,39 @@
# docker-ComWechat
[![docker 镜像](https://dockeri.co/image/tomsnow1999/docker-com_wechat_robot)](https://hub.docker.com/r/tomsnow1999/docker-com_wechat_robot/tags)
[![镜像大小](https://badgen.net/docker/size/tomsnow1999/docker-com_wechat_robot)](https://hub.docker.com/r/tomsnow1999/docker-com_wechat_robot/tags)
A docker image for [ComWeChatRobot](https://github.com/ljc545w/ComWeChatRobot)
``` shell
docker run \
--name comwechat \
--network host \
-e VNCPASS=asdfgh123 \
-dti \
--ipc=host \
--privileged \
-v $(pwd)/volume/WeChat\ Files/:'/home/user/.wine/drive_c/users/user/My Documents/WeChat Files/' \
-v $(pwd)/volume/Application\ Data:'/home/user/.wine/drive_c/users/user/Application Data/' \
tomsnow1999/docker-com_wechat_robot
```
### 参数说明
* 端口 5905: VNC 服务的端口(无法/无需修改)
* network host: 使用宿主机网络(在 Linux Docker 环境下使用)
* 环境变量 VNCPASS: 连接 VNC 的密码(可自定义,建议在服务器上使用本镜像的话设置得难一点)
* 目录映射 `WeChat Files`: 微信收到的图片/文件存储的目录(可以取消目录映射)
* 目录映射 `Application Data`: 微信数据目录(可以取消目录映射)
## 如何使用
1. 运行上方命令启动镜像(更推荐使用 [docker-compose](./docker-compose.yaml) )
2. 连接上 VNC 扫码登陆微信(建议扫码登陆后把微信的版本号弹窗等关闭)
3. 使用 python 与微信通信(示例文件 [test.py](./test.py) )
## 鸣谢
[ljc545w/ComWeChatRobot](https://github.com/ljc545w/ComWeChatRobot)
[@0honus0](https://github.com/0honus0)

1
VERSION Normal file
View File

@ -0,0 +1 @@
v0.2

BIN
WeChatHook.exe Normal file

Binary file not shown.

20
docker-compose.yaml Normal file
View File

@ -0,0 +1,20 @@
version: '3.3'
services:
wechatpchook:
container_name: comwechat
# ports:
# - '5905:5905' # VNC 端口,可以修改冒号后的部分
# - '18888:18888' # dll 开启的端口,具体由 python 端设置(建议冒号前后相同)
# - '10808:10808' # dll 开启的端口,具体由 python 端设置(建议冒号前后相同)
environment:
- VNCPASS=asdfgh123
ipc: host
volumes:
- "./volume/WeChat Files/:/home/user/.wine/drive_c/users/user/My Documents/WeChat Files/"
- "./volume/Application Data/:/home/user/.wine/drive_c/users/user/Application Data/"
privileged: true
network_mode: host
image: tomsnow1999/docker-com_wechat_robot:latest
# build:
# context: .
# dockerfile: ./Dockerfile

66
run.py Normal file
View File

@ -0,0 +1,66 @@
#!/usr/bin/python3
import subprocess, os, signal, datetime
class DockerWechatHook:
def __init__(self):
signal.signal(signal.SIGINT, self.now_exit)
signal.signal(signal.SIGHUP, self.now_exit)
signal.signal(signal.SIGTERM, self.now_exit)
def now_exit(self, signum, frame):
self.exit_container()
def run_vnc(self):
# 根据 VNCPASS 环境变量生成 vncpasswd 文件
os.makedirs('/root/.vnc', mode=755, exist_ok=True)
passwd_output = subprocess.run(['/usr/bin/vncpasswd','-f'],input=os.environ['VNCPASS'].encode(),capture_output=True)
with open('/root/.vnc/passwd', 'wb') as f:
f.write(passwd_output.stdout)
os.chmod('/root/.vnc/passwd', 0o700)
self.vnc = subprocess.Popen(['/usr/bin/vncserver','-localhost',
'no', '-xstartup', '/usr/bin/openbox' ,':5'])
def run_wechat(self):
# if not os.path.exists("/wechat_installed.txt"):
# self.wechat = subprocess.run(['wine','WeChatSetup.exe'])
# with open("/wechat_installed.txt", "w") as f:
# f.write("True\n")
# self.wechat = subprocess.run(['wine', 'explorer.exe'])
self.wechat = subprocess.Popen(['wine','/home/user/.wine/drive_c/Program Files/Tencent/WeChat/WeChat.exe'])
# self.wechat = subprocess.run(['wine','/home/user/.wine/drive_c/Program Files/Tencent/WeChat/WeChat.exe'])
def run_hook(self):
self.reg_hook = subprocess.run(['wine','/socket/WeChatHook.exe'])
# self.reg_hook = subprocess.run(['wine', 'explorer.exe'])
def exit_container(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 正在退出容器...')
try:
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 退出微信...')
os.kill(self.wechat.pid, signal.SIGTERM)
except:
pass
try:
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 退出Hook程序...')
os.kill(self.reg_hook.pid, signal.SIGTERM)
except:
pass
try:
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 退出VNC...')
os.kill(self.vnc.pid, signal.SIGTERM)
except:
pass
def run_all_in_one(self):
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 启动容器中...')
self.run_vnc()
self.run_wechat()
self.run_hook()
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')+ ' 启动完成.')
if __name__ == '__main__' :
print('---All in one 微信 ComRobot 容器---')
hook = DockerWechatHook()
hook.run_all_in_one()

334
test.py Normal file
View File

@ -0,0 +1,334 @@
# by @0honus0
from ensurepip import version
import json
import copy
import threading
import requests
import socketserver
# from signal import signal, SIGPIPE, SIG_DFL
# signal(SIGPIPE,SIG_DFL)
class WECHAT_HTTP_APIS:
# login check
WECHAT_IS_LOGIN = 0 # 登录检查
# self info
WECHAT_GET_SELF_INFO = 1 # 获取个人信息
# send message
WECHAT_MSG_SEND_TEXT = 2 # 发送文本
WECHAT_MSG_SEND_AT = 3 # 发送群艾特
WECHAT_MSG_SEND_CARD = 4 # 分享好友名片
WECHAT_MSG_SEND_IMAGE = 5 # 发送图片
WECHAT_MSG_SEND_FILE = 6 # 发送文件
WECHAT_MSG_SEND_ARTICLE = 7 # 发送xml文章
WECHAT_MSG_SEND_APP = 8 # 发送小程序
# receive message
WECHAT_MSG_START_HOOK = 9 # 开启接收消息HOOK只支持socket监听
WECHAT_MSG_STOP_HOOK = 10 # 关闭接收消息HOOK
WECHAT_MSG_START_IMAGE_HOOK = 11 # 开启图片消息HOOK
WECHAT_MSG_STOP_IMAGE_HOOK = 12 # 关闭图片消息HOOK
WECHAT_MSG_START_VOICE_HOOK = 13 # 开启语音消息HOOK
WECHAT_MSG_STOP_VOICE_HOOK = 14 # 关闭语音消息HOOK
# contact
WECHAT_CONTACT_GET_LIST = 15 # 获取联系人列表
WECHAT_CONTACT_CHECK_STATUS = 16 # 检查是否被好友删除
WECHAT_CONTACT_DEL = 17 # 删除好友
WECHAT_CONTACT_SEARCH_BY_CACHE = 18 # 从内存中获取好友信息
WECHAT_CONTACT_SEARCH_BY_NET = 19 # 网络搜索用户信息
WECHAT_CONTACT_ADD_BY_WXID = 20 # wxid加好友
WECHAT_CONTACT_ADD_BY_V3 = 21 # v3数据加好友
WECHAT_CONTACT_ADD_BY_PUBLIC_ID = 22 # 关注公众号
WECHAT_CONTACT_VERIFY_APPLY = 23 # 通过好友请求
WECHAT_CONTACT_EDIT_REMARK = 24 # 修改备注
# chatroom
WECHAT_CHATROOM_GET_MEMBER_LIST = 25 # 获取群成员列表
WECHAT_CHATROOM_GET_MEMBER_NICKNAME = 26 # 获取指定群成员昵称
WECHAT_CHATROOM_DEL_MEMBER = 27 # 删除群成员
WECHAT_CHATROOM_ADD_MEMBER = 28 # 添加群成员
WECHAT_CHATROOM_SET_ANNOUNCEMENT = 29 # 设置群公告
WECHAT_CHATROOM_SET_CHATROOM_NAME = 30 # 设置群聊名称
WECHAT_CHATROOM_SET_SELF_NICKNAME = 31 # 设置群内个人昵称
# database
WECHAT_DATABASE_GET_HANDLES = 32 # 获取数据库句柄
WECHAT_DATABASE_BACKUP = 33 # 备份数据库
WECHAT_DATABASE_QUERY = 34 # 数据库查询
# version
WECHAT_SET_VERSION = 35 # 修改微信版本号
# log
WECHAT_LOG_START_HOOK = 36 # 开启日志信息HOOK
WECHAT_LOG_STOP_HOOK = 37 # 关闭日志信息HOOK
# browser
WECHAT_BROWSER_OPEN_WITH_URL = 38 # 打开微信内置浏览器
WECHAT_GET_PUBLIC_MSG = 39 # 获取公众号历史消息
WECHAT_MSG_FORWARD_MESSAGE = 40 # 转发消息
WECHAT_GET_QRCODE_IMAGE = 41 # 获取二维码
APIS = WECHAT_HTTP_APIS
# http api 参数模板
class WECHAT_HTTP_API_PARAM_TEMPLATES:
__HTTP_API_PARAM_TEMPLATE = {
# login check
APIS.WECHAT_IS_LOGIN: {},
# self info
APIS.WECHAT_GET_SELF_INFO: {},
# send message
APIS.WECHAT_MSG_SEND_TEXT: {"wxid": "",
"msg": ""},
# wxids需要以`,`分隔,例如`wxid1,wxid2,wxid3`
APIS.WECHAT_MSG_SEND_AT: {"chatroom_id":"",
"wxids": "",
"msg": "",
"auto_nickname": 1},
APIS.WECHAT_MSG_SEND_CARD: {"receiver":"",
"shared_wxid":"",
"nickname":""},
APIS.WECHAT_MSG_SEND_IMAGE: {"receiver":"",
"img_path":""},
APIS.WECHAT_MSG_SEND_FILE: {"receiver":"",
"file_path":""},
APIS.WECHAT_MSG_SEND_ARTICLE: {"wxid":"",
"title":"",
"abstract":"",
"url":"",
"img_path":""},
APIS.WECHAT_MSG_SEND_APP: {"wxid":"",
"appid":""},
# receive message
APIS.WECHAT_MSG_START_HOOK: {"port": 10808},
APIS.WECHAT_MSG_STOP_HOOK: {},
APIS.WECHAT_MSG_START_IMAGE_HOOK: {"save_path":""},
APIS.WECHAT_MSG_STOP_IMAGE_HOOK: {},
APIS.WECHAT_MSG_START_VOICE_HOOK: {"save_path":""},
APIS.WECHAT_MSG_STOP_VOICE_HOOK: {},
# contact
APIS.WECHAT_CONTACT_GET_LIST: {},
APIS.WECHAT_CONTACT_CHECK_STATUS: {"wxid":""},
APIS.WECHAT_CONTACT_DEL: {"wxid":""},
APIS.WECHAT_CONTACT_SEARCH_BY_CACHE: {"wxid":""},
APIS.WECHAT_CONTACT_SEARCH_BY_NET: {"keyword":""},
APIS.WECHAT_CONTACT_ADD_BY_WXID: {"wxid":"",
"msg":""},
APIS.WECHAT_CONTACT_ADD_BY_V3: {"v3":"",
"msg":"",
"add_type": 0x6},
APIS.WECHAT_CONTACT_ADD_BY_PUBLIC_ID: {"public_id":""},
APIS.WECHAT_CONTACT_VERIFY_APPLY: {"v3":"",
"v4":""},
APIS.WECHAT_CONTACT_EDIT_REMARK: {"wxid":"",
"remark":""},
# chatroom
APIS.WECHAT_CHATROOM_GET_MEMBER_LIST: {"chatroom_id":""},
APIS.WECHAT_CHATROOM_GET_MEMBER_NICKNAME: {"chatroom_id":"",
"wxid":""},
# wxids需要以`,`分隔,例如`wxid1,wxid2,wxid3`
APIS.WECHAT_CHATROOM_DEL_MEMBER: {"chatroom_id":"",
"wxids":""},
# wxids需要以`,`分隔,例如`wxid1,wxid2,wxid3`
APIS.WECHAT_CHATROOM_ADD_MEMBER: {"chatroom_id":"",
"wxids":""},
APIS.WECHAT_CHATROOM_SET_ANNOUNCEMENT: {"chatroom_id":"",
"announcement":""},
APIS.WECHAT_CHATROOM_SET_CHATROOM_NAME: {"chatroom_id":"",
"chatroom_name":""},
APIS.WECHAT_CHATROOM_SET_SELF_NICKNAME: {"chatroom_id":"",
"nickname":""},
# database
APIS.WECHAT_DATABASE_GET_HANDLES: {},
APIS.WECHAT_DATABASE_BACKUP: {"db_handle":0,
"save_path":""},
APIS.WECHAT_DATABASE_QUERY: {"db_handle":0,
"sql":""},
# version
APIS.WECHAT_SET_VERSION: {"version": "3.7.0.30"},
# log
APIS.WECHAT_LOG_START_HOOK: {},
APIS.WECHAT_LOG_STOP_HOOK: {},
# browser
APIS.WECHAT_BROWSER_OPEN_WITH_URL: {"url": "https://www.baidu.com/"},
APIS.WECHAT_GET_PUBLIC_MSG: {"public_id": "","offset": ""},
APIS.WECHAT_MSG_FORWARD_MESSAGE: {"wxid": "filehelper","msgid": 2 ** 64 - 1},
APIS.WECHAT_GET_QRCODE_IMAGE: {}
}
def get_http_template(self, api_number):
try:
return copy.deepcopy(self.__HTTP_API_PARAM_TEMPLATE[api_number])
except KeyError:
raise ValueError("There is no interface numbered %s." % api_number)
get_http_template = WECHAT_HTTP_API_PARAM_TEMPLATES().get_http_template
class ReceiveMsgSocketServer(socketserver.BaseRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def handle(self):
conn = self.request
while True:
try:
ptr_data = b""
while True:
data = conn.recv(1024)
ptr_data += data
if len(data) == 0 or data[-1] == 0xA:
break
msg = json.loads(ptr_data.decode('utf-8'))
ReceiveMsgSocketServer.msg_callback(msg)
conn.sendall("200 OK".encode())
except OSError:
break
except json.JSONDecodeError:
pass
conn.close()
@staticmethod
def msg_callback(msg):
print(msg)
# TODO: 在这里写额外的消息处理逻辑
def post_wechat_http_api(api,port,data = {}):
url = "http://127.0.0.1:{}/api/?type={}".format(port,api)
resp = requests.post(url = url,data = json.dumps(data))
return resp.json()
def get_wechat_http_api(api,port,data = {}):
url = "http://127.0.0.1:{}/api/?type={}".format(port,api)
resp = requests.get(url = url,params = data)
return resp.json()
def get_wechat_pid_list() -> list:
import psutil
pid_list = []
process_list = psutil.pids()
for pid in process_list:
try:
if psutil.Process(pid).name() == 'WeChat.exe':
pid_list.append(pid)
except psutil.NoSuchProcess:
pass
return pid_list
def start_socket_server(port: int = 10808,
request_handler = ReceiveMsgSocketServer,
main_thread: bool = True) -> int or None:
ip_port = ("127.0.0.1", port)
try:
s = socketserver.ThreadingTCPServer(ip_port, request_handler)
if main_thread:
s.serve_forever()
else:
socket_server = threading.Thread(target=s.serve_forever)
socket_server.setDaemon(True)
socket_server.start()
return socket_server.ident
except KeyboardInterrupt:
pass
except Exception as e:
print(e)
return None
def test_send_msg(test_port):
post_wechat_http_api(APIS.WECHAT_LOG_START_HOOK,port = test_port)
if post_wechat_http_api(APIS.WECHAT_IS_LOGIN,port = test_port)["is_login"] == 1:
print(post_wechat_http_api(APIS.WECHAT_GET_SELF_INFO,port = test_port))
data = {"wxid":"filehelper","msg":"hello http"}
post_wechat_http_api(APIS.WECHAT_MSG_SEND_TEXT,data = data,port = test_port)
data = {"receiver":'filehelper',"shared_wxid":"filehelper","nickname":"文件传输助手"}
post_wechat_http_api(APIS.WECHAT_MSG_SEND_CARD,data = data,port = test_port)
data = {"receiver":'filehelper',"img_path":r"D:\VS2019C++\MyWeChatRobot\test\测试图片.png"}
post_wechat_http_api(APIS.WECHAT_MSG_SEND_IMAGE,data = data,port = test_port)
data = {"receiver":'filehelper',"file_path":r"D:\VS2019C++\MyWeChatRobot\test\测试文件"}
post_wechat_http_api(APIS.WECHAT_MSG_SEND_FILE,data = data,port = test_port)
data = {"wxid":'filehelper',
"title":"百度",
"abstract":"百度一下,你就知道",
"url":"https://www.baidu.com/",
"img_path":""}
post_wechat_http_api(APIS.WECHAT_MSG_SEND_ARTICLE,data = data,port = test_port)
print(post_wechat_http_api(APIS.WECHAT_CONTACT_GET_LIST,port = test_port))
data = {"wxid":"filehelper"}
print(post_wechat_http_api(APIS.WECHAT_CONTACT_CHECK_STATUS,data = data,port = test_port))
post_wechat_http_api(APIS.WECHAT_LOG_STOP_HOOK,port = test_port)
def test_get_public_msg(test_port,public_id):
import time
param = {"public_id": public_id,"offset": ""}
data = post_wechat_http_api(APIS.WECHAT_GET_PUBLIC_MSG,test_port,param)
msg_list = json.loads(data['msg'])['MsgList']
next_offset = msg_list['PagingInfo']['Offset']
for msg in msg_list['Msg']:
detail_info = msg['AppMsg']['DetailInfo']
for info in detail_info:
Title = info['Title']
Digest = info['Digest']
ContentUrl = info['ContentUrl']
post_wechat_http_api(APIS.WECHAT_BROWSER_OPEN_WITH_URL,
test_port,
{"url":ContentUrl}
)
time.sleep(3)
break
break
def test_get_chatroom_list_from_db(test_port):
dbs = post_wechat_http_api(APIS.WECHAT_DATABASE_GET_HANDLES,port = test_port)
db_handle = [i for i in dbs['data'] if i['db_name'] == 'MicroMsg.db'][0]['handle']
sql = "select UserName,Alias,EncryptUserName,Type,VerifyFlag,Remark,NickName,ChatRoomType,ExtraBuf from Contact where Type=2;"
data = {"db_handle":db_handle,"sql":sql}
res = post_wechat_http_api(APIS.WECHAT_DATABASE_QUERY,data = data,port = test_port)
return res['data']
if __name__ == '__main__':
port = 18888
# pids = get_wechat_pid_list()
# if len(pids) == 0:
# pids.append(new_wechat())
# start_listen(pids[0],port)
#post_wechat_http_api(APIS.WECHAT_LOG_START_HOOK,port)
print(post_wechat_http_api(APIS.WECHAT_GET_SELF_INFO, port))
# 获取最新版本微信版本号 @tom-snow
# https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1 # json 读 [0]["tag_name"]
resp = requests.get(url = "https://api.github.com/repos/tom-snow/wechat-windows-versions/releases?per_page=1",params = {"per_page": 1})
latest_version = resp.json()[0]["tag_name"]
print(post_wechat_http_api(APIS.WECHAT_SET_VERSION, port, {"version": latest_version})) # 修改成最新版本,防止更新
print(post_wechat_http_api(APIS.WECHAT_MSG_START_HOOK, port, {"port":10808}))
start_socket_server()
# stop_listen(pids[0])

1
wine/.update-timestamp Executable file
View File

@ -0,0 +1 @@
1663599636

BIN
wine/simsun.ttc Normal file

Binary file not shown.

39086
wine/system.reg Executable file

File diff suppressed because it is too large Load Diff

818
wine/user.reg Executable file
View File

@ -0,0 +1,818 @@
WINE REGISTRY Version 2
;; All keys relative to \\User\\S-1-5-21-0-0-0-1000
#arch=win32
[AppEvents\\Schemes\\Apps\\Explorer\\Navigating\\.Current] 1636010779
#time=1d7d14d431c14bc
@=""
[Console\\C:_windows_system32_cmd.exe] 1642599977
#time=1d80d3aeecf30d6
"ColorTable00"=dword:00000000
"ColorTable01"=dword:00800000
"ColorTable02"=dword:00008000
"ColorTable03"=dword:00808000
"ColorTable04"=dword:00000080
"ColorTable05"=dword:00800080
"ColorTable06"=dword:00008080
"ColorTable07"=dword:00c0c0c0
"ColorTable08"=dword:00808080
"ColorTable09"=dword:00ff0000
"ColorTable10"=dword:0000ff00
"ColorTable11"=dword:00ffff00
"ColorTable12"=dword:000000ff
"ColorTable13"=dword:00ff00ff
"ColorTable14"=dword:0000ffff
"ColorTable15"=dword:00ffffff
"CursorSize"=dword:00000019
"CursorVisible"=dword:00000001
"EditionMode"=dword:00000000
"FaceName"="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"FontPitchFamily"=dword:00000001
"FontSize"=dword:000a0006
"FontWeight"=dword:00000190
"HistoryBufferSize"=dword:00000032
"HistoryNoDup"=dword:00000000
"InsertMode"=dword:00000001
"MenuMask"=dword:00000000
"PopupColors"=dword:000000f5
"QuickEdit"=dword:00000000
"ScreenBufferSize"=dword:00190050
"ScreenColors"=dword:0000000f
"WindowSize"=dword:00190050
[Control Panel\\Accessibility\\AudioDescription] 1636010773
#time=1d7d14d3f391c8c
"Locale"=dword:00000000
"On"="0"
[Control Panel\\Accessibility\\Blind Access] 1636010773
#time=1d7d14d3f3900ee
"On"="0"
[Control Panel\\Accessibility\\Keyboard Preference] 1636010773
#time=1d7d14d3f38de8e
"On"="1"
[Control Panel\\Accessibility\\ShowSounds] 1636010773
#time=1d7d14d3f390706
"On"="0"
[Control Panel\\Colors] 1636010773
#time=1d7d14d3f41361a
[Control Panel\\Desktop] 1636010773
#time=1d7d14d3f390e9a
"ActiveWndTrackTimeout"=dword:00000000
"BlockSendInputResets"="0"
"CaretWidth"=dword:00000001
"ClickLockTime"=dword:000004b0
"DoubleClickHeight"="4"
"DoubleClickWidth"="4"
"DragFullWindows"="0"
"DragHeight"="4"
"DragWidth"="4"
"FocusBorderHeight"=dword:00000001
"FocusBorderWidth"=dword:00000001
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000000
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000001
"ForegroundFlashCount"=dword:00000003
"ForegroundLockTimeout"=dword:00000000
"IconTitleWrap"="1"
"LowPowerActive"="0"
"MenuShowDelay"="400"
"UserPreferencesMask"=hex:30,00,00,80,12,00,00,00
"Wallpaper"=""
"WheelScrollChars"="3"
"WheelScrollLines"="3"
[Control Panel\\Desktop\\WindowMetrics] 1636010773
#time=1d7d14d3f3908d2
"BorderWidth"="-15"
"CaptionHeight"="-270"
"CaptionWidth"="-270"
"IconSpacing"="-1125"
"IconTitleWrap"="1"
"IconVerticalSpacing"="-1125"
"MenuHeight"="-270"
"MenuWidth"="-270"
"PaddedBorderWidth"="0"
"ScrollHeight"="-240"
"ScrollWidth"="-240"
"SmCaptionHeight"="-225"
"SmCaptionWidth"="-225"
[Control Panel\\International] 1642599928
#time=1d80d3ad1de2310
"iCalendarType"="1"
"iCountry"="86"
"iCurrDigits"="2"
"iCurrency"="0"
"iDate"="2"
"iDigits"="2"
"iFirstDayOfWeek"="6"
"iFirstWeekOfYear"="0"
"iLDate"="2"
"iLZero"="0"
"iMeasure"="0"
"iNegCurr"="2"
"iNegNumber"="1"
"iPaperSize"="9"
"iTime"="1"
"iTimePrefix"="1"
"iTLZero"="0"
"Locale"="00000804"
"LocaleName"="zh-CN"
"Numshape"="1"
"s1159"="\x4e0a\x5348"
"s2359"="\x4e0b\x5348"
"sCountry"="People's Republic of China"
"sCurrency"="\xffe5"
"sDate"="-"
"sDecimal"="."
"sGrouping"="3;0"
"sLanguage"="CHS"
"sList"=","
"sLongDate"="yyyy'\x5e74'M'\x6708'd'\x65e5'"
"sMonDecimalSep"="."
"sMonGrouping"="3;0"
"sMonThousandSep"=","
"sNativeDigits"="0123456789"
"sNegativeSign"="-"
"sPositiveSign"=""
"sShortDate"="yyyy-M-d"
"sThousand"=","
"sTime"=":"
"sTimeFormat"="H:mm:ss"
"sYearMonth"="yyyy'\x5e74'M'\x6708'"
[Control Panel\\International\\Geo] 1642599928
#time=1d80d3ad1de240a
"Nation"="45"
[Control Panel\\Keyboard] 1636010773
#time=1d7d14d3f38df7e
"KeyboardDelay"="1"
"KeyboardSpeed"="31"
[Control Panel\\Mouse] 1636010773
#time=1d7d14d3f3909b8
"ActiveWindowTracking"=dword:00000000
"DoubleClickHeight"="4"
"DoubleClickSpeed"="500"
"DoubleClickWidth"="4"
"MouseHoverHeight"="4"
"MouseHoverTime"="400"
"MouseHoverWidth"="4"
"MouseSensitivity"="10"
"MouseSpeed"="1"
"MouseThreshold1"="6"
"MouseThreshold2"="10"
"SnapToDefaultButton"="0"
"SwapMouseButtons"="0"
[Control Panel\\Sound] 1636010773
#time=1d7d14d3f38afae
"Beep"="Yes"
[Environment] 1636010777
#time=1d7d14d4162e2ae
"TEMP"="C:\\users\\user\\Temp"
"TMP"="C:\\users\\user\\Temp"
[Keyboard Layout\\Preload] 1642599928
#time=1d80d3ad1ea29da
"1"="e0010804"
[Software\\Microsoft\\Installer\\Features\\C08C1A5415E3F234FA4672ABB6CF4F1C] 1636010779
#time=1d7d14d429c0cfe
"wine_gecko"=""
[Software\\Microsoft\\Installer\\Products\\C08C1A5415E3F234FA4672ABB6CF4F1C] 1636010779
#time=1d7d14d429c4246
"AdvertiseFlags"=dword:00000184
"Assignment"=dword:00000000
"AuthorizedLUAApp"=dword:00000000
"Clients"=":"
"InstanceType"=dword:00000000
"Language"=dword:00000000
"PackageCode"="97B82D3EB3EB6B94791820F1DA58F645"
"ProductName"="Wine Gecko (32-bit)"
"Version"=dword:022f0002
[Software\\Microsoft\\Installer\\Products\\C08C1A5415E3F234FA4672ABB6CF4F1C\\SourceList] 1636010779
#time=1d7d14d429c7d2e
"LastUsedSource"="n;1;Z:\\usr\\share\\wine\\gecko\\"
"PackageName"="wine-gecko-2.47.2-x86.msi"
[Software\\Microsoft\\Installer\\Products\\C08C1A5415E3F234FA4672ABB6CF4F1C\\SourceList\\Media] 1636010779
#time=1d7d14d429c84f4
"1"=";"
"DiskPrompt"=""
"MediaPackage"=""
[Software\\Microsoft\\Installer\\Products\\C08C1A5415E3F234FA4672ABB6CF4F1C\\SourceList\\Net] 1636010779
#time=1d7d14d429c5e02
"1"=str(2):"Z:\\usr\\share\\wine\\gecko\\"
[Software\\Microsoft\\Installer\\UpgradeCodes\\ADF909AA16ED9784E920D37B806499E7] 1636010779
#time=1d7d14d429c32ce
"C08C1A5415E3F234FA4672ABB6CF4F1C"=""
[Software\\Microsoft\\Internet Explorer\\BrowserMachineCode] 1642599981
#time=1d80d3af121436a
"MachineGuid"="fa30b095ee54403805afe32d1b169e6b"
[Software\\Microsoft\\Internet Explorer\\Main] 1636010779
#time=1d7d14d430ed798
"Search Page"="https://www.google.com"
"Start Page"="https://www.winehq.org"
[Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl] 1636010776
#time=1d7d14d4102f38a
[Software\\Microsoft\\Internet Explorer\\Settings] 1636010779
#time=1d7d14d430eddc4
"Text Color"="0,0,0"
[Software\\Microsoft\\Protected Storage System Provider] 1636010779
#time=1d7d14d431c18e0
[Software\\Microsoft\\SystemCertificates\\CA\\Certificates] 1642599981
#time=1d80d3af10b3cfa
[Software\\Microsoft\\SystemCertificates\\CA\\CRLs] 1642599981
#time=1d80d3af10b3e4e
[Software\\Microsoft\\SystemCertificates\\CA\\CTLs] 1642599981
#time=1d80d3af10b3f3e
[Software\\Microsoft\\SystemCertificates\\Disallowed\\Certificates] 1642599981
#time=1d80d3af12cb010
[Software\\Microsoft\\SystemCertificates\\Disallowed\\CRLs] 1642599981
#time=1d80d3af12cb0c4
[Software\\Microsoft\\SystemCertificates\\Disallowed\\CTLs] 1642599981
#time=1d80d3af12cb164
[Software\\Microsoft\\SystemCertificates\\My\\Certificates] 1642599981
#time=1d80d3af10b4506
[Software\\Microsoft\\SystemCertificates\\My\\CRLs] 1642599981
#time=1d80d3af10b45e2
[Software\\Microsoft\\SystemCertificates\\My\\CTLs] 1642599981
#time=1d80d3af10b46b4
[Software\\Microsoft\\SystemCertificates\\Root\\Certificates] 1642599981
#time=1d80d3af109c438
[Software\\Microsoft\\SystemCertificates\\Root\\CRLs] 1642599981
#time=1d80d3af109c51e
[Software\\Microsoft\\SystemCertificates\\Root\\CTLs] 1642599981
#time=1d80d3af109c640
[Software\\Microsoft\\SystemCertificates\\Trust\\Certificates] 1642599981
#time=1d80d3af10b4ca4
[Software\\Microsoft\\SystemCertificates\\Trust\\CRLs] 1642599981
#time=1d80d3af10b4d94
[Software\\Microsoft\\SystemCertificates\\Trust\\CTLs] 1642599981
#time=1d80d3af10b4e66
[Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced] 1642601005
#time=1d80d3d53b66f80
[Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders] 1642600997
#time=1d80d3d4ea60712
"Administrative Tools"="C:\\users\\user\\Start Menu\\Programs\\Administrative Tools"
"AppData"="C:\\users\\root\\Application Data"
"Cache"="C:\\users\\root\\Local Settings\\Temporary Internet Files"
"Cookies"="C:\\users\\root\\Cookies"
"Desktop"="C:\\users\\root\\Desktop"
"Favorites"="C:\\users\\root\\Favorites"
"Fonts"="C:\\windows\\Fonts"
"History"="C:\\users\\root\\Local Settings\\History"
"Local AppData"="C:\\users\\root\\Local Settings\\Application Data"
"My Music"="C:\\users\\user\\My Music"
"My Pictures"="C:\\users\\user\\My Pictures"
"My Videos"="C:\\users\\user\\My Videos"
"NetHood"="C:\\users\\user\\NetHood"
"Personal"="C:\\users\\root\\My Documents"
"PrintHood"="C:\\users\\user\\PrintHood"
"Programs"="C:\\users\\user\\Start Menu\\Programs"
"Recent"="C:\\users\\user\\Recent"
"SendTo"="C:\\users\\user\\SendTo"
"Start Menu"="C:\\users\\user\\Start Menu"
"StartUp"="C:\\users\\user\\Start Menu\\Programs\\StartUp"
"Templates"="C:\\users\\user\\Templates"
"{374DE290-123F-4565-9164-39C4925E467B}"="C:\\users\\user\\Downloads"
"{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"="C:\\users\\user\\Saved Games"
"{56784854-C6CB-462B-8169-88E350ACB882}"="C:\\users\\user\\Contacts"
"{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"="C:\\users\\user\\Searches"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"="C:\\users\\user\\AppData\\LocalLow"
"{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"="C:\\users\\user\\Links"
[Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders] 1636010777
#time=1d7d14d4160cce4
"Administrative Tools"=str(2):"%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"
"AppData"=str(2):"%USERPROFILE%\\Application Data"
"Cache"=str(2):"%USERPROFILE%\\Local Settings\\Temporary Internet Files"
"Cookies"=str(2):"%USERPROFILE%\\Cookies"
"Desktop"=str(2):"%USERPROFILE%\\Desktop"
"Favorites"=str(2):"%USERPROFILE%\\Favorites"
"Fonts"=str(2):"C:\\windows\\Fonts"
"History"=str(2):"%USERPROFILE%\\Local Settings\\History"
"Local AppData"=str(2):"%USERPROFILE%\\Local Settings\\Application Data"
"My Music"=str(2):"%USERPROFILE%\\My Music"
"My Pictures"=str(2):"%USERPROFILE%\\My Pictures"
"My Videos"=str(2):"%USERPROFILE%\\My Videos"
"NetHood"=str(2):"%USERPROFILE%\\NetHood"
"Personal"=str(2):"%USERPROFILE%\\My Documents"
"PrintHood"=str(2):"%USERPROFILE%\\PrintHood"
"Programs"=str(2):"%USERPROFILE%\\Start Menu\\Programs"
"Recent"=str(2):"%USERPROFILE%\\Recent"
"SendTo"=str(2):"%USERPROFILE%\\SendTo"
"Start Menu"=str(2):"%USERPROFILE%\\Start Menu"
"StartUp"=str(2):"%USERPROFILE%\\Start Menu\\Programs\\StartUp"
"Templates"=str(2):"%USERPROFILE%\\Templates"
"{374DE290-123F-4565-9164-39C4925E467B}"=str(2):"%USERPROFILE%\\Downloads"
"{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"=str(2):"%USERPROFILE%\\Saved Games"
"{56784854-C6CB-462B-8169-88E350ACB882}"=str(2):"%USERPROFILE%\\Contacts"
"{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"=str(2):"%USERPROFILE%\\Searches"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"=str(2):"%USERPROFILE%\\AppData\\LocalLow"
"{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"=str(2):"%USERPROFILE%\\Links"
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings] 1636010779
#time=1d7d14d42e2d684
"User Agent"="Mozilla/4.0 (compatible; MSIE 8.0; Win32)"
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap] 1636010779
#time=1d7d14d42e2cde2
@=""
"IntranetName"=dword:00000001
"ProxyByPass"=dword:00000001
"UNCAsIntranet"=dword:00000001
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains] 1636010779
#time=1d7d14d42e2c5fe
@=""
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\ProtocolDefaults] 1636010779
#time=1d7d14d42e2be4c
@=""
"@ivt"=dword:00000001
"file"=dword:00000003
"ftp"=dword:00000003
"http"=dword:00000003
"https"=dword:00000003
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges] 1636010779
#time=1d7d14d42e2cf2c
@=""
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones] 1636010779
#time=1d7d14d42e9e474
@=""
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\0] 1636010779
#time=1d7d14d42e4f892
@=""
"1001"=dword:00000000
"1004"=dword:00000000
"1200"=dword:00000000
"1201"=dword:00000001
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000000
"1407"=dword:00000000
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"1800"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"1E05"=dword:00030000
"CurrentLevel"=dword:00000000
"Description"="Your computer"
"DisplayName"="My Computer"
"Flags"=dword:00000021
"Icon"="explorer.exe#0100"
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\1] 1636010779
#time=1d7d14d42e69260
@=""
"1001"=dword:00000001
"1004"=dword:00000003
"1200"=dword:00000000
"1201"=dword:00000003
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000001
"1407"=dword:00000000
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"1800"=dword:00000001
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000001
"1805"=dword:00000000
"1A00"=dword:00020000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"1E05"=dword:00020000
"CurrentLevel"=dword:00010500
"Description"="This zone contains all Web sites that are on your organization's intranet."
"DisplayName"="Local intranet"
"Flags"=dword:000000db
"Icon"="shell32.dll#0018"
"MinLevel"=dword:00010000
"RecommendedLevel"=dword:00010500
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\2] 1636010779
#time=1d7d14d42e82328
@=""
"1001"=dword:00000000
"1004"=dword:00000001
"1200"=dword:00000000
"1201"=dword:00000001
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000000
"1407"=dword:00000000
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"1800"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00030000
"1E05"=dword:00030000
"CurrentLevel"=dword:00010000
"Description"="This zone contains Web sites that you trust not to damage your computer or data."
"DisplayName"="Trusted sites"
"Flags"=dword:00000047
"Icon"="inetcpl.cpl#00004480"
"MinLevel"=dword:00010000
"RecommendedLevel"=dword:00010000
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3] 1636010779
#time=1d7d14d42e9ddee
@=""
"1001"=dword:00000001
"1004"=dword:00000003
"1200"=dword:00000000
"1201"=dword:00000003
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000003
"1407"=dword:00000000
"1601"=dword:00000001
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"1800"=dword:00000001
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000001
"1805"=dword:00000001
"1A00"=dword:00020000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000003
"1A05"=dword:00000001
"1A06"=dword:00000000
"1A10"=dword:00000001
"1C00"=dword:00010000
"1E05"=dword:00020000
"CurrentLevel"=dword:00011000
"Description"="This zone contains all Web sites you haven't placed in other zones"
"DisplayName"="Internet"
"Flags"=dword:00000001
"Icon"="inetcpl.cpl#001313"
"MinLevel"=dword:00011000
"RecommendedLevel"=dword:00011000
[Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\4] 1636010779
#time=1d7d14d42eb6d80
@=""
"1001"=dword:00000003
"1004"=dword:00000003
"1200"=dword:00000003
"1201"=dword:00000003
"1400"=dword:00000003
"1402"=dword:00000003
"1405"=dword:00000003
"1406"=dword:00000003
"1407"=dword:00000003
"1601"=dword:00000001
"1604"=dword:00000001
"1605"=dword:00000000
"1606"=dword:00000003
"1607"=dword:00000003
"1608"=dword:00000003
"1609"=dword:00000001
"1800"=dword:00000003
"1802"=dword:00000001
"1803"=dword:00000003
"1804"=dword:00000003
"1805"=dword:00000001
"1A00"=dword:00010000
"1A02"=dword:00000003
"1A03"=dword:00000003
"1A04"=dword:00000003
"1A05"=dword:00000003
"1A06"=dword:00000003
"1A10"=dword:00000003
"1C00"=dword:00000000
"1E05"=dword:00010000
"CurrentLevel"=dword:00012000
"Description"="This zone contains Web sites that could potentially damage your computer or data."
"DisplayName"="Restricted sites"
"Flags"=dword:00000003
"Icon"="inetcpl.cpl#00004481"
"MinLevel"=dword:00012000
"RecommendedLevel"=dword:00012000
[Software\\Microsoft\\Windows\\CurrentVersion\\Run] 1642602319
#time=1d80d40629f118e
"Wechat"="C:\\Program Files\\Tencent\\WeChat\\WeChat.exe"
[Software\\Microsoft\\Windows\\CurrentVersion\\Wintrust\\Trust Providers\\Software Publishing] 1642599981
#time=1d80d3af108f2b0
"State"=dword:00023c00
[Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\ftp\\UserChoice] 1636010779
#time=1d7d14d431c85c8
"ProgId"="ftp"
[Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice] 1636010779
#time=1d7d14d431c9a0e
"ProgId"="http"
[Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\https\\UserChoice] 1636010779
#time=1d7d14d431cb250
"ProgId"="https"
[Software\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon] 1636010779
#time=1d7d14d43172164
[Software\\Tencent\\bugReport\\WechatWindows] 1642599979
#time=1d80d3aefe8b6b8
"InstallDir"="C:\\Program Files\\Tencent\\WeChat"
[Software\\Tencent\\QQBrowser] 1642599981
#time=1d80d3af13a3b90
[Software\\Tencent\\TBS\\exceptions] 1642602284
#time=1d80d404e3dd392
"browser"=hex:01,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00
"gpu-process"=hex:01,00,00,00,00,00,00,00,01,00,00,00,03,00,00,00
"ppapi"=hex:01,00,00,00,00,00,00,00,00,00,00,00,05,00,00,00
"renderer"=hex:01,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00
"utility"=hex:01,00,00,00,00,00,00,00,00,00,00,00,04,00,00,00
[Software\\Tencent\\TBS\\Wup] 1642599981
#time=1d80d3af13a378a
"ClientGuid"="3AC3AC6081BF8C7BE856309A377988CB"
"ClientToken"="CgkWxYc0z9KnPFt+t2JoTvoxeH/w67sEehSFC/9hgfyJQLDsx05AqVrlcMYVZ+sVSzay39kzW5hFFg1vudTMzXwKEgoxWbE1MuvgSaKXLIkfvXWayGVH5QLzcMJjBcRyT/e4Ah9HrwR6aY2PxPPGOmwlZ4ZdxQaE"
"ValidationGuid"="DB1D746F567F65B6E0A530AFF18751498B38015CD04CB266"
[Software\\Tencent\\WeChat] 1642601266
#time=1d80d3def5e7b8a
"ChannelId"=dword:000003e8
"CrashCnt"=dword:00000000
"CrashVersion"=dword:63060012
"FileSavePath"="C:\\users\\user\\My Documents"
"InstallPath"="C:\\Program Files\\Tencent\\WeChat"
"LANG_ID"=dword:00000004
"NeedUpdateType"=dword:00000000
"Version"=dword:63060012
[Software\\Wine\\Debug] 1636010779
#time=1d7d14d43186826
"RelayExclude"="ntdll.RtlEnterCriticalSection;ntdll.RtlTryEnterCriticalSection;ntdll.RtlLeaveCriticalSection;kernel32.48;kernel32.49;kernel32.94;kernel32.95;kernel32.96;kernel32.97;kernel32.98;kernel32.TlsGetValue;kernel32.TlsSetValue;kernel32.FlsGetValue;kernel32.FlsSetValue;kernel32.SetLastError"
"RelayFromExclude"="winex11.drv;winemac.drv;user32;gdi32;advapi32;kernel32"
[Software\\Wine\\DllOverrides] 1636010807
#time=1d7d14d533fdb76
"*ole32"="native,builtin"
"*riched20"="native,builtin"
[Software\\Wine\\FileOpenAssociations\\.chm] 1636010802
#time=1d7d14d505f40f4
"AppName"="hh"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-chm.desktop"
"MimeType"="application/vnd.ms-htmlhelp"
"OpenWithIcon"="A35F_hh.0"
"ProgID"="chm.file"
[Software\\Wine\\FileOpenAssociations\\.gif] 1636010802
#time=1d7d14d506bcb76
"AppName"="Wine Internet Explorer"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-gif.desktop"
"MimeType"="image/gif"
"OpenWithIcon"="FB4C_iexplore.0"
"ProgID"="giffile"
[Software\\Wine\\FileOpenAssociations\\.hlp] 1636010802
#time=1d7d14d5072237c
"AppName"="winhlp32"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-hlp.desktop"
"MimeType"="application/winhlp"
"OpenWithIcon"="4137_winhlp32.0"
"ProgID"="hlpfile"
[Software\\Wine\\FileOpenAssociations\\.htm] 1636010802
#time=1d7d14d507ba8b6
"AppName"="winebrowser"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-htm.desktop"
"MimeType"="text/html"
"OpenWithIcon"="7765_winebrowser.0"
"ProgID"="htmlfile"
[Software\\Wine\\FileOpenAssociations\\.ini] 1636010802
#time=1d7d14d508321cc
"AppName"="notepad"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-ini.desktop"
"MimeType"="application/x-wine-extension-ini"
"OpenWithIcon"="1E64_notepad.0"
"ProgID"="inifile"
[Software\\Wine\\FileOpenAssociations\\.jfif] 1636010802
#time=1d7d14d508ae330
"AppName"="Wine Internet Explorer"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-jfif.desktop"
"MimeType"="image/jpeg"
"OpenWithIcon"="FB4C_iexplore.0"
"ProgID"="pjpegfile"
[Software\\Wine\\FileOpenAssociations\\.jpe] 1636010802
#time=1d7d14d5090e2e4
"AppName"="Wine Internet Explorer"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-jpe.desktop"
"MimeType"="image/jpeg"
"OpenWithIcon"="FB4C_iexplore.0"
"ProgID"="jpegfile"
[Software\\Wine\\FileOpenAssociations\\.msp] 1636010802
#time=1d7d14d509f9ad2
"AppName"="Wine Installer"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-msp.desktop"
"MimeType"="application/x-wine-extension-msp"
"OpenWithIcon"="2402_msiexec.0"
"ProgID"="Msi.Patch"
[Software\\Wine\\FileOpenAssociations\\.pdf] 1636010802
#time=1d7d14d50a3cc06
"AppName"="winebrowser"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-pdf.desktop"
"MimeType"="application/pdf"
"OpenWithIcon"="7765_winebrowser.0"
"ProgID"="pdffile"
[Software\\Wine\\FileOpenAssociations\\.png] 1636010802
#time=1d7d14d50aa2c90
"AppName"="Wine Internet Explorer"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-png.desktop"
"MimeType"="image/png"
"OpenWithIcon"="FB4C_iexplore.0"
"ProgID"="pngfile"
[Software\\Wine\\FileOpenAssociations\\.rtf] 1636010802
#time=1d7d14d50b01c04
"AppName"="wordpad"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-rtf.desktop"
"MimeType"="application/rtf"
"OpenWithIcon"="97C1_wordpad.0"
"ProgID"="rtffile"
[Software\\Wine\\FileOpenAssociations\\.txt] 1636010802
#time=1d7d14d50b5bae2
"AppName"="notepad"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-txt.desktop"
"MimeType"="text/plain"
"OpenWithIcon"="1E64_notepad.0"
"ProgID"="txtfile"
[Software\\Wine\\FileOpenAssociations\\.url] 1636010802
#time=1d7d14d50ba7b22
"AppName"="rundll32"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-url.desktop"
"MimeType"="application/x-mswinurl"
"OpenWithIcon"="1CD8_rundll32.0"
"ProgID"="InternetShortcut"
[Software\\Wine\\FileOpenAssociations\\.vbs] 1636010802
#time=1d7d14d50c1c576
"AppName"="A Wine application"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-vbs.desktop"
"MimeType"="text/vbscript"
"ProgID"="VBSFile"
[Software\\Wine\\FileOpenAssociations\\.wri] 1636010802
#time=1d7d14d50c290dc
"AppName"="wordpad"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-wri.desktop"
"MimeType"="application/x-mswrite"
"OpenWithIcon"="97C1_wordpad.0"
"ProgID"="wrifile"
[Software\\Wine\\FileOpenAssociations\\.xml] 1636010802
#time=1d7d14d50c75f68
"AppName"="winebrowser"
"DesktopFile"="/home/user/.local/share/applications/wine-extension-xml.desktop"
"MimeType"="application/xml"
"OpenWithIcon"="7765_winebrowser.0"
"ProgID"="xmlfile"
[Software\\Wine\\Fonts] 1642602272
#time=1d80d40468e31dc
"Codepages"="936,936"
"LogPixels"=dword:00000060
[Software\\Wine\\Fonts\\External Fonts] 1642599928
#time=1d80d3ad1e47d3c
"@WenQuanYi Micro Hei (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-microhei.ttc"
"@WenQuanYi Micro Hei Mono (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-microhei.ttc"
"@WenQuanYi Zen Hei (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
"@WenQuanYi Zen Hei Mono (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
"@\x6587\x6cc9\x9a7f\x70b9\x9635\x6b63\x9ed1 (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
"DejaVu Sans (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSans.ttf"
"DejaVu Sans Bold (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSans-Bold.ttf"
"DejaVu Sans Mono (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSansMono.ttf"
"DejaVu Sans Mono Bold (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSansMono-Bold.ttf"
"DejaVu Serif (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSerif.ttf"
"DejaVu Serif Bold (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\dejavu\\DejaVuSerif-Bold.ttf"
"Marlett (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\marlett.ttf"
"Symbol (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\symbol.ttf"
"Tahoma (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\tahoma.ttf"
"Tahoma Bold (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\tahomabd.ttf"
"Webdings (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\webdings.ttf"
"WenQuanYi Micro Hei (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-microhei.ttc"
"WenQuanYi Micro Hei Mono (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-microhei.ttc"
"WenQuanYi Zen Hei (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
"WenQuanYi Zen Hei Mono (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
"Wingdings (TrueType)"="Z:\\opt\\wine-stable\\share\\wine\\fonts\\wingding.ttf"
"\x6587\x6cc9\x9a7f\x70b9\x9635\x6b63\x9ed1 (TrueType)"="Z:\\usr\\share\\fonts\\truetype\\wqy\\wqy-zenhei.ttc"
[Software\\Wine\\MenuFiles] 1642599978
#time=1d80d3aef6bb762
"/home/user/.config/menus/applications-merged/wine-Programs-\x5fae\x4fe1-\x5378\x8f7d\x5fae\x4fe1.menu"="/home/user/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start Menu/Programs/\x5fae\x4fe1/\x5378\x8f7d\x5fae\x4fe1.lnk"
"/home/user/.config/menus/applications-merged/wine-Programs-\x5fae\x4fe1-\x5fae\x4fe1.menu"="/home/user/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start Menu/Programs/\x5fae\x4fe1/\x5fae\x4fe1.lnk"
"/home/user/.local/share/applications/wine/Programs/\x5fae\x4fe1/\x5378\x8f7d\x5fae\x4fe1.desktop"="/home/user/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start Menu/Programs/\x5fae\x4fe1/\x5378\x8f7d\x5fae\x4fe1.lnk"
"/home/user/.local/share/applications/wine/Programs/\x5fae\x4fe1/\x5fae\x4fe1.desktop"="/home/user/.wine/dosdevices/c:/ProgramData/Microsoft/Windows/Start Menu/Programs/\x5fae\x4fe1/\x5fae\x4fe1.lnk"
"/home/user/.wine/dosdevices/c:/users/user/Desktop/\x5fae\x4fe1.desktop"="/home/user/.wine/dosdevices/c:/users/Public/Desktop/\x5fae\x4fe1.lnk"
[Software\\Wine\\WineDbg] 1642601195
#time=1d80d3dc4bec006

64
wine/userdef.reg Executable file
View File

@ -0,0 +1,64 @@
WINE REGISTRY Version 2
;; All keys relative to \\User\\.Default
#arch=win32
[Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders] 1636010777
#time=1d7d14d415ff5bc
"Administrative Tools"="C:\\users\\user\\Start Menu\\Programs\\Administrative Tools"
"AppData"="C:\\users\\user\\Application Data"
"Cache"="C:\\users\\user\\Local Settings\\Temporary Internet Files"
"Cookies"="C:\\users\\user\\Cookies"
"Desktop"="C:\\users\\user\\Desktop"
"Favorites"="C:\\users\\user\\Favorites"
"Fonts"="C:\\windows\\Fonts"
"History"="C:\\users\\user\\Local Settings\\History"
"Local AppData"="C:\\users\\user\\Local Settings\\Application Data"
"My Music"="C:\\users\\user\\My Music"
"My Pictures"="C:\\users\\user\\My Pictures"
"My Videos"="C:\\users\\user\\My Videos"
"NetHood"="C:\\users\\user\\NetHood"
"Personal"="C:\\users\\user\\My Documents"
"PrintHood"="C:\\users\\user\\PrintHood"
"Programs"="C:\\users\\user\\Start Menu\\Programs"
"Recent"="C:\\users\\user\\Recent"
"SendTo"="C:\\users\\user\\SendTo"
"Start Menu"="C:\\users\\user\\Start Menu"
"StartUp"="C:\\users\\user\\Start Menu\\Programs\\StartUp"
"Templates"="C:\\users\\user\\Templates"
"{374DE290-123F-4565-9164-39C4925E467B}"="C:\\users\\user\\Downloads"
"{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"="C:\\users\\user\\Saved Games"
"{56784854-C6CB-462B-8169-88E350ACB882}"="C:\\users\\user\\Contacts"
"{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"="C:\\users\\user\\Searches"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"="C:\\users\\user\\AppData\\LocalLow"
"{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"="C:\\users\\user\\Links"
[Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders] 1636010777
#time=1d7d14d415fe04a
"Administrative Tools"=str(2):"%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"
"AppData"=str(2):"%USERPROFILE%\\Application Data"
"Cache"=str(2):"%USERPROFILE%\\Local Settings\\Temporary Internet Files"
"Cookies"=str(2):"%USERPROFILE%\\Cookies"
"Desktop"=str(2):"%USERPROFILE%\\Desktop"
"Favorites"=str(2):"%USERPROFILE%\\Favorites"
"Fonts"=str(2):"C:\\windows\\Fonts"
"History"=str(2):"%USERPROFILE%\\Local Settings\\History"
"Local AppData"=str(2):"%USERPROFILE%\\Local Settings\\Application Data"
"My Music"=str(2):"%USERPROFILE%\\My Music"
"My Pictures"=str(2):"%USERPROFILE%\\My Pictures"
"My Videos"=str(2):"%USERPROFILE%\\My Videos"
"NetHood"=str(2):"%USERPROFILE%\\NetHood"
"Personal"=str(2):"%USERPROFILE%\\My Documents"
"PrintHood"=str(2):"%USERPROFILE%\\PrintHood"
"Programs"=str(2):"%USERPROFILE%\\Start Menu\\Programs"
"Recent"=str(2):"%USERPROFILE%\\Recent"
"SendTo"=str(2):"%USERPROFILE%\\SendTo"
"Start Menu"=str(2):"%USERPROFILE%\\Start Menu"
"StartUp"=str(2):"%USERPROFILE%\\Start Menu\\Programs\\StartUp"
"Templates"=str(2):"%USERPROFILE%\\Templates"
"{374DE290-123F-4565-9164-39C4925E467B}"=str(2):"%USERPROFILE%\\Downloads"
"{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"=str(2):"%USERPROFILE%\\Saved Games"
"{56784854-C6CB-462B-8169-88E350ACB882}"=str(2):"%USERPROFILE%\\Contacts"
"{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"=str(2):"%USERPROFILE%\\Searches"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"=str(2):"%USERPROFILE%\\AppData\\LocalLow"
"{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"=str(2):"%USERPROFILE%\\Links"

5
wine/winetricks.log Executable file
View File

@ -0,0 +1,5 @@
msls31
ole32
riched20
riched30
win7

BIN
wine/微信.lnk Executable file

Binary file not shown.