metasploitable3/chef/cookbooks/metasploitable/test/windows/password_settings.rb
2017-07-06 08:55:40 +05:30

9 lines
403 B
Ruby

control "password-settings" do
title "Password settings"
desc "Check if the password settings are correctly configured. Configuration script available at /scripts/configs/apply_password_settings.bat"
describe command('secedit /analyze /db %windir%\securitynew.sdb /cfg C:\vagrant\resources\security_settings\secconfig.cfg /areas SECURITYPOLICY') do
its(:exit_status) { should eq 1 }
end
end