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

36 lines
767 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
control "wamp" do
title "Check WAMP installation"
desc "Check WAMP installation. The setup script available at /scripts/installs/install_wamp.bat"
describe file('C:\\wamp\\bin\\apache\\Apache2.2.21\\conf\\httpd.conf') do
it { should exist }
end
describe file('C:\\wamp\\alias\\phpmyadmin.conf') do
it { should exist }
end
2017-07-19 14:43:45 +02:00
describe service('wampapache') do
it { should be_installed }
it { should be_enabled }
it { should be_running }
2017-07-06 05:25:40 +02:00
end
2017-07-19 14:43:45 +02:00
describe service('wampmysqld') do
it { should be_installed }
it { should be_enabled }
it { should be_running }
2017-07-06 05:25:40 +02:00
end
#TODO: Add icacls verification
2017-07-19 14:43:45 +02:00
describe port('8585') do
it { should be_listening }
2017-07-06 05:25:40 +02:00
end
2017-07-19 14:43:45 +02:00
describe port('3306') do
it { should be_listening }
2017-07-06 05:25:40 +02:00
end
end