Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As my javascript excerise of the day, a line by line break down. Note I generated mine with <code>alert("Hello")</code></p> <pre><code>$ = ~[]; // var $ = -1 $ = { ___ : ++$, // ++(-1) == 0 $$$$:(![]+"")[$], // ![] == false, false + "" == "false", "false"[0] == "f" __$:++$, // ++(0) == 1 $_$_:(![]+"")[$], // ![] == false, false + "" == "false", "false"[1] == "a" _$_:++$, // ++(1) == 2 $_$$:({}+"")[$], // {} + "" == "[object Object]", "[object Object]"[2] == "b" $$_$:($[$]+"")[$], // 2[2] == undefined + "" == "undefined", "undefined"[2] == "d" _$$:++$, // ++(2) == 3 $$$_:(!""+"")[$], // !"" == true + "" == "true", "true"[3] == "e" $__:++$, // ++(3) == 4 $_$:++$, // ++(4) == 5 $$__:({}+"")[$], // ({} + "") == [object Object]", "[object Object]"[5] == "c" $$_:++$, // ++(5) == 6 $$$:++$, // ++(6) == 7 $___:++$, // ++(7) == 8 $__$:++$ // ++(8) == 9 }; $.$_ = ($.$_=$+"")[$.$_$] + // "[object Object]"[5] == "c" + (also $.$_ = "[object Object]") ($._$=$.$_[$.__$]) + // "[object Object]"[1] == "o" + (also $._$ = "o") ($.$$=($.$+"")[$.__$]) + // $.$+"" == "undefined", "undefined"[1] == "n" + (also $.$$ = "n") ((!$)+"")[$._$$] + // !$ == false, false+"" == "false", "false"[3] == "s" + ($.__=$.$_[$.$$_]) + // "[object Object]"[6] == "t" (also $.__ = "t") + ($.$=(!""+"")[$.__$]) + // !"" == true, true + "" == "true", "true"[2] == "r" +(also $.$="r") ($._=(!""+"")[$._$_]) + // !"" == true, true + "" == "true", "true"[3] == "u" +(also $._="u") $.$_[$.$_$] + // "[object Object]"[5] == "c" + $.__ + // "t" + $._$ + // "o" + $.$; // "r" // $.$_ = "constructor" $.$$ = $.$ + // "r" + (!""+"")[$._$$] + // "true"[3] == "e" + $.__ + // "t" + $._ + // "u" + $.$ + // "r" + $.$$; // "n" // $.$$ = "return" $.$ = ($.___)[$.$_][$.$_]; // (0)["constructor"]["constructor"] // $.$ = Function // This is the part that changes when you change the input string. $.$( // Function( $.$( // Function ( $.$$ + // "return"+ "\""+ // '"' + $.$_$_ + // "a" + (![]+"")[$._$_]+ // "l" + $.$$$_+ // "e" + "\\"+ // "\" + $.__$+ // "1" + $.$$_+ // "6" + $._$_+ // "2" + (note '\162' = 'r') $.__+ // "t" + "(\\\"\\"+ // '(\"\' + $.__$+ // 1 + $.__$+ // 1 + $.___+ // 0 + (note '\110' = 'H') $.$$$_+ // e + (![]+"")[$._$_]+ // "false"[2] == "l", "l" + (![]+"")[$._$_]+ // "false"[2] == "l", "l" + $._$+ // "o" + "\\\")"+ // '\")' + "\"" // '"'' )() // invoke )(); // invoke </code></pre> <p>am not i am is pretty much spot on, it creates a string and then invokes it.</p> <p><em>Edit &ndash; and I don't have time to decode the other version, but I imagine its doing something similar, but with non latin characters.</em></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload