https://github.com/vuldb/vuldb-api-rust-examples
VulDB Rust code to fetch data via API
https://github.com/vuldb/vuldb-api-rust-examples
api api-client cve nvd rust rust-lang vulnerabilities vulnerability vulnerability-analysis vulnerability-database vulnerability-database-entry vulnerability-databases vulnerability-identification vulnerability-management
Last synced: 3 days ago
JSON representation
VulDB Rust code to fetch data via API
- Host: GitHub
- URL: https://github.com/vuldb/vuldb-api-rust-examples
- Owner: vuldb
- License: gpl-3.0
- Created: 2025-01-14T08:54:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T11:01:51.000Z (over 1 year ago)
- Last Synced: 2025-03-09T14:43:50.807Z (over 1 year ago)
- Topics: api, api-client, cve, nvd, rust, rust-lang, vulnerabilities, vulnerability, vulnerability-analysis, vulnerability-database, vulnerability-database-entry, vulnerability-databases, vulnerability-identification, vulnerability-management
- Language: Rust
- Homepage: https://vuldb.com/?kb.api
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vuldb-api-rust-examples
VulDB Rust code to fetch data via API
VulDB is the number 1 vulnerability database worldwide. Our specialists work with the crowd-based community to document the latest vulnerabilities on a daily basis since 1970. Besides technical details there are additional threat intelligence information like current risk levels and exploit price forecasts provided.
VulDB provides a simple, reliable and efficient API. This interface allows to initiate queries for single entries or collection of items. It does also support transactional bots which implement robotic business process automation (BPA). For example collecting data in Splunk and other correlation tools. You may find code examples and various tools in our official GitHub repository.
---
To execute the rust API demo, you will have to setup a rust project first:
```bash
cargo new vuldb_api_demo
cd vuldb_api_demo
```
Add the dependencies to the `Cargo.toml`:
```toml
[dependencies]
reqwest = { version = "0.11", features = ["json"] }
tokio = { version = "1", features = ["full"] }
```
Then update the `src/main.rs` using the provided program.
Now build and run the project:
```bash
cargo build
cargo run
```