Code Monkey home page Code Monkey logo

cve-alert's Introduction

Just p7e4 😄

p7e4's GitHub stats

cve-alert's People

Contributors

p7e4 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cve-alert's Issues

run error by requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/cvealert.py", line 184, in
main()
File "/opt/cvealert.py", line 141, in main
sendMessages(getCve(time.time() - 60 * 60 * 24)[-5:])
File "/opt/cvealert.py", line 105, in getCve
for item in requests.get(url, timeout=30, headers=headers).json()["result"]["CVE_Items"]:
File "/usr/local/python3/lib/python3.7/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

btw:

December 2023 | The NVD will retire all 1.0 APIs on December 18th.

https://nvd.nist.gov/general/news/change-timeline

All new users, as well as existing users whose workflows include web scraping tools, the legacy data feeds, or the 1.0 APIs, must transition to the 2.0 APIs to continue to get NVD data without interruption.

https://services.nvd.nist.gov/rest/json/cves/2.0?

1.0接口停用,需要更新到2.0接口

美化输出企业微信群组的markdown格式

image
类似这样:
image
image

{
"msgtype": "markdown",
"markdown": {
"content": "漏洞命中关键词:mongodb

漏洞编号:CVE-2021-20330
公开日期:2022-07-18 09:30 (北京时间)
CNA来源: MongoDB, Inc.
CVSS评分: 6.5 MEDIUM
漏洞描述:<font color="info">对复制的集合具有基本CRUD权限的攻击者可以使用格式特别错误的oplog条目运行applyOps命令,从而在二级数据库上造成潜在的拒绝服务。此问题影响4.0.25之前的MongoDB Server v4.0版本;4.2.14之前的MongoDB服务器v4.2版本;4.4.6之前的MongoDB Server v4.4版本"
\n参考文献:
https://nvd.nist.gov/vuln/detail/CVE-2021-20330\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-20330
"}}

API链接 偶尔不通

偶尔会出现链接不通(访问API services.nvd.nist.gov)

建议出一个超时判定,走一个循环。

添加谷歌DNS nameserver 8.8.4.4 解决,偶尔还是会出现。

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.