rapid7 / metasploitable3

Metasploitable3 is a VM that is built from the ground up with a large amount of security vulnerabilities.
Other
4.78k stars 1.15k forks source link

openjdk-1.6.0-unofficial repository to download not found #611

Closed karthikvadla09 closed 7 months ago

karthikvadla09 commented 1 year ago

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

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

ANeilan commented 10 months ago

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)

ANeilan commented 10 months ago

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"
ANeilan commented 10 months ago

can confirm, the install goes through normally

jmartin-tech commented 7 months ago

Fixed in #619