Hacker GitHub

← All repos

aemkei/jsfuck

View on GitHub ↗ ★ 8,599 JavaScript

Write any JavaScript with 6 Characters: []()!+

7 mentions on Hacker News by 7 people: 1 story, 6 comments · first 2013-09-14 · latest 2024-10-08

Mentions per year 7 mentions · busiest year 2021 (2)
20082026
  1. https://github.com/aemkei/jsfuck Has anyone seen a transpiler for regular JS into jsfuck? It would be like maxify-obscurify
  2. …helped me understand was how it encodes eval for actually executing code. Details are on this line, https://github.com/aemkei/jsfuck/blob/1f02651e98da1c13aef76d... , and details of that are: 1. [] => An array object 2. []["flat"] => The…
    comment by hn_throwaway_99 · 2021-09-26 · in JSFuck (2012)
  3. Here's the decoder ring: https://github.com/aemkei/jsfuck/blob/master/jsfuck.js With this I was able to get the letter 'a' by starting with their initial definition `(false+"")[1]`, then continually substituting (false+'')[1] (![]+'')[1]…
    comment by city41 · 2021-09-26 · in JSFuck (2012)
  4. …into string) "NaN": +{} "[object Object][object Object]": {}+{} .. etc See the full list here: https://github.com/aemkei/jsfuck/blob/master/jsfuck.js
  5. …valid javascript code. One one the patterns that jsfuck.js supports is "run the followin as eval()" https://github.com/aemkei/jsfuck/blob/master/jsfuck.js line 282
  6. Ahaha, there's this one which goes even further: only uses "[]()!+" https://github.com/aemkei/jsfuck
    comment by rnhmjoj · 2015-12-15 · in Xto6 modernizes your JavaScript code