diff --git a/chef/cookbooks/metasploitable/test/windows/openjdk6.rb b/chef/cookbooks/metasploitable/test/windows/openjdk6.rb index 2c50296..1a73883 100644 --- a/chef/cookbooks/metasploitable/test/windows/openjdk6.rb +++ b/chef/cookbooks/metasploitable/test/windows/openjdk6.rb @@ -2,11 +2,11 @@ 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-b27-windows-amd64') do + 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-b27-windows-amd64\jre\bin\java.exe -version') do + 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 diff --git a/resources/jmx/start_jmx.bat b/resources/jmx/start_jmx.bat index 8d0dc8a..494cbb5 100644 --- a/resources/jmx/start_jmx.bat +++ b/resources/jmx/start_jmx.bat @@ -1 +1 @@ -"C:\openjdk6\openjdk-1.6.0-unofficial-b27-windows-amd64\jre\bin\java.exe" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1617 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false SimpleAgent \ No newline at end of file +"C:\openjdk6\openjdk-1.6.0-unofficial-b28-windows-amd64-installer\jre\bin\java.exe" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=1617 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false SimpleAgent diff --git a/scripts/configs/configure_firewall.bat b/scripts/configs/configure_firewall.bat index 1a67dd5..94472c3 100644 --- a/scripts/configs/configure_firewall.bat +++ b/scripts/configs/configure_firewall.bat @@ -4,7 +4,7 @@ netsh advfirewall firewall add rule name="Open Port 80 for IIS" dir=in action=al netsh advfirewall firewall add rule name="Open Port 4848 for GlassFish" dir=in action=allow protocol=TCP localport=4848 netsh advfirewall firewall add rule name="Open Port 8080 for GlassFish" dir=in action=allow protocol=TCP localport=8080 netsh advfirewall firewall add rule name="Open Port 8585 for Wordpress and phpMyAdmin" dir=in action=allow protocol=TCP localport=8585 -netsh advfirewall firewall add rule name="Java 1.6 java.exe" dir=in action=allow program="C:\openjdk6\openjdk-1.6.0-unofficial-b27-windows-amd64\jre\bin\java.exe" enable=yes +netsh advfirewall firewall add rule name="Java 1.6 java.exe" dir=in action=allow program="C:\openjdk6\openjdk-1.6.0-unofficial-b28-windows-amd64-installer\jre\bin\java.exe" enable=yes netsh advfirewall firewall add rule name="Open Port 3000 for Rails Server" dir=in action=allow protocol=TCP localport=3000 netsh advfirewall firewall add rule name="Open Port 8020 for ManageEngine Desktop Central" dir=in action=allow protocol=TCP localport=8020 netsh advfirewall firewall add rule name="Open Port 8383 for ManageEngine Desktop Central" dir=in action=allow protocol=TCP localport=8383 diff --git a/scripts/installs/install_openjdk6.bat b/scripts/installs/install_openjdk6.bat index 391a84d..4b964c2 100644 --- a/scripts/installs/install_openjdk6.bat +++ b/scripts/installs/install_openjdk6.bat @@ -1,2 +1,2 @@ -powershell -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/downloads/alexkasko/openjdk-unofficial-builds/openjdk-1.6.0-unofficial-b28-windows-amd64-installer.zip', 'C:\Windows\Temp\openjdk-1.6.0-unofficial-b28-windows-amd64-installer.zip')"