mirror of
https://github.com/nikaiw/VMkatz
synced 2026-09-25 07:51:06 +00:00
Fix cfg gate on fmt_lm_pwdump: sam feature, not ntds.dit
The function is used by both SAM and NTDS output paths. Gating it on ntds.dit broke compilation when sam was enabled without ntds.dit (e.g. --features sam or --features vmfs).
This commit is contained in:
+1
-1
@@ -299,7 +299,7 @@ fn fmt_hash(hash: &[u8], c: &Colors) -> String {
|
||||
}
|
||||
|
||||
/// Format LM hash for pwdump output: zero → standard empty LM placeholder.
|
||||
#[cfg(feature = "ntds.dit")]
|
||||
#[cfg(feature = "sam")]
|
||||
fn fmt_lm_pwdump(hash: &[u8; 16]) -> String {
|
||||
if *hash == ZERO_HASH_16 {
|
||||
BLANK_LM_HEX.to_string()
|
||||
|
||||
Reference in New Issue
Block a user