rapid7/metasploitable3

openjdk-1.6.0-unofficial repository to download not found

karthikvadla09 opened this issue · 4 comments

Issue Description

Repository not found
https://github.com/downloads/alexkasko/openjdk-unofficial-builds/openjdk-1.6.0-unofficial-b27-windows-amd64.zip

Only the repository is not found and if there is any alternative or I have to make changes in the batch file please let me know..

Host System

  • OS: Windows 11
  • Packer Version: 1.9.4
  • Vagrant Version: 2.4.0
  • VirtualBox Version: 7.0.4

Command Output

virtualbox-iso: C:\Users\vagrant>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-b27-windows-amd64.zip', 'C:\Windows\Temp\openjdk-1.6.0-unofficial-b27-windows-amd64.zip')"  0<NUL

==> virtualbox-iso: Exception calling "DownloadFile" with "2" argument(s): "The remote server
==> virtualbox-iso: returned an error: (404) Not Found."
==> virtualbox-iso: At line:1 char:96
==> virtualbox-iso: + ... pe]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://g ...
==> virtualbox-iso: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==> virtualbox-iso: + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
==> virtualbox-iso: + FullyQualifiedErrorId : WebException

looked in the wayback machine, and there's a snapshot from 2020

https://web.archive.org/web/20201011091629/https://github.com/downloads/alexkasko/openjdk-unofficial-builds/openjdk-1.6.0-unofficial-b27-windows-amd64.zip

which redirects to https://web.archive.org/web/20201011091629if_/https://github.s3.amazonaws.com/downloads/alexkasko/openjdk-unofficial-builds/openjdk-1.6.0-unofficial-b27-windows-amd64.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20201011%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201011T091629Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=35fb6f40fd0b8b9704692e09ebc381751df4057f2affd893d269988ee02e5dc8

testing it currently (linking to the amazonaws file)

saw a pull request that mentioned there being a bitbucket repository for builds, testing a new URL

index 2a33133..43af369 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-b27-windows-amd64.zip', 'C:\Windows\Temp\openjdk-1.6.0-unofficial-b27-windows-amd64.zip')" <NUL
-cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Windows\Temp\openjdk-1.6.0-unofficial-b27-windows-amd64.zip" -oC:\openjdk6"
+powershell -Command "[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://bitbucket.org/alexkasko/openjdk-unofficial-builds/downloads/openjdk-1.6.0-unofficial-b31-windows-amd64-installer.zip', 'C:\Windows\Temp\openjdk-1.6.0-unofficial-b31-windows-amd64-installer.zip')" <NUL
+cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Windows\Temp\openjdk-1.6.0-unofficial-b31-windows-amd64-installer.zip" -oC:\openjdk6"

can confirm, the install goes through normally

Fixed in #619