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

18 lines
506 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
describe command('sc query Tomcat8') do
its('stdout') { should match('STATE : 4 RUNNING') }
end
2017-07-07 14:20:21 +02:00
describe command('netstat -aob | findstr :8282') do
its('stdout') { should match ("LISTENING") }
end
2017-07-06 05:25:40 +02:00
end