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

10 lines
344 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
control "disable-firewall" do
title "Diable firewall"
desc "Disable firewall. Configuration script available at /scripts/configs/disable_firewall.bat"
# There are three profiles. None of them should be in 'on' state
describe command('netsh advfirewall show allprofiles state') do
its('stdout') { should_not match ("ON") }
end
end