Files
DAY_CVEinfo/README.md
2020-07-13 09:53:39 +08:00

58 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## DAY_CVEinfo
------
该脚本用于获取最新的CVE漏洞信息通过企业微信的接口每日推送
### 实现方法:
------
```
1、使用NVD的公开api获取漏洞信息
2、对结果进行处理过滤出自己感兴趣的漏洞
3、调用企业微信的api进行消息推送
4、放置在服务器上定时运行
```
### 如何使用
---
1、下载项目文件
`git clone https://github.com/knight-TBO/DAY_CVEinfo.git`
2、`cd DAY_CVEinfo` 目录
3、安装需求库
`pip install -r requirements.txt`
4、填写企业微信信息
<img src="./img/wxcof.png" style="zoom: 50%;" />
5、在服务器建立定时任务例如每天早上8:50推送
`crontab -e`
``50 08 * * * /usr/bin/python3 NEW_CVEinfo.py``
### 其它玩法:
---
1、只推送自己感兴趣的组件漏洞通过更改``vul_like`参数
<img src="./img/vullike.png" style="zoom: 50%;" />
2、只推送自己感兴趣的漏洞级别通过更改`risk_like``care`参数
<img src="./img/risklike.png" style="zoom: 50%;" />
### 运行效果:
---
<img src="./img/p1.jpg" style="zoom: 50%;" />
<img src="./img/p2.jpg" style="zoom:50%;" />