好穷啊,有看得上我的富婆吗
- 🌱 只是一个菜鸡而已。
- 💰 如果觉得我的项目对你有帮助,可以给个 star 吗。
A docker image for https://github.com/ljc545w/ComWeChatRobot
系统: centos7.9
背景: 在连接vnc,扫码登录后,vnc可以看到微信界面正常,但是出现以下报错信息dbus[32]: arguments *******,且通过api无法访问18888端口,显示refused
具体报错: `dbus[32]: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file ../../../dbus/dbus-connection.c line 3544.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
wine: Assertion failed at address F7779430 (thread 0058), starting debugger...
2022-12-11 15:51:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
2022-12-11 15:51:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2022-12-11 15:51:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2022-12-11 15:51:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
2022-12-11 15:51:49: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
2022-12-11 15:51:49: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2022-12-11 15:51:49: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2022-12-11 15:51:49: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored`
尝试的操作:docker stop container后,docker restart container,日志和端口信息变化如下:虽然18888端口有了,但是调用api无长时间无响应。且vnc登录窗口里可以看到微信窗口变是卡死状态。重启机器后会重复上述问题
--2023-05-13 19:12:30-- https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.0.5/3.7.0.30-0.0.5.zip
正在解析主机 github.com (github.com)... 20.205.243.166
正在连接 github.com (github.com)|20.205.243.166|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230513%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230513T111231Z&X-Amz-Expires=300&X-Amz-Signature=dd49ea5a45dd975bd681da4f33525e819aa2c73fdd382fc7ae103663a4dce5a2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream [跟随至新的 URL]
--2023-05-13 19:12:31-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230513%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230513T111231Z&X-Amz-Expires=300&X-Amz-Signature=dd49ea5a45dd975bd681da4f33525e819aa2c73fdd382fc7ae103663a4dce5a2&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream
正在解析主机 objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
正在连接 objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:309756 (302K) [application/octet-stream]
正在保存至: “comwechat.zip”
0K .......... .......... .......... .......... .......... 16% 68.9K 4s
50K .......... .......... .......... .......... .......... 33% 202K 2s
100K .......... .......... .......... .......... .......... 49% 63.9K 2s
150K .......... .......... .......... .......... .......... 66% 39.3K 2s
200K .......... .......... .......... .......... .......... 82% 22.9K 1s
250K .......... .......... .......... .......... .......... 99% 46.0K 0s
300K .. 100% 4.65T=6.3s
2023-05-13 19:12:38 (48.0 KB/s) - 已保存 “comwechat.zip” [309756/309756])
Archive: comwechat.zip
creating: comwechat/http/
inflating: comwechat/http/SWeChatRobot.dll
inflating: comwechat/http/wxDriver.dll
inflating: comwechat/http/wxDriver.lib
inflating: comwechat/http/wxDriver.py
inflating: comwechat/http/wxDriver64.dll
inflating: comwechat/http/wxDriver64.lib
creating: comwechat/com/
inflating: comwechat/com/CWeChatRobot.exe
inflating: comwechat/com/DWeChatRobot.dll
inflating: comwechat/com/wxRobot.py
/usr/bin/xauth: file /root/.Xauthority does not exist
New Xtigervnc server 'omv.local:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd omv.local:5 to connect to the VNC server.
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
err:vkd3d_check_extensions: Required device extension "VK_KHR_shader_draw_parameters" is not supported.
err:vkd3d_check_extensions: Required device extension "VK_KHR_shader_draw_parameters" is not supported.
err:vkd3d_check_extensions: Required device extension "VK_KHR_shader_draw_parameters" is not supported.
err:vkd3d_check_extensions: Required device extension "VK_KHR_shader_draw_parameters" is not supported.
err:vkd3d_create_vk_device: Failed to create Vulkan device, vr -7.
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"].replace("v","")
There is a "v" in the front of the version number, so the set version number function may get a wrong number set to the wechat
我在使用这个项目
https://github.com/JustUndertaker/ComWeChatBotClient
运行时显示未安装COM组件
wine CWeChatRobot.exe /regserver
无效
按照 https://blog.honus.top/2022/10/15/580.html 配置,使用 docker-compose up -d
启动 docker 之后调用 docker logs comwechat
报如上错误。
具体的 docker-compose.yaml
文件如下
version: '3.3'
services:
wechatpchook:
container_name: comwechat
environment:
- VNCPASS=admin123
- COMWECHAT=https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.1.0-pre/3.7.0.30-0.1.0-pre.zip
volumes:
- "/root/WeChat/Files/:/home/user/.wine/drive_c/users/user/My Documents/WeChat Files/"
- "/root/WeChat/Data/:/home/user/.wine/drive_c/users/user/Application Data/"
privileged: true
network_mode: host
image: tomsnow1999/docker-com_wechat_robot:latest
在 1522+ 上用portainer创建容器之后,容器启动不久就会自动关闭,似乎是内部微信未能成功唤起,理由是重启几次之后遇到了一次没有自动结束的情况,但vnc连进去之后是一片黑,从docker console里手动启动微信也是没有结果。一次典型启动后自动结束产生的log如下
--2023-03-11 15:38:26-- https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.1.1-pre/3.7.0.30-0.1.1-pre.zip
正在解析主机 github.com (github.com)... 192.30.255.112
正在连接 github.com (github.com)|192.30.255.112|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/8a2560d4-30fa-481c-a3a1-0d1779dc94bf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230311%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230311T073826Z&X-Amz-Expires=300&X-Amz-Signature=7833fdfc41171f4154cea7ef79fac626efb3299994020f0cd2958b70045dc3ca&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.1.1-pre.zip&response-content-type=application%2Foctet-stream [跟随至新的 URL]
--2023-03-11 15:38:26-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/8a2560d4-30fa-481c-a3a1-0d1779dc94bf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230311%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230311T073826Z&X-Amz-Expires=300&X-Amz-Signature=7833fdfc41171f4154cea7ef79fac626efb3299994020f0cd2958b70045dc3ca&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.1.1-pre.zip&response-content-type=application%2Foctet-stream
正在解析主机 objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
正在连接 objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:390095 (381K) [application/octet-stream]
正在保存至: “comwechat.zip”
0K .......... .......... .......... .......... .......... 13% 418K 1s
50K .......... .......... .......... .......... .......... 26% 785K 1s
100K .......... .......... .......... .......... .......... 39% 790K 0s
150K .......... .......... .......... .......... .......... 52% 105M 0s
200K .......... .......... .......... .......... .......... 65% 791K 0s
250K .......... .......... .......... .......... .......... 78% 122M 0s
300K .......... .......... .......... .......... .......... 91% 119M 0s
350K .......... .......... .......... 100% 482K=0.4s
2023-03-11 15:38:27 (1015 KB/s) - 已保存 “comwechat.zip” [390095/390095])
Archive: comwechat.zip
creating: comwechat/com/
inflating: comwechat/com/CWeChatRobot.exe
inflating: comwechat/com/DWeChatRobot.dll
inflating: comwechat/com/wxRobot.py
creating: comwechat/http/
inflating: comwechat/http/SWeChatRobot.dll
inflating: comwechat/http/wxDriver.dll
inflating: comwechat/http/wxDriver.lib
inflating: comwechat/http/wxDriver.py
inflating: comwechat/http/wxDriver64.dll
inflating: comwechat/http/wxDriver64.lib
/usr/bin/xauth: file /root/.Xauthority does not exist
New Xtigervnc server '<ServerName>:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd <ServerName>:5 to connect to the VNC server.
---All in one 微信 ComRobot 容器---
2023-03-11 15:38:26 启动容器中...
等待 5 秒再 hook
2023-03-11 15:38:34 感谢使用.
RT.
https://github.com/ttttupup/wxhelper
这个支持到了3.9.x版本微信
---All in one 微信 ComRobot 容器---
2024-02-26 20:00:11 启动容器中...
等待 5 秒再 hook
Cleaning stale pidfile '/root/.vnc/BleachWrt.lan:5905.pid'!
Cleaning stale X11 lock '/tmp/.X5-lock'!
Cleaning stale X11 lock '/tmp/.X11-unix/X5'!
New Xtigervnc server 'BleachWrt.lan:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd BleachWrt.lan:5 to connect to the VNC server.
你好,大佬~有两个问题想要请教一下:
我感觉可能是我对下面代码的理解可能有偏差,但是找不到对应的解决方式。。烦请大佬有空了帮忙指导下~
print(post_wechat_http_api(APIS.WECHAT_MSG_START_HOOK, port, {"port":
10808}))与
start_socket_server() 我对start_socket_server的理解是,默认参数port为10808,运行后会只要不关闭程序会一直监听该机器上10808端口。之后新创建py文件,在里面编写调用
post_wechat_http_api(操作类型, 10808, dict类型的参数变量)`即可。
已按下列步骤走完流程:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.