metasploitable3/chef/cookbooks/metasploitable/test/windows/password_settings.rb

9 lines
403 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
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