mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-15 00:01:26 +02:00
13 lines
378 B
Ruby
13 lines
378 B
Ruby
|
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
|