mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-02 01:35:50 +02:00
17 lines
524 B
Ruby
17 lines
524 B
Ruby
|
control "elasticsearch" do
|
||
|
title "ElasticSearch"
|
||
|
desc "Check if ElasticSearch was installed correctly. Installation script available at /scripts/installs/install_elasticsearch.bat"
|
||
|
|
||
|
describe file('C:\\Program Files\\elasticsearch-1.1.1') do
|
||
|
it { should exist }
|
||
|
end
|
||
|
|
||
|
describe command('sc query elasticsearch-service-x64') do
|
||
|
its('stdout') { should match ("STATE : 4 RUNNING") }
|
||
|
end
|
||
|
|
||
|
describe command('netstat -aob | findstr :9200') do
|
||
|
its('stdout') { should match "LISTENING" }
|
||
|
end
|
||
|
end
|