Hacker News new | ask | show | jobs
by kusha 498 days ago
Edit: this is not needed, see child comment that this is open source!

Looks like the JS is not obfuscated. Even dev comments are still there, which is v cool. Good idea to download it all before they wise up!

    wget --mirror --convert-links --adjust-extension --page-requisites --no-parent -e robots=off -P ./website "https://lumon-industries.com/"
    wget -P ./website/images "https://lumon-industries.com/images/lumon.png"
    wget -P ./website/images "https://lumon-industries.com/images/nope.png"
    wget -P ./website/images "https://lumon-industries.com/images/100.png"
    wget -P ./website/images "https://lumon-industries.com/images/clipboard.png"
    wget -P ./website/images "https://lumon-industries.com/images/mde.gif"
    wget -P ./website/shaders "https://lumon-industries.com/shaders/crt.vert.glsl"
    wget -P ./website/shaders "https://lumon-industries.com/shaders/crt.frag.glsl"
    wget -P ./website "https://lumon-industries.com/favicon.ico"
and then comment out

    <script>
      navigator.serviceWorker.register?.('/service-worker.js').catch(() => {})
    </script>
in index.html

Finally, download p5 and replace the cloudflare CDN pointing to your own p5.js installation.

Run it all with

    python3 -m http.server
2 comments

Ahhh I should have checked. Thank you
ChatGpt is pretty good at deobfuscate js
Why is that relevant? The code is not obfuscated, it’s already as clear as can be.