Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Dec 6, 2023
1 parent 5087de1 commit 5650652
Show file tree
Hide file tree
Showing 33 changed files with 449 additions and 368 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Fly Deploy
on:
push:
branches:
- main
tags:
- "v*"
jobs:
deploy:
name: Deploy app
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ Cargo.lock
*.xml.gz
*.json.gz
*.xml.zip
/helper/examples/nvdcve/data-feeds.html
/helper/examples/nvdcve/
/.env
/nvd-server/nvd-er.mwb.bak
/nvd-server/dist/
/dist/
/helper/examples/nvdcwe/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
- A collection of lib for working with [National Vulnerability Database](https://nvd.nist.gov/).

## CVE
![CVE列表](doc/cve.png)
![CVE列表](docs/cve.png)

## Details
![CVE详情](doc/details.png)
![CVE详情](docs/details.png)

## Libraries

Expand Down
1 change: 1 addition & 0 deletions cve/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub enum VulnStatus {
#[serde(rename = "Undergoing Analysis")]
UndergoingAnalysis,
Rejected,
Received,
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion cvss/src/severity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub enum SeverityTypeV2 {

impl Display for SeverityTypeV2 {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "S:{}", self.as_str())
write!(f, "{}", self.as_str())
}
}

Expand Down
5 changes: 5 additions & 0 deletions cwe/src/structured_text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ pub enum StructuredTextType {
#[serde(rename(deserialize = "$value"), default)]
children: Vec<Box<StructuredTextType>>,
},
#[serde(rename(deserialize = "sup"))]
Sup {
#[serde(rename(deserialize = "$value"), default)]
children: Vec<Box<StructuredTextType>>,
},
#[serde(rename(deserialize = "b"))]
XhtmlB {
#[serde(rename(deserialize = "$value"), default)]
Expand Down
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion helper/examples/cpe-api-example.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use nvd_api::ApiVersion;
use nvd_api::v2::products::{CpeMatchParameters, CpeParameters};
use nvd_api::ApiVersion;
// https://cwe.mitre.org/data/downloads.html
// curl -s -k https://cwe.mitre.org/data/downloads.html |grep -Eo '(/[^"]*\.xml.zip)'|xargs -I % wget -c https://cwe.mitre.org%
#[tokio::main]
Expand Down
2 changes: 1 addition & 1 deletion helper/examples/cve-api-example.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use nvd_api::ApiVersion;
use nvd_api::v2::vulnerabilities::{CveHistoryParameters, CveParameters};
use nvd_api::ApiVersion;
// https://cwe.mitre.org/data/downloads.html
// curl -s -k https://cwe.mitre.org/data/downloads.html |grep -Eo '(/[^"]*\.xml.zip)'|xargs -I % wget -c https://cwe.mitre.org%
#[tokio::main]
Expand Down
183 changes: 0 additions & 183 deletions helper/src/bin/api_to_db.rs

This file was deleted.

36 changes: 0 additions & 36 deletions helper/src/bin/cpe_match.rs

This file was deleted.

29 changes: 0 additions & 29 deletions helper/src/bin/cpe_to_db.rs

This file was deleted.

Loading

0 comments on commit 5650652

Please sign in to comment.