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

13 lines
378 B
Ruby
Raw Normal View History

2017-07-06 05:25:40 +02:00
control "mysql" do
title "MySQL"
desc "Check if MySQL is running properly. Installation script available at /scripts/installs/setup_mysql.bat"
describe command('sc query wampmysqld') do
its('stdout') { should match "STATE : 4 RUNNING" }
end
describe command('netstat -aob | findstr :3306') do
its('stdout') { should match "LISTENING" }
end
end