From 8091219b849f0b61fffabb981380a170aa4d23bf Mon Sep 17 00:00:00 2001 From: MasonLiu <2857911564@qq.com> Date: Sun, 3 May 2026 19:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=84=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SendCore/DocGeneBot.py | 3 + SendCore/MailSendBot.py | 3 + config/config.yaml | 2 +- config/github_config.yaml | 14 +- install.sh | 94 +++++++++++++ requirements.txt | 1 - test.py | 13 -- web/app.py | 6 +- web/templates/index.html | 281 +++++++++++++++++++++++++++----------- 9 files changed, 316 insertions(+), 101 deletions(-) create mode 100644 install.sh delete mode 100644 test.py diff --git a/SendCore/DocGeneBot.py b/SendCore/DocGeneBot.py index e69de29..45f5256 100644 --- a/SendCore/DocGeneBot.py +++ b/SendCore/DocGeneBot.py @@ -0,0 +1,3 @@ +''' +文档生成功能暂无开发计划。 +''' \ No newline at end of file diff --git a/SendCore/MailSendBot.py b/SendCore/MailSendBot.py index 3ce06c9..d960042 100644 --- a/SendCore/MailSendBot.py +++ b/SendCore/MailSendBot.py @@ -1,5 +1,8 @@ #!/usr/bin/python # -*- coding: UTF-8 -*- +''' +邮件发送功能开发流程已中断,无实际利用场景。 +''' import yaml import smtplib diff --git a/config/config.yaml b/config/config.yaml index 39944d8..837a221 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -27,7 +27,7 @@ e_hour: 4 # 程序运行时间间隔 time_mode: 1 # 0:定时运行模式,仅在指定时间运行(参照Core.py中设置) # 1:启用循环,一定间隔时间后运行 -mode: [1, 2, 3] # 运行模式,可多选 +mode: [0, 1, 2, 3] # 运行模式,可多选 # 0:启用RSS抓取模式 # 1:启用搜狗-微信公众号文章监测 # 2:启用github项目监测 diff --git a/config/github_config.yaml b/config/github_config.yaml index d58866e..e9c93fc 100644 --- a/config/github_config.yaml +++ b/config/github_config.yaml @@ -4,12 +4,18 @@ translate: False # 是否开启翻译 # 监控列表 tool_list: # 监控已创建的仓库是否更新 - - BeichenDream/Godzilla - - wy876/POC + keyword_list: # 监控关键词 - - sql注入 - - cnvd + - 未授权 + - POC + - RCE + - 反序列化 + - webshell + - CVE-2026 + - 内网渗透 + - 漏洞检测 + - 钓鱼 user_list: # 监控用户 diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..9297fa4 --- /dev/null +++ b/install.sh @@ -0,0 +1,94 @@ +#!/bin/bash + +# 获取当前目录 +BASE_DIR=$(cd "$(dirname "$0")"; pwd) +USER_NAME=$(whoami) + +echo "项目路径: $BASE_DIR" + +# ========= 自动检测 Python ========= +detect_python() { + if command -v python >/dev/null 2>&1; then + PY=python + elif command -v python3 >/dev/null 2>&1; then + PY=python3 + else + echo "❌ 未检测到 Python,请先安装 Python 3.6+" + exit 1 + fi + + # 获取版本号 + VERSION=$($PY -c 'import sys; print(".".join(map(str, sys.version_info[:3])))') + + echo "检测到 Python: $PY ($VERSION)" + + # 校验版本 >= 3.6 + MAJOR=$(echo $VERSION | cut -d. -f1) + MINOR=$(echo $VERSION | cut -d. -f2) + + if [ "$MAJOR" -lt 3 ] || { [ "$MAJOR" -eq 3 ] && [ "$MINOR" -lt 6 ]; }; then + echo "❌ Python 版本过低(需要 >= 3.6)" + exit 1 + fi + + PYTHON_CMD=$PY +} + +detect_python + +# ========= 创建 PyBot 服务 ========= +sudo bash -c "cat > /etc/systemd/system/PyBot.service" < /etc/systemd/system/PyBot_Web.service" <
-

历史推送读取


+

📰 资讯推送中心

+ + +
+ 💡 提示:为保证网页运作性能,默认仅读取前20条记录 +
+ -
+
-

选择监控源新闻类型

-
-
- - - - - +

📋 选择资讯类型

+
+
+ + + + +
-

为保证网页运作性能,默认仅读取前20条记录,若您有需求可自行更改app.py

+
- +