Skip to content

Commit

Permalink
rename to scap
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Feb 17, 2024
1 parent ee4c01b commit b8117da
Show file tree
Hide file tree
Showing 29 changed files with 46 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
rustdoc:
if: github.repository == 'emo-crab/nvd-rs'
if: github.repository == 'emo-crab/scap-rs'
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
context: .
platforms: linux/amd64
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/nvd-rs:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/nvd-rs:latest
tags: ${{ secrets.DOCKER_USERNAME }}/scap-rs:latest
cache-from: type=registry,ref=${{ secrets.DOCKER_USERNAME }}/scap-rs:latest
cache-to: type=inline
- name: Build and push helper
uses: docker/build-push-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
deploy:
name: Deploy app
if: github.repository == 'emo-crab/nvd-rs'
if: github.repository == 'emo-crab/scap-rs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
#name = "nvd-rs" #改这个
#name = "scap-rs" #改这个
version = "0.1.0"
edition = "2021"
authors = ["Kali-Team <root@kali-team.cn>"]
Expand Down
2 changes: 1 addition & 1 deletion DockerfileFly
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM kaliteam/nvd-helper-rs:latest AS helper

# Use any runner as you want
# But beware that some images have old glibc which makes rust unhappy
FROM kaliteam/nvd-rs:latest AS runner
FROM kaliteam/scap-rs:latest AS runner
WORKDIR /prod
ENV TZ=Asia/Shanghai
COPY --from=helper /prod/helper /prod
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nvd-rs
# scap-rs
---

- A collection of lib for working with [National Vulnerability Database](https://nvd.nist.gov/).
Expand All @@ -7,7 +7,7 @@

### cvss 通用漏洞评分系统

[![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cvss)
[![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cvss)
&ensp;[![docs-rs]](crate)

[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
Expand All @@ -18,7 +18,7 @@

### cve 通用漏洞披露

[![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cves)
[![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cves)
&ensp;[![docs-rs]](crate)

[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
Expand All @@ -29,7 +29,7 @@

### cpe 通用平台枚举

[![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cpe)
[![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cpe)
&ensp;[![docs-rs]](crate)

[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
Expand All @@ -40,7 +40,7 @@

### cwe 通用弱点枚举

[![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cwe)
[![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cwe)
&ensp;[![docs-rs]](crate)

[github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
Expand Down
2 changes: 1 addition & 1 deletion Trunk.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ target = "nvd-yew/index.html"
dist = "dist"

[[proxy]]
backend = "https://nvd.kali-team.cn/api/"
backend = "https://scap.kali-team.cn/api/"
4 changes: 2 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# fly.toml app configuration file generated for nvd-rs on 2023-12-04T22:33:51+08:00
# fly.toml app configuration file generated for scap-rs on 2023-12-04T22:33:51+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "nvd-rs"
app = "scap-rs"
primary_region = "hkg"
[build]
dockerfile = "DockerfileFly"
Expand Down
4 changes: 2 additions & 2 deletions nvd-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-api"
edition = "2021"
description = "A rust implementation of the nvd-api."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion nvd-api/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-api)&ensp;[![docs-rs]](crate)
//! [![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-api)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
Expand Down
4 changes: 2 additions & 2 deletions nvd-cpe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-cpe"
edition = "2021"
description = "A rust implementation of the nvd-cpe."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion nvd-cpe/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## CPE

[![github]](https://github.com/emo-crab/nvd-rs)
[![github]](https://github.com/emo-crab/scap-rs)
[![crates-io]](https://crates.io/crates/nvd-cpe)
[![docs-rs]](crate)

Expand Down
4 changes: 2 additions & 2 deletions nvd-cpe/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cpe)&ensp;[![docs-rs]](crate)
//! [![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cpe)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
Expand All @@ -14,7 +14,7 @@
//! The CPE Dictionary hosted and maintained at NIST may be used by nongovernmental organizations on a voluntary basis and is not subject to copyright in the United States. Attribution would, however, be appreciated by NIST.
//!
#![doc(html_root_url = "https://emo-crab.github.io/nvd-rs/cpe")]
#![doc(html_root_url = "https://emo-crab.github.io/scap-rs/cpe")]

// Package wfn provides a representation, bindings and matching of the Well-Formed CPE names as per
// https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf and
Expand Down
4 changes: 2 additions & 2 deletions nvd-cves/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-cves"
edition = "2021"
description = "A rust implementation of the nvd-cve."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions nvd-cves/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cves)&ensp;[![docs-rs]](crate)
//! [![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cves)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
Expand All @@ -14,7 +14,7 @@
//!
//! <https://nvd.nist.gov/vuln/vulnerability-detail-pages>
#![doc(html_root_url = "https://emo-crab.github.io/nvd-rs/cve")]
#![doc(html_root_url = "https://emo-crab.github.io/scap-rs/cve")]

pub mod api;
pub mod error;
Expand Down
4 changes: 2 additions & 2 deletions nvd-cvss/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-cvss"
edition = "2021"
description = "A rust implementation of the nvd-cvss."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions nvd-cvss/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cvss)&ensp;[![docs-rs]](crate)
//! [![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cvss)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
Expand All @@ -11,7 +11,7 @@
//!
//! CVSS is owned and managed by FIRST.Org, Inc. (FIRST), a US-based non-profit organization, whose mission is to help computer security incident response teams across the world. The official CVSS documentation can be found at <https://www.first.org/cvss/>.
#![doc(html_root_url = "https://emo-crab.github.io/nvd-rs/cvss")]
#![doc(html_root_url = "https://emo-crab.github.io/scap-rs/cvss")]
// 通用漏洞评分系统
// https://csrc.nist.gov/schema/nvd/feed/1.1-Beta/cvss-v3.x_beta.json
// https://www.first.org/cvss/specification-document
Expand Down
4 changes: 2 additions & 2 deletions nvd-cwe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-cwe"
edition = "2021"
description = "A rust implementation of the nvd-cwe."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion nvd-cwe/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! [![github]](https://github.com/emo-crab/nvd-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cwe)&ensp;[![docs-rs]](crate)
//! [![github]](https://github.com/emo-crab/scap-rs)&ensp;[![crates-io]](https://crates.io/crates/nvd-cwe)&ensp;[![docs-rs]](crate)
//!
//! [github]: https://img.shields.io/badge/github-8da0cb?style=for-the-badge&labelColor=555555&logo=github
//! [crates-io]: https://img.shields.io/badge/crates.io-fc8d62?style=for-the-badge&labelColor=555555&logo=rust
Expand Down
4 changes: 2 additions & 2 deletions nvd-model/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
edition = "2021"
description = "A rust implementation of the nvd-model."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
name = "nvd-model"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions nvd-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-server"
edition = "2021"
description = "A rust implementation of the nvd-server."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license = "GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion nvd-server/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ vendor_api::api_vendor_list,
exploit_api::api_exp_list,
),
components(schemas(Cve, Cwe, Product, Vendor)),
tags((name = "nvd-rs open api", description = "National Vulnerability Database (NVD) implemented by rust")),
tags((name = "scap-rs open api", description = "National Vulnerability Database (NVD) implemented by rust")),
)]
pub struct ApiDoc;

Expand Down
2 changes: 1 addition & 1 deletion nvd-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn main() -> std::io::Result<()> {
.service(
web::scope("api")
.guard(guard::Get())
.guard(guard::Any(guard::Host("nvd.kali-team.cn")).or(guard::Host("127.0.0.1")))
.guard(guard::Any(guard::Host("scap.kali-team.cn")).or(guard::Host("127.0.0.1")))
.configure(api_route),
)
.service(sitemap);
Expand Down
4 changes: 2 additions & 2 deletions nvd-yew/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
name = "nvd-yew"
edition = "2021"
description = "A rust implementation of the nvd-yew."
homepage = "https://github.com/emo-crab/nvd-rs"
repository = "https://github.com/emo-crab/nvd-rs"
homepage = "https://github.com/emo-crab/scap-rs"
repository = "https://github.com/emo-crab/scap-rs"
authors = ["Kali-Team <root@kali-team.cn>"]
readme = "README.md"
license = "GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>nvd-rs</title>
<title>scap-rs</title>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<base data-trunk-public-url/>
<!-- <script src="static/tabler.js"></script>-->
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/src/component/comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Component for Comments {
html! {
<Accordion name={"Comments"}>
<script src="https://giscus.app/client.js"
data-repo="emo-crab/nvd-rs"
data-repo="emo-crab/scap-rs"
data-repo-id="R_kgDOJE0AVw"
data-category="Announcements"
data-category-id="DIC_kwDOJE0AV84CcTem"
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/src/layout/nav.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Component for Nav {
<a href="https://blog.kali-team.cn/donate" class="btn btn-light" target="_blank" rel="noreferrer">
<i class="ti ti-shield-heart text-pink"></i>{"Sponsor"}
</a>
<a href="https://github.com/emo-crab/nvd-rs" class="btn btn-light" target="_blank" rel="noreferrer">
<a href="https://github.com/emo-crab/scap-rs" class="btn btn-light" target="_blank" rel="noreferrer">
<i class="ti ti-brand-github" style="color: light;"></i>{"Source code"}
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/src/routes/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Component for Home {
{"The NVD is the U.S. government repository of standards based vulnerability management data represented using the Security Content Automation Protocol (SCAP)."}
</div>
<div class="mt-3">
<a href="https://github.com/emo-crab/nvd-rs/" class="btn btn-primary" target="_blank" rel="noopener">{"Source code"}</a>
<a href="https://github.com/emo-crab/scap-rs/" class="btn btn-primary" target="_blank" rel="noopener">{"Source code"}</a>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(
html_logo_url = "https://avatars.githubusercontent.com/u/30642514?s=360&v=4",
html_root_url = "https://emo-crab.github.io/nvd-rs"
html_root_url = "https://emo-crab.github.io/scap-rs"
)]

0 comments on commit b8117da

Please sign in to comment.