metasploitable3/chef/cookbooks/metasploitable/test/windows/webdav.rb
2017-07-06 08:55:40 +05:30

21 lines
544 B
Ruby

control "webdav" do
title "WebDAV"
desc "Check if WebDAV is correctly installed. Installation script available at /scripts/installs/setup_webdav.bat"
describe file('C:\\wamp\\www\\uploads') do
it { should exist }
end
describe file('C:\\wamp\\alias\\httpd-dav.conf') do
it { should exist }
end
describe command('sc query wampapache') do
its('stdout') { should match "STATE : 4 RUNNING" }
end
describe command('netstat -aob | findstr :8585') do
its('stdout') { should match "LISTENING" }
end
end