Discussion:
Anyone know how to get around a java script on this web page?
(too old to reply)
T
2020-08-23 01:42:53 UTC
Permalink
Hi All,

This is a puzzle I have been working on for about two years.

On this web page:

https://www.eset.com/us/business/endpoint-security/windows-security/download/

From the command line, I am trying to read the revision
shown here:

https://ibb.co/RHJShwh

which is 7.3.2039.0.

Problem is that the revision is generated by a java script.
And curl and wget have no way of running java scripts.
And I have not figured out how to get it with headless
Firefox.

I asked ESET if they'd give me a direct download link, but
they ignored me.

Any of you guys have a cleaver way to cli extract the revision?

Many thanks,
-T
T
2020-08-23 04:42:45 UTC
Permalink
Post by T
Hi All,
This is a puzzle I have been working on for about two years.
https://www.eset.com/us/business/endpoint-security/windows-security/download/
From the command line, I am trying to read the revision
    https://ibb.co/RHJShwh
which is 7.3.2039.0.
Problem is that the revision is generated by a java script.
And curl and wget have no way of running java scripts.
And I have not figured out how to get it with headless
Firefox.
I asked ESET if they'd give me a direct download link, but
they ignored me.
Any of you guys have a cleaver way to cli extract the revision?
Many thanks,
-T
Figured it out:

To get the above URL showing the revision:

--> Firefox
https://www.eset.com/us/business/endpoint-security/windows-security/download/
--> Tools
--> Web Development
--> Network
--> Right Click on json type that downloaded (GET www.eset.com)
--> Copy
--> Copy URL

On the web page itself, it is at (YUGE LONG LINE):
<div
data-value="https://www.eset.com/us/business/endpoint-security/windows-security/download/?type=13554&tx_esetdownloads_ajax%5Bproduct%5D=82&tx_esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=931&tx_esetdownloads_ajax%5Bplugin_id%5D=1456376"
id="apiUrl">


Then use regex to chop it out

-T
Kerr-Mudd,John
2020-08-23 09:31:29 UTC
Permalink
Post by T
Post by T
Hi All,
This is a puzzle I have been working on for about two years.
https://www.eset.com/us/business/endpoint-security/windows-security/do
w
nload/
Post by T
From the command line, I am trying to read the revision
    https://ibb.co/RHJShwh
which is 7.3.2039.0.
Problem is that the revision is generated by a java script.
And curl and wget have no way of running java scripts.
And I have not figured out how to get it with headless
Firefox.
I asked ESET if they'd give me a direct download link, but
they ignored me.
Any of you guys have a cleaver way to cli extract the revision?
Many thanks,
-T
--> Firefox
https://www.eset.com/us/business/endpoint-security/windows-security/dow
nload/
--> Tools
--> Web Development
--> Network
--> Right Click on json type that downloaded (GET
www.eset.com)
--> Copy
--> Copy URL
<div
data-value="https://www.eset.com/us/business/endpoint-security/windows-
security/download/?type=13554&tx_esetdownloads_ajax%5Bproduct%5D=82&tx_
esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=931&t
x_esetdownloads_ajax%5Bplugin_id%5D=1456376" id="apiUrl">
Then use regex to chop it out
-T
It seems to mention Windows 7 (32-bit) but nothing lower.
Not linux related at all, AFAICT.
--
Bah, and indeed, Humbug.
T
2020-08-23 09:36:34 UTC
Permalink
Post by Kerr-Mudd,John
Post by T
Post by T
Hi All,
This is a puzzle I have been working on for about two years.
https://www.eset.com/us/business/endpoint-security/windows-security/do
w
nload/
Post by T
From the command line, I am trying to read the revision
    https://ibb.co/RHJShwh
which is 7.3.2039.0.
Problem is that the revision is generated by a java script.
And curl and wget have no way of running java scripts.
And I have not figured out how to get it with headless
Firefox.
I asked ESET if they'd give me a direct download link, but
they ignored me.
Any of you guys have a cleaver way to cli extract the revision?
Many thanks,
-T
--> Firefox
https://www.eset.com/us/business/endpoint-security/windows-security/dow
nload/
--> Tools
--> Web Development
--> Network
--> Right Click on json type that downloaded (GET
www.eset.com)
--> Copy
--> Copy URL
<div
data-value="https://www.eset.com/us/business/endpoint-security/windows-
security/download/?type=13554&tx_esetdownloads_ajax%5Bproduct%5D=82&tx_
esetdownloads_ajax%5Bbeta%5D=0&tx_esetdownloads_ajax%5Bpage_id%5D=931&t
x_esetdownloads_ajax%5Bplugin_id%5D=1456376" id="apiUrl">
Then use regex to chop it out
-T
It seems to mention Windows 7 (32-bit) but nothing lower.
Not linux related at all, AFAICT.
The code I am using to read this is written in Raku
(Perl 6) running in Fedora 32. And the code heavy
depends on Linux's curl utility.

And I asked the question on comp.os.linux.misc because there
is a lot of very smart people on it.
Batchman
2020-08-23 21:07:33 UTC
Permalink
Post by T
Hi All,
This is a puzzle I have been working on for about two years.
https://www.eset.com/us/business/endpoint-security/windows-security/download/
From the command line, I am trying to read the revision
https://ibb.co/RHJShwh
which is 7.3.2039.0.
Problem is that the revision is generated by a java script.
And curl and wget have no way of running java scripts.
And I have not figured out how to get it with headless
Firefox.
The author of FF addon uBlock Origin (an efficient content blocker)
Raymond Hill also created uMatrix.

Either may give you the ability to get the revision.

I use and recommend uBlock Origin.

uMatrix's description...
Point & click to forbid/allow any class of
browser requests.
Use it to block scripts, iframes, ads, facebook, etc.

https://addons.mozilla.org/en-US/firefox/addon/umatrix/

Loading...