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

17 lines
493 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
control "snmp" do
title "Setup SNMP"
desc "Check if SNMP has been set up correctly. Setup script available at /scripts/installs/setup_snmp.bat"
2017-07-19 14:39:15 +02:00
describe registry_key('HKLM\SYSTEM\ControlSet001\services\SNMP\Parameters') do
its('EnableAuthenticationTraps') { should eq 0 }
2017-07-06 05:25:40 +02:00
end
2017-07-19 14:39:15 +02:00
describe registry_key('HKLM\SYSTEM\ControlSet001\services\SNMP\Parameters\ValidCommunities') do
its('public') { should eq 4 }
2017-07-06 05:25:40 +02:00
end
2017-07-19 14:39:15 +02:00
describe port('161') do
it { should be_listening }
2017-07-06 05:25:40 +02:00
end
end