mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-04 02:35:58 +02:00
13 lines
396 B
Ruby
13 lines
396 B
Ruby
|
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
|
||
|
end
|