use anyhow::Result;
use clap::Parser;
use crate::attacks;
#[derive(Parser)]
pub(crate) struct DumpGmsaArgs {
#[command(flatten)]
pub auth: crate::shared_args::LdapAuth,
#[arg(long)]
pub target: String,
}
pub(crate) async fn dump_gmsa(a: DumpGmsaArgs) -> Result<()> {
eprintln!(
"[!] `dump gmsa` is DEPRECATED and will be removed in 1.5.0 — use `attack gmsa` (same \
functionality, one command per capability)."
);
attacks::gmsa::gmsa(attacks::gmsa::GmsaArgs {
url: a.auth.url,
user: a.auth.user,
password: a.auth.password,
insecure: a.auth.insecure,
target: a.target,
})
.await
}