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

20 lines
469 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
control "tomcat" do
title "Check tomcat installation"
desc "Check if tomcat is installed. Installation script available at /scripts/chocolatey_installs/tomcat.bat"
describe file('C:\\Program Files\\Apache Software Foundation\\tomcat') do
it { should exist }
end
2017-07-19 14:52:41 +02:00
describe service('Tomcat8') do
it { should be_installed }
it { should be_enabled }
it { should be_running }
2017-07-06 05:25:40 +02:00
end
2017-07-07 14:20:21 +02:00
2017-07-19 14:52:41 +02:00
describe port('8282') do
it { should be_listening }
2017-07-07 14:20:21 +02:00
end
2017-07-06 05:25:40 +02:00
end