Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A Terminal UI for browsing security vulnerabilities (CVEs)

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
NotificationsYou must be signed in to change notification settings

orhun/flawz

GitHub ReleaseCrate ReleaseContinuous IntegrationContinuous DeploymentDocumentation


flawz is a Terminal User Interface (TUI) for browsing the security vulnerabilities (also known asCVEs).

As default it uses the vulnerability database (NVD) fromNIST and provides search and listing functionalities in the terminal with different theming options.

For example, to view details on the notoriousxz vulnerability:

flawz --feeds 2024 --query xz

demo

Table of Contents

Installation

Packaging status

Packaging status

Cargo

flawz can be installed fromcrates.io usingcargo ifRust is installed.

cargo install --locked flawz

The minimum supported Rust version (MSRV) is1.74.1.

Note

You need to have SQLite 3 development files installed. On Debian and its derivates you can do so with the following command:

sudo apt install libsqlite3-dev

Arch Linux

flawz can be installed from theofficial repositories usingpacman:

pacman -S flawz

Alpine Linux

flawz is available forAlpine Edge. It can be installed viaapk after enabling thetesting repository.

apk add flawz

Homebrew

flawz is available for macOS viaHomebrew. It can be installed usingbrew

brew install flawz

Nixpkgs

flawz is available for Nix vianixpkgs-unstable channel. To make it available in the environment, simply run:

nix-channel --add https://nixos.org/channels/nixpkgs-unstablenix-channel --update nixpkgsnix-env -iA nixpkgs.flawz

OnNixOS:

nix-channel --add https://nixos.org/channels/nixos-unstablenix-channel --update nixosnix-env -iA nixos.flawz

Alternatively, if you're using the new experimental CLI, you can use the following:

nix run nixpkgs#flawz

NetBSD

flawz is available from theofficial repositories. To install it, simply run:

pkgin install flawz

Binary releases

See the available binaries for different targets from thereleases page.

Build from source

  1. Clone the repository.
git clone https://github.com/orhun/flawz&&cd flawz/
  1. Build.
CARGO_TARGET_DIR=target cargo build --release

Binary will be located attarget/release/flawz.

Usage

flawz [OPTIONS]

Options:

  --url<URL>           A URL where NIST CVE 1.1 feeds can be found [env: URL=] [default:                        https://nvd.nist.gov/feeds/json/cve/1.1/]-f, --feeds [<FEEDS>...]  List of feeds that are going to be synced [env: FEEDS=] [default: 2002:2024 recent                        modified]-d, --db<DB>             Path to the SQLite database used to store the synced CVE data [env: DB=]-u, --force-update        Always fetch feeds-o, --offline             Do not fetch feeds-q, --query<QUERY>       Start with a search query [env: QUERY=]-t, --theme<THEME>       Set the theme [default: dracula] [possible values: dracula, nord, one-dark, solarized-dark, gruvbox-light, gruvbox-material-dark-hard, catppuccin]-h, --help                Printhelp (see more with'--help')-V, --version             Print version

Key bindings

KeyActionDescription
k /UpScroll UpScroll up the list
j /DownScroll DownScroll down the list
EnterSelectView the selected CVE details
/SearchSearch for a CVE
SpaceOpenOpen the first CVE reference in the browser
qQuitSet computer on fire

Examples

To start with a specific search query:

flawz --query"buffer overflow"

You can use the--feeds option to sync specific years of feeds:

flawz --feeds 2010:2015 recent

Additionally, you can use the following flags:

  • --force-update: Always fetch feeds, even if they are already up to date.
  • --offline: Run without fetching feeds (useful if you have already synced the data):

For example, you can use the following command to search for a specific vulnerability from 2014:

flawz -q"CVE-2014-0160" -f 2014 --force-update

Themes

Startflawz with--theme option to set a custom theme, e.g.--theme nord.

Dracula (default)

dracula

Nord

nord

One Dark

one dark

Solarized Dark

solarized dark

Gruvbox Light

gruvbox light

Gruvbox Material Dark Hard

gruvbox material dark hard

catppuccin

Catppuccin

Support

Support me on GitHub Sponsors

If you findflawz and/or other projectson my GitHub useful, consider supporting me onGitHub Sponsors! 💖

Contributing

See ourContribution Guide and please follow theCode of Conduct in all your interactions with the project.

License

License: MITLicense: Apache 2.0

Licensed under either ofApache License Version 2.0 orThe MIT License at your option.

🦀 ノ( º _ º ノ) - respect crables!

Copyright

Copyright © 2024,Orhun Parmaksız


[8]ページ先頭

©2009-2025 Movatter.jp