-
Star
(934)
You must be signed in to star a gist -
Fork
(116)
You must be signed in to fork a gist
-
-
Save wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6 to your computer and use it in GitHub Desktop.
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
Hi, would you please share how did you get bundle ids ?
Hi, I rarely checked this E-mail address ever since I started getting like tons of spam and therefore I didn't realize that you posted a question.
First of all, let's visit this page and then we're gonna find 252042
/ 252043
/ 252044
for Windows versions of 8u451
installers:
https://www.java.com/en/download/manual.jsp
(Please remember that some web browsers might somehow "convert" each BundleId
into whole bunch of "meaningless" characters whenever we tried to right-click / copy those links, Microsoft Edge was behaving just like that while Brave Browser seemed to have no such issues.)
My workaround would be simply pressing Ctrl
+ U
to view the page source first:
view-source:https://www.java.com/en/download/manual.jsp
Then we could press Ctrl
+ F
to find the specific keyword BundleId
afterwards.
Next step would be subtracting about 50
from 252042
for the first
number while adding 50
to 252042
for the last
number respectively.
After that, it's just a matter of plugging both 251992
and then 252092
into this particular page linked below:
https://pinetools.com/generate-list-numbers
Check the box Add text before each number?
first, then copy and paste this:
wget --spider "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=
Check the box Add text after each number?
first, then copy and paste (please watch out for the underscore
at the very beginning / double quote
at the very end respectively while making sure that we won't end up copying any extra null spaces at all) this:
_8a1589aa0fe24566b4337beee47c2d29"
(Obviously future releases of Java will require something greater than 251992
/ 252092
for sure, while we'll definitely find something totally different from _8a1589aa0fe24566b4337beee47c2d29
as well.)
Finally we could hit that Generate
button at the bottom of the web page and then copy everything accordingly. Just paste everything while saving that as java.cmd
or something like that. If we're using Notepad
to do that, please make sure that's actually saved as java.cmd
instead of java.cmd.txt
for obvious reasons.
Now let's grab a copy of wget.exe
by extracting that file from any downloads with the filename including static
here:
https://github.com/lifenjoiner/wget-for-windows
Let's say we're saving that java.cmd
to the folder such as C:\Temp
as an example, then we'll also extract the file wget.exe
to C:\Temp
afterwards.
Open Command Prompt
first, then enter this:
cd C:\Temp
java.cmd
Then we could plow right through everything in order to obtain the corresponding filename for each and every BundleId
afterwards.
Honestly it's much easier for me to figure out how to do everything on my own, while I'm just no good at explaining how someone else could get things done. LOL
Where I can find JRE1.6 😢
jre-6u45-linux-i586-rpm.bin
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76200
jre-6u45-linux-i586.bin
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76201
jre-6u45-linux-x64-rpm.bin
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76202
jre-6u45-linux-x64.bin
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76203
jre-6u45-solaris-i586.sh
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76204
jre-6u45-solaris-sparc.sh
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76205
jre-6u45-solaris-sparcv9.sh
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76206
jre-6u45-solaris-x64.sh
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76207
jre-6u45-windows-i586.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76208
jre-6u45-windows-x64.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76209
jre1.6.0_45-c-l.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76210
jre1.6.0_45-c.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76211
jre1.6.0_45-pfrom32.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76212
jre1.6.0_45-pfrom33-b03.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76213
jre1.6.0_45-pfrom33-b05.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76214
jre1.6.0_45-pfrom34.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76215
jre1.6.0_45-pfrom35-b10.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76216
jre1.6.0_45-pfrom37-b06.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76217
jre1.6.0_45-pfrom38.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76218
jre1.6.0_45-pfrom39-b04.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76219
jre1.6.0_45-pfrom41.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76220
jre1.6.0_45-pfrom43-b01.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76221
jre1.6.0_45-s-l.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76222
jre1.6.0_45-s.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76223
JavaSetup6u45.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76224
chromeinstall-6u45-fcs-bin-b06-windows-i586-26_mar_2013.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76225
chromeinstall-6u45.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76226
chromeinstall.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76227
jinstall-6u45-windows-i586.cab
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76228
jre-6u45-windows-i586-iftw.exe
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76229
jre1.6.0_45-c-k.msi
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=76251
@starchivore Thank you for sharing. Although this only works for JRE, not JDKs.
So
https://javadl.oracle.com/webapps/download/AutoDL?BundleId=249542_4d245f941845490c91360409ecffb3b4
redirects tohttps://sdlc-esd.oracle.com/ESD6/JSCDL/jdk/8u401-b10/4d245f941845490c91360409ecffb3b4/jre-8u401-linux-x64.tar.gz?GroupName=JSC&FilePath=/ESD6/JSCDL/jdk/8u401-b10/4d245f941845490c91360409ecffb3b4/jre-8u401-linux-x64.tar.gz&BHost=javadl.sun.com&File=jre-8u401-linux-x64.tar.gz&AuthParam=1749055053_d7d0d2c12781343deddfe32c7d1c8df9&ext=.gz
The redirected link is constituted of query params that indicates the criteria to download a specific archive.
So basically one would need to find, and replace the appropriate values
8u401-b10
4d245f941845490c91360409ecffb3b4
jre-8u401-linux-x64.tar.gz
All JDK related values can be found on the download links current update, older updates after 8u211. That said for JDKs this doesn't seem to work yet so there must be something else to discover.
If the
AuthParam=1749055053_d7d0d2c12781343deddfe32c7d1c8df9
is incorrect then the server returns403
.At this time, the
1749055053
looks like the deadline in epoch (likely UTC).However I'm unsure about what looks like a hash. That said the auth param appears unrelated to the rest of the URL.Actually it doesn't seem like a hash or at least not tied to the deadline. So basically just moving the epoch to something in the future, like 10 minutes will make this link work.