完成github监控部分的程序
This commit is contained in:
1 parent
247eaa5145
commit
1356dcc25c
32 files changed
+923
-501
No files matched your search
Binary file not shown.
+13
-3
@@ -19,7 +19,8 @@ def get_core_config():
|
||||
config = yaml.safe_load(file)
|
||||
logger.debug(f"Loaded config: {config}") # 输出加载的配置
|
||||
|
||||
choice = int(f"{config['circle']}")
|
||||
time_choice = int(f"{config['time_mode']}")
|
||||
choice = config['mode'] # 假设 mode 是一个列表
|
||||
e_hour = int(config.get('e_hour', '4')) # 默认循环时间为4小时
|
||||
|
||||
fs_activate = f"{config['fs_activate']}"
|
||||
@@ -53,11 +54,20 @@ def get_core_config():
|
||||
|
||||
url_web = f"{config['url']}"
|
||||
|
||||
return e_hour, choice, fs_activate, wx_activate, ding_activate, lx_activate, url_web
|
||||
return e_hour, time_choice, choice, fs_activate, wx_activate, ding_activate, lx_activate, url_web
|
||||
|
||||
def get_debug_config():
|
||||
with open('./config/config.yaml', 'r', encoding="utf-8") as file:
|
||||
config = yaml.safe_load(file)
|
||||
debug = f"{config['debug']}"
|
||||
|
||||
return debug
|
||||
return debug
|
||||
|
||||
def get_kewords_config():
|
||||
with open('./config/keywords.yaml', 'r', encoding="utf-8") as file:
|
||||
config = yaml.safe_load(file)
|
||||
Sogou_WX = config['Sogou-WX']
|
||||
Doonsec_switch = f"{config['Doonsec-switch']}"
|
||||
Doonsec = config['Doonsec']
|
||||
|
||||
return Sogou_WX, Doonsec_switch, Doonsec
|
||||
+12
-3
@@ -1,7 +1,10 @@
|
||||
# 飞书相关配置信息
|
||||
# fs_activate: True
|
||||
# fs_key: aa04a02f-d7bf-4279-bd48-44c4f28c8f74 # 此处填写token,记得冒号后空一格,如aa04a02f-d7bf-4279-bd48-44c4f28c8f74
|
||||
# fs_secret: 4tq65T4jm1MO2IlxvHxBWe # 此处填写签名密钥,记得冒号后空一格,如4tq65T4jm1MO2IlxvHxBWe
|
||||
fs_activate: True
|
||||
fs_key: aa04a02f-d7bf-4279-bd48-44c4f28c8f74 # 此处填写token,记得冒号后空一格,如aa04a02f-d7bf-4279-bd48-44c4f28c8f74
|
||||
fs_secret: 4tq65T4jm1MO2IlxvHxBWe # 此处填写签名密钥,记得冒号后空一格,如4tq65T4jm1MO2IlxvHxBWe
|
||||
fs_key: 202d7e51-9a46-422e-a035-863bc42bc459 # 此处填写token,记得冒号后空一格,如aa04a02f-d7bf-4279-bd48-44c4f28c8f74
|
||||
fs_secret: eZaSCl5DSqtJyZ8QpJBDFh # 此处填写签名密钥,记得冒号后空一格,如4tq65T4jm1MO2IlxvHxBWe
|
||||
|
||||
# 企业微信相关配置信息
|
||||
wx_activate: False
|
||||
@@ -23,7 +26,13 @@ sender: test@masonliu.com
|
||||
receivers: ['2857911564@qq.com']
|
||||
# 结算时间范围
|
||||
e_hour: 4 # 程序运行时间间隔
|
||||
circle: 1 # 是否启用循环,设置为0后将设置为特定时间点运行
|
||||
time_mode: 1
|
||||
# 0:定时运行模式,仅在指定时间运行(参照Core.py中设置)
|
||||
# 1:启用循环,一定间隔时间后运行
|
||||
mode: [1, 2] # 运行模式,可多选
|
||||
# 0:启用RSS抓取模式
|
||||
# 1:启用搜狗-微信公众号文章监测
|
||||
# 2:启用github项目监测
|
||||
|
||||
# 网址配置
|
||||
url: https://info.masonliu.com/ # 请设置为您自己反代的域名,或者改为 http://127.0.0.1:5000 或者对应IP域名
|
||||
|
||||
+28
-17
@@ -1,24 +1,24 @@
|
||||
# github相关配置信息
|
||||
github_token: xxxxxx # 此处填写github-token,在高速率获取github资源时有效防止403封禁
|
||||
github_token: # 此处填写github-token,在高速率获取github资源时有效防止403封禁
|
||||
translate: False # 是否开启翻译
|
||||
|
||||
# 监控列表
|
||||
tool_list: # 监控已创建的仓库是否更新
|
||||
- https://api.github.com/repos/BeichenDream/Godzilla
|
||||
- https://api.github.com/repos/rebeyond/Behinder
|
||||
- https://api.github.com/repos/AntSwordProject/antSword
|
||||
- https://api.github.com/repos/j1anFen/shiro_attack
|
||||
- https://api.github.com/repos/yhy0/github-cve-monitor
|
||||
- https://api.github.com/repos/gentilkiwi/mimikatz
|
||||
- https://api.github.com/repos/ehang-io/nps
|
||||
- https://api.github.com/repos/chaitin/xray
|
||||
- https://api.github.com/repos/FunnyWolf/pystinger
|
||||
- https://api.github.com/repos/L-codes/Neo-reGeorg
|
||||
- https://api.github.com/repos/shadow1ng/fscan
|
||||
- https://api.github.com/repos/SafeGroceryStore/MDUT
|
||||
- https://api.github.com/repos/EdgeSecurityTeam/Vulnerability
|
||||
- https://api.github.com/repos/wy876/POC
|
||||
- https://api.github.com/Vme18000yuan/FreePOC
|
||||
- BeichenDream/Godzilla
|
||||
- rebeyond/Behinder
|
||||
- AntSwordProject/antSword
|
||||
- j1anFen/shiro_attack
|
||||
- yhy0/github-cve-monitor
|
||||
- gentilkiwi/mimikatz
|
||||
- ehang-io/nps
|
||||
- chaitin/xray
|
||||
- FunnyWolf/pystinger
|
||||
- L-codes/Neo-reGeorg
|
||||
- shadow1ng/fscan
|
||||
- SafeGroceryStore/MDUT
|
||||
- EdgeSecurityTeam/Vulnerability
|
||||
- wy876/POC
|
||||
- Vme18000yuan/FreePOC
|
||||
|
||||
keyword_list: # 监控关键词
|
||||
- sql注入
|
||||
@@ -43,4 +43,15 @@ user_list: # 监控用户
|
||||
- zhzyker
|
||||
- lijiejie
|
||||
- projectdiscovery
|
||||
- HavocFramework
|
||||
- HavocFramework
|
||||
|
||||
black_words: # 监控违禁词
|
||||
- 反共
|
||||
- 反中共
|
||||
- 反华
|
||||
- 香港独立
|
||||
- 港独
|
||||
- 共产党
|
||||
- 毛泽东
|
||||
- 习近平
|
||||
- 台独
|
||||
@@ -1 +1,3 @@
|
||||
Sogou-WX: ["中国银行", "APP逆向", "渗透测试"] # 基于搜狗引擎搜索特定关键词的微信公众号文章
|
||||
Sogou-WX: ["银行测试", "APP逆向", "渗透测试", "手机银行漏洞", "银行漏洞", "支付漏洞"] # 基于搜狗引擎搜索特定关键词的微信公众号文章
|
||||
Doonsec-switch: False
|
||||
Doonsec: ["逆向", "解包", "POC"] # 洞见微信安全资讯关键词
|
||||
Reference in new issue
Block a user