this post was submitted on 21 Nov 2023
1607 points (98.0% liked)

Programmer Humor

32479 readers
234 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 1 year ago (4 children)

JavaScript is an interpreted language, so no decompilation is necessary, although this is repeatable by using a Firefox user agent.

[–] [email protected] 6 points 1 year ago (3 children)

You can build a virtual machine in JavaScript and execute compiled code on it

[–] [email protected] 3 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago

Oh yeah, you shouldn't. But people do this for fingerprinting, bot detection, and other "adversarial" scenarios where you really don't like the person executing your code. It's somewhat plausible Google would use this technique to do something scummy like this (although that is not the case).

Relevant article and a great read: https://www.nullpt.rs/reverse-engineering-tiktok-vm-1

load more comments (1 replies)
load more comments (1 replies)