Skip to content

Commit

Permalink
new reg stig for the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
agilebotanist committed Oct 24, 2023
1 parent e709443 commit 332ee21
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package rqcode.stigs.win10_new.RegistryEdit.stigs;

import rqcode.stigs.win10_new.RegistryEdit.RegistryEditConst;
import rqcode.stigs.win10_new.RegistryEdit.RegistryEditPattern;
import rqcode.stigs.win10_new.RegistryEdit.RegistryEditScriptPattern;

import java.util.Map;

public class V_220917 extends RegistryEditPattern {
private final RegistryEditScriptPattern policyScriptPattern =
new RegistryEditScriptPattern(
RegistryEditConst.REGISTRY_EDIT_SCRIPT_PATTERN_CHECK, RegistryEditConst.REGISTRY_EDIT_SCRIPT_PATTERN_ENFORCE,
Map.of(
"", ""
),
Map.of(
"registryPath", "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Netlogon\\Parameters\\",
"name", "DisablePasswordChange",
"type", "DWORD",
"value", "0"));

public V_220917() {
pattern = this.policyScriptPattern;
}

public static void main(String[] args) {
V_220917 stig = new V_220917();

System.out.println(stig.check());
}
}

0 comments on commit 332ee21

Please sign in to comment.