metasploitable3/chef/cookbooks/metasploitable/test/windows/openjdk6.rb
2024-04-20 19:18:39 -05:00

13 lines
479 B
Ruby

control "openjdk6" do
title "Check OpenJDK 6"
desc "Checks for the installation of OpenJDK 6. Setup file available at /scripts/installs/setup_openjdk6.bat"
describe file('C:\\openjdk6\\openjdk-1.6.0-unofficial-b28-windows-amd64-installer') do
it { should exist }
end
describe command('C:\openjdk6\openjdk-1.6.0-unofficial-b28-windows-amd64-installer\jre\bin\java.exe -version') do
its('stdout') { should match "openjdk version \"1.6.0-unofficial\"" }
end
end