首页
壁纸
友链
推荐
Windows系统激活
Search
1
QQ9.7.20永久禁止(QQ/NT)自动更新
28 阅读
2
DnF台服:账号任务实现演示
27 阅读
3
如何查询微信是被谁举报投诉的?
19 阅读
4
Centos系统还原官方yum源
18 阅读
5
DNF台服:新职业转职变更卷
17 阅读
闲言碎语
运维笔记
教程笔记
网站源码
其他源码
值得一看
DNF台服
登录
/
注册
Search
Gcn
累计撰写
53
篇文章
累计收到
0
条评论
首页
栏目
闲言碎语
运维笔记
教程笔记
网站源码
其他源码
值得一看
DNF台服
页面
壁纸
友链
推荐
Windows系统激活
搜索到
53
篇与
的结果
2025-07-30
Python实现的微信进群检测(防骚扰、防捣乱、防同行)
摘要:为了监控捣乱者、骚扰者、同行等人群加入微信群,我写了一个监控,实时监控这个人有没有偷偷混进群,如果检测到,就给你手机发送通知。import uiautomation as automation import requests import time def send_results(results, url): payload = {"results": results} try: response = requests.post(url, json=payload) if response.status_code == 200: print("---检测结果已发送至服务器---") else: print(f"发送失败,状态码: {response.status_code}") except requests.RequestException as e: print(f"发送请求时发生错误: {e}") def get_filtered_controls_at_depth(control, target_depth, filter_strings, bypass_strings, current_depth=0, detected_controls=None): if detected_controls is None: detected_controls = set() results = [] try: if current_depth == target_depth: # 如果控件名称包含任何绕过字符串,则跳过该控件 if any(bypass_string in control.Name for bypass_string in bypass_strings): return results # 如果控件名称包含任何过滤字符串且该控件未被检测过,则添加到结果中 if any(filter_string in control.Name for filter_string in filter_strings) and control.Name not in detected_controls: # 只返回控件内容 results.append(control.Name) detected_controls.add(control.Name) except Exception as e: print(f"处理控件信息时发生错误: {e}") try: children = control.GetChildren() for child in children: results.extend(get_filtered_controls_at_depth(child, target_depth, filter_strings, bypass_strings, current_depth + 1, detected_controls)) except Exception as e: print(f"获取子控件时发生错误: {e}") return results def monitor_chat_window(target_depth, filter_strings, bypass_strings, interval, url): detected_controls = set() while True: try: # 获取名为 "ChatWnd" 的窗口 window = automation.WindowControl(ClassName="ChatWnd") if window.Exists(0, 0): results = get_filtered_controls_at_depth(window, target_depth, filter_strings, bypass_strings, detected_controls=detected_controls) # 打印结果 if results: for result in results: print(result) send_results(result, url) else: # 移除每次循环中输出的 "持续为您监控中..." pass except Exception as e: print(f"主循环中发生错误: {e}") send_results(f"主循环中发生错误: {e}", url) # 等待指定的时间间隔 time.sleep(interval) if __name__ == "__main__": # 配置参数 target_depth = 12 # 检测的控件的深度(这里是固定的检测进群记录就是深度12别修改) filter_strings = ["Gcn"] # 要检测的字符串 bypass_strings = ["移出了群聊"] # 要绕过检测的字符串 interval = 1 # 检测的频率(秒) url = "https://xxxxxxxxx" # 接收监控结果的URL try: print("持续为您监控中...") # 只输出一次 # 开始监控 monitor_chat_window(target_depth, filter_strings, bypass_strings, interval, url) except KeyboardInterrupt: print("检测程序被中断,正在退出...") # 发送中断信息到服务器 send_results("检测程序被中断", url) print("程序已退出")这段代码的主要功能是通过监控名为 “ChatWnd” 的窗口,检查控件的名称是否包含特定的过滤字符串,并将检测结果通过 HTTP POST 请求发送到指定的URL,其背后的原理是通过 Python uiautomation 这个库去读取微信电脑版界面的控件去解析到具体的信息。如何使用打开微信电脑版你要监控的群单独拉出来在代码中的【要检测的字符串】中配置你要检测的微信用户昵称配置接收通知的URLCMD运行python程序即可开始检测整个过程请保持你要监控的群是不关闭的状态(最小化是可以的)打开微信电脑版你要监控的群单独拉出来CMD运行python程序即可开始检测接收到通知
2025年07月30日
2 阅读
0 评论
0 点赞
2024-12-18
Centos系统还原官方yum源
{alert type="info"}Tip:Centos官方已经宣布结束Centos6的支持,所以仓库地址已经从mirror.centos.org变成了vault.centos.org建议大家尽量使用新的版本,以免出现安全风险!{/alert}Centos6:cd /etc/yum.repos.d/ rm -rf CentOS-* rpm -Uvh --force https://vault.centos.org/6.10/os/x86_64/Packages/centos-release-6-10.el6.centos.12.3.x86_64.rpm yum clean all yum makecache yum update -yCentos7:cd /etc/yum.repos.d/ rm -rf CentOS-* rpm -Uvh --force http://mirror.centos.org/centos-7/7.9.2009/os/x86_64/Packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm yum clean all yum makecache yum update -yCentos8:cd /etc/yum.repos.d/ rm -rf CentOS-* rpm -Uvh --force http://mirror.centos.org/centos-8/8/BaseOS/x86_64/os/Packages/centos-linux-release-8.3-1.2011.el8.noarch.rpm yum clean all yum makecache yum update -y
2024年12月18日
18 阅读
0 评论
0 点赞
2024-12-18
如何查询微信是被谁举报投诉的?
最近tx又搞事情了,QQ大面积冻结封号。当然,这不单单指QQ,想必有很多朋友碰到过微信无缘无故被人投诉了,这种情况对生活和工作还是有影响的;下面傲世给大家分享一下如何去查询微信是被谁举报封的?微信被封或者出风险的朋友们可以试试看。1.微信公众号【微信团队】--底部菜单栏“帮助中心”--底部菜单栏"意见反馈"--点最下面一项"其他"选项--下拉到最底部选择“其他异常反馈”进入2.在意见栏输入“{alert type="success"}我的账号无缘无故被人恶意投诉,严重影响正常工作和沟通。请求严查此人为何恶意投诉我。需要给出个合理的理由{/alert}“诸如此类的话语(请勿照抄,自己发挥一下文笔),然后填写自己的联络电话,点击提交即可3.大概一天左右的时间吧,腾讯客服就会给出反馈,之后在推送的回馈处点击进去查看结果,会弹出”处理详情“的页面4.可以看到投诉你的人微信号的前两位和后两位,还有投诉你的原因和时间,我们可以根据这个在好友列表中去找到这个人
2024年12月18日
19 阅读
0 评论
0 点赞
2024-12-18
Nginx如何隐藏网址中的php后缀名
首先打开nginx.conf配置文件;添加如下内容:location / { ttry_files $uri $uri/ $uri.php$is_args$args; }这样,我们在访问网站时nginx会自动将网址中的.php替换删减掉,就可以实现隐藏后缀名.php的效果。小科普:try_files是nginx中的一个指令,有点类似于rewrite,用于尝试寻找指令后面指定路径的文件或目录并返回。$uri表示当前请求的URI路径,也就是URL域名后面的路径,不带参数。$ is_args表示如果请求的URL中带有参数,则$is_args代表的是“?”,如果请求的URL中没有参数则返回空字符串,用于传参用。$args表示请求URL中的完整的参数。
2024年12月18日
12 阅读
0 评论
0 点赞
2024-12-18
为网页图片加上loading="lazy"延迟加载资源(懒加载)
那么问题来了,哪些场景业务需要用到图片懒加载技术呢?答:当前页面图片元素过多,避免不必要的流量浪费;如果不是需要加载很多图片的话那还是不要用了,影响用户体验~使用方法<img src="load.jpg" loading="lazy" alt="Hello" />你没看错,和普通的img标签相比,只多出了loading="lazy"这个属性,就是这么简单;它就是今天所要了解的主角。可选值loading="lazy" loading="eager"lazy 懒加载,即:延迟获取资源。eager 立即加载,即:缺省值,你不加这个loading属性,它默认就是这个。
2024年12月18日
14 阅读
0 评论
0 点赞
1
...
8
9
10
11