keepass_dump_extractor/cli.rs
1use std::path::PathBuf;
2
3use clap::{Parser, ValueEnum};
4
5#[derive(Parser)]
6#[command(name = "keepass-dump-extrator")]
7pub struct Args {
8 /// The memory dump file to search
9 pub input: PathBuf,
10
11 /// The format to print the results in
12 #[clap(short, long, default_value = "found")]
13 pub format: Format,
14}
15
16#[derive(ValueEnum, Clone)]
17pub enum Format {
18 /// Directly print all hints about the password
19 Found,
20 /// Summarize the hints into the full size, leaving gaps for unknown characters
21 Gaps,
22 /// Print all possible permutations of the password, intended as a wordlist
23 All,
24 /// Write the raw results with all found information, intended for further processing
25 /// (count, position, character)
26 Raw,
27}